[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Re: lwip-users Digest, Vol 78, Issue 19
From: |
Mike Kleshov |
Subject: |
Re: [lwip-users] Re: lwip-users Digest, Vol 78, Issue 19 |
Date: |
Tue, 9 Feb 2010 00:39:08 +0300 |
On 9 February 2010 00:10, Chen <address@hidden> wrote:
> I assume you suggest me to monitor the memory leak with stats_display_mem?
>
> I call it periodicallly, and it displays:
>
> MEM
> avail: 17 (keep growing)
> used: 0
> max: 41 (keep growing)
> err: 0
>
> I couldn't figure out the meaning of it (I expect avail will shrink and max
> should stay the same)
I've only used stats once or twice, so I'm not really an expert. But
having looked at stats.c, I strongly suggest to also look at
stats_display_memp(). That's because these days much of memory
allocation in lwip is done from memory pools, and I believe
stats_display_memp() is for monitoring those.
To be honest, I don't know what avail and max mean. I hope somebody
else on this list provides clues.
Regards,
- mike