How do you find out how much time a system spends waiting for IO?

Is there a linux command that allows you to see a processes IO wait time vs. CPU time? I'm trying to see whether some processes are IO-bound or CPU-bound.


Solution 1:

I think iostat is the basic tool you want.

Solution 2:

Have a look at iotop.