Re: detecting kernel mem leak
From: Christoph Lameter
Date: Thu May 15 2008 - 13:38:39 EST
On Tue, 13 May 2008, Stéphane ANCELOT wrote:
> I kept my kernel running with few applications for 5 days , doing
> nothing more than backing up few kb of data on disk and refresh few X apps.
>
> Ater five days the global memory available go down from 24Mb to 8Mb ...
That is normal. Linux tries to put all memory to use and will free on
demand.
> The are some signifiant changes in slabinfo but now, I do not know where
> to search ?
Compile the slabinfo tool.
gcc -o slabinfo linux/Documentation/vm/slabinfo.c
Then you can do
slabinfo -T
to get an overview of how much is used by slabs. But I do not see that
slabs are using an excessive amount. So toying around with slabinfo is
not going to get you anywhere.