|| What's it waiting for?
||Aug. 24th, 2004 05:52 pm|
Is there any way of finding out from the unix (ok, linux) command line whether processes are CPU-bound or disk-bound? Or which is the major cause of (uptime-style) load on a box?
vmstat (or vmstat <delay>)
Processes in the 'r' column are runnable and using CPU time, processes in the 'b' column are blocked on I/O.
If you have a number of tasks blocked on I/O then look in ps or top for processes in 'D' (uninterruptible sleep) state.
I can't really answer the question directly -- but I can say I had major problems with processes slowing down and acting as if the CPU was taking a huge hit (when it wasn't) when I was running a kernel with UDMA misconfigured. [I still get the same symptoms when copying to my mp3 player.]
Doubt that will help, but you never know.