AW: [hobbit] OT: CentOS mem usage.

Henrik Stoerner henrik at hswn.dk
Wed May 23 14:02:31 CEST 2007


On Wed, May 23, 2007 at 12:34:11PM +0200, Thomas wrote:
> But I have tried this, and it gives me the application which has only 
> 1.8% of the memory. I need an overview of each process and what memory 
> is actually used by it. If its a memory leak will the original process 
> still own the memory ?

top and ps show how much memory is used by processes. If that doesn't 
account for all of the memory being used on the box, then it has to be
the Linux kernel which has allocated this memory - you can check the 
"free" output for a brief summary of how much memory is used, and the 
output from "cat /proc/slabinfo" will give you a breakdown of the kernel
memory allocations. (The "slabinfo" manpage has details about what these
mean).

I have seen leaks in the kernel affect memory usage, so this is not
as bizarre as it may seem. In fact, the "slab" column on the Hobbit demo
site http://www.hswn.dk/hobbit/servers/servers.html was created to 
track one of these.


Regards,
Henrik




More information about the Xymon mailing list