PDA

View Full Version : [kubuntu] understanding data in 'top' display



chitowner2
April 28th, 2010, 05:50 AM
OK folks, this is a pretty simple question- for somebody. So pardon my ignorance, but here goes.

Why is it that when running 'top' in a shell and seeing it list say 8G available, 5G used, 3G free, that it seems impossible for the list of PID's to be using that much?

AFAICT, the top 20 or so PIDs (sorted for %MEM use) add up to maybe 1G or so, but 'free' corroborates that 5G are being used. Where are all the resource hogs I presume must be running?

Chime in anybody.

CT
:confused:

conradin
April 28th, 2010, 05:57 AM
ps -elf

look for zombie processes (Z) in the S column. (second column over)
SZ Column is memory in KB look for processes with high memory usage there.

xebian
April 28th, 2010, 05:59 AM
htop is better.

chitowner2
April 28th, 2010, 04:08 PM
Thanks Conradin. I normally just use ps -ef, so I tried adding the l and got a major zombie: /sbin/init (root) SZ=4893.

Xebian- Yes, Htop is definitely better. looks like more data and more user-friendly. Had to apt-get it, but now I see multiple copies of some apps, all with unique PID's and identical MEM & CPU usage.

The replicate apps do not show as zombies with "ps -elf". Any idea why these show up with htop and not ps?

Thanks Guys
CT
:?

diesch
April 28th, 2010, 06:54 PM
Why is it that when running 'top' in a shell and seeing it list say 8G available, 5G used, 3G free, that it seems impossible for the list of PID's to be using that much?


Have a look at the values for "buffers" and "cached", they are part of "used", too.

If you run "free" on the command line the "-/+ buffers/cache:" line shows you the memory used by programs (that is without buffers and chached)