.
What's it waiting for? - Grin with cat attached
Previous Entry Next Entry
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?

From: xraycb
Date: August 24th, 2004 - 08:11 pm (Link)
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.