Per Process disk read/write statistics in Mac OS X

Raviprakash picture Raviprakash · Apr 3, 2013 · Viewed 13.8k times · Source

How do I get programatically per process disk i/o statistics in Mac OS X. In 'Activity Monitor' application or in 'top' command we can only get whole system disk i/o statistics.
For reference Similar question asked for PC.

Answer

slerena picture slerena · May 9, 2013

Use iotop (as root), for example:

iotop -C 3 10

But the best way (for me) is:

sudo fs_usage -f filesys