lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwIP with FreeRTOS memory problem


From: pekez
Subject: Re: [lwip-users] lwIP with FreeRTOS memory problem
Date: Tue, 29 Nov 2016 12:28:41 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

All right people, but since my main goal is to know the exact amount of memory the lwIP uses, could I just find that out without setting MEMP_MEM_MALLOC to 1, since it seems that it requires some changes in the kernel itself, as Richard and Simon explained. I am still not daring to make such changes since I am not really experienced, and especially if I can avoid that (at least for now).

So, I have returned MEMP_MEM_MALLOC to 0, and generated with Xilinx SDK a .map file (it's in attachments). Can we say that lwIP for sure won't take more memory then what we can see in that file, ram_heap plus sum of everything that makes memp_memory (which includes entire pbuf_pool (PBUF_POOL_BUFSIZE*PBUF_POOL_SIZE) as well)? Is there anyway I can verify that with mentioned iperf application, for example, to add some enormous array which will fill the rest of RAM, and try to write to it, and see whether that will make some influence on lwIP?

Noam, I had a look at your lwipopts.h, and I must say that your suggestions have helped when it comes to lwIP performance, especially the MEMP_NUM_PBUF define.

The Best,
Nenad

Attachment: mmap.PNG
Description: PNG image


reply via email to

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