[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] mem_malloc return NULL
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] mem_malloc return NULL |
Date: |
Tue, 26 Aug 2008 14:35:40 +0100 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
Akshat Bisht wrote:
> For some reason mem_malloc is returning NULL. Where do i need to look
> "under-the-hood" to check if i'm giving enough memory or where to look
> for problems?
I expect you simply need to add more memory. Increase MEM_SIZE.
> I don't have a means to debug, i'm just glowing LED's on
> kit to find where program reaches. :)
Enable LWIP_STATS in lwipopts.h, and call the stats display functions in
stats.h to get information about resource usage. The "max" values are
usually interesting.
Doing this allows you to increase the resources to quite high levels, try
running your application under typical loads, and then you look at the
"max" values to see how much was actually used, so you can reduce them back
down again.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------ Opinions==mine
- [lwip-users] mem_malloc return NULL, Akshat Bisht, 2008/08/26
- [lwip-users] Re: mem_malloc return NULL, Akshat Bisht, 2008/08/26
- Re: [lwip-users] mem_malloc return NULL,
Jonathan Larmour <=
- Re: [lwip-users] mem_malloc return NULL, Akshat Bisht, 2008/08/27
- Re: [lwip-users] mem_malloc return NULL, Jonathan Larmour, 2008/08/27
- Re: [lwip-users] mem_malloc return NULL, Akshat Bisht, 2008/08/27
- Re: [lwip-users] mem_malloc return NULL, Akshat Bisht, 2008/08/29
- Re: [lwip-users] mem_malloc return NULL, Jonathan Larmour, 2008/08/29
- Re: [lwip-users] mem_malloc return NULL, Akshat Bisht, 2008/08/31