lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Need Help for "Configuration for lwIP"


From: GICINDIA
Subject: Re: [lwip-users] Need Help for "Configuration for lwIP"
Date: Wed, 13 Jun 2012 00:12:48 -0700 (PDT)

>It's dependent on used hardware. But I would consider the comment above
>each define.
>MEM_SIZE of (7 * 1024) or (8 * 1024) wouldn't produce a big difference.
In 1st configuration i considered MEM_SIZE is used for both TCP_WND(2k) &
TCP_SND_BUF(6k) 
and in 2nd only for TCP_SND_BUF(6k).

>#define PBUF_POOL_BUFSIZE 256 <- It's a bit small value, usually it's
>should be about several KB e.g. 2048 or 4096 etc.
How to decide the PBUF_POOL_BUFSIZE? Actually i m not understanding it
completely. 

>#define PBUF_POOL_SIZE   ((TCP_WND + TCP_SND_BUF) / PBUF_POOL_BUFSIZE)
><- would results in 40 buffers. Do you really need this count?
As i have configured TCP_WND = 2k & TCP_SND_BUF is 6k so i kept it 40. 


>/* MEM_SIZE: the size of the heap memory. If the application will send a
>lot of data that needs to be copied, this should be set high. */
My doubt is, does MEM_SIZE use for only TCP_SND_BUF or for both (TCP_WND &
TCP_SND_BUF)?



_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



-- 
View this message in context: 
http://old.nabble.com/Need-Help-for-%22Configuration-for-lwIP%22-tp34003825p34003965.html
Sent from the lwip-users mailing list archive at Nabble.com.




reply via email to

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