lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip ram usage


From: Christian Scheurer
Subject: Re: [lwip-users] lwip ram usage
Date: Sun, 14 Mar 2004 12:52:11 +0100

Hello Eric,

have a look at the attached module size statistic to have
an idea about RAM usage in lwIP.

Check the following two sections in lwipopts.h to reduce
the amount of used RAM. What you see here is will give you
results like in the attached Excel, so you have to lower
the sizes:

        /* ---------- Memory options ---------- */
        #define MEM_SIZE                15000
    ..
    ..

        /* ---------- Pbuf options ---------- */
        /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
        #define PBUF_POOL_SIZE          8*3

        /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
        #define PBUF_POOL_BUFSIZE       1500/3


The idea is to buffer only few packets and reduce the
amount of simultaneous active connections. RAM is mainly
reserverd in the MEM, MEMP and PBUF modules.

Greetings,
Christian



>Sender name: Eric Shufro
>Sender address: address@hidden
>Message subject: [lwip-users] lwip ram usage
>Message time: 2004-03-11, 12:08:00
>
>Hi, I have just gotten lwip to compile for my hcs12   (128k flash, 8k
>eeprom, 8k ram)  but the ram usage is 16k!
>
> 
>
>I have been looking through the opt.h and lwipopt.h files to shut off things
>I don't need, but im not sure how to lower this amount.
>
> 
>
>It seems from viewing the map file, that the majority of ram is used in
>mem.c, but according to the lwip websites, lwip should use very little ram
>and about 40kb rom or so.
>
> 
>
>How do l dramatically lower the ram utilization?
>
> 
>
>Thanks a lot,
>
> 
>
>--eric shufro
>
> 
>
> 
>
> 
>
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/lwip-users
  

=====================================================================
 address@hidden        http://www.ChristianScheurer.ch
=====================================================================


Attachment: module_size_lwIP.xls
Description: Binary data


reply via email to

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