Re: Posible memory leak!?

Boris Kurktchiev
2003-05-15T14:07:17Z

On Thursday May 15 2003 1:51 am, Denis Vlasenko wrote:
> On 14 May 2003 17:12, Boris Kurktchiev wrote:
> > heh this is very interesting.... top b n1 reports this:
> > top - 10:08:24 up 16:36, 2 users, load average: 0.16, 0.19, 0.08
> > Tasks: 62 total, 1 running, 60 sleeping, 0 stopped, 1 zombie
> > Cpu(s): 12.3% user, 5.1% system, 0.0% nice, 82.6% idle
> > Mem: 385904k total, 381572k used, 4332k free, 137244k
> > buffers Swap: 128512k total, 20012k used, 108500k free,
> > 126168k cached
>
> Typical. So what makes you think kernel leaks memory?

well the fact that before my swap was never used, and now .... I need to
transcode something so I can show you how all swap is being used and non of
the RAM (thus making programs run much slower, as is the case with
transcode).

> BTW, which version of procps do you have? Mine is 2.0.10,
> 2.0.11 already exists.

I believe I have 2.0.10.

> gkrellm must be subtracting something from MemTotal trying
> to account for fact that large part of RAM is used as a cache.
> You may consult its source.

No... I forgot to tell it to count cache and buffers...