[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] HTTP Server traffic

From: Timmy Brolin
Subject: Re: [lwip-users] HTTP Server traffic
Date: Tue, 05 Dec 2006 19:20:56 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

/* ---------- Pbuf options ---------- */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
#define PBUF_POOL_SIZE 4
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
#define PBUF_POOL_BUFSIZE 1500
This is very inefficient use of memory.
Not sure, but only 4 pbufs might cause the problems you are seeing.

Higher PBUF_POOL_SIZE and lower PBUF_POOL_BUFSIZE will give you more packet buffers to work with without costing you any extra RAM.
The disadvantage is of course that you will have to handle packets fragmented into pbuf chains, but in a system with limited RAM that is a minor inconvenience compared to the amounts of RAM it saves.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]