lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] How to calculate the memory size used by lwIP?


From: PHAM ANH THIEN
Subject: Re: [lwip-users] How to calculate the memory size used by lwIP?
Date: Tue, 2 Feb 2010 16:21:37 +0700

the total memory size of lwIP is MEM_SIZE plus memp_memory. memp_memory include many types memory which define in lwip/memp_std.h, they could be MEMP_RAW_PCP, MEMP_UDP_PCB, MEMP_TCP_PCB... it depends LWIP_XXX you define in your lwipopt.h. So how to calculate each type memory, for example with MEMP_PBUF_POOL

LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE,           PBUF_POOL_BUFSIZE,             "PBUF_POOL")

memory size of it is:  PBUF_POOL_SIZE * PBUF_POOL_BUFSIZE.


On Tue, Feb 2, 2010 at 3:10 PM, jinwei younger <address@hidden> wrote:
Hi All,
How to calculate the memory size used by lwIP?
We set MEM_SIZE in lwipopts.h, but how much memory is enough for lwIP?

Thanks for your help!

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


reply via email to

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