[Gllug] finding which process is causing high system load
Ben Fitzgerald
ben_m_f at yahoo.co.uk
Wed Nov 23 23:10:46 UTC 2005
Hi,
I have a linux box where the cpu load is high, but this is due to a
constant 80% spent (according to vmstat) in kernel code.
If I use top I can sort by %CPU but this only takes into account user
mode time. If I sort by TIME+ I can see that the process hal is taking
up hours of CPU time (so this field must sum up kernel and user time).
So, I can identify the process, but what if this hadn't been running for
a long time. How can I display a list of processes sorted by % time spent
in user mode + time spent in kernel mode on behalf of the process?
As you can see, when sorting by %CPU hal doesn't stick out, but by TIME+
it's way ahead:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2007 root 16 0 6584 3856 1608 S 0.3 1.5 203:14.26 hald
Thanks in advance for pointers on this,
Ben.
--
Registered Linux user number 339435
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list