3 ms·
> show what processes caused the io pidstat (part of Sysstat, "apt-get install sysstat" on Debian/Ubuntu) does this pretty well. # sudo pidstat -d 1
by lobster_johnson 13y ago
> show what processes caused the io
pidstat (part of Sysstat, "apt-get install sysstat" on Debian/Ubuntu) does this pretty well.
# sudo pidstat -d 1
11:21:54 PM PID kB_rd/s kB_wr/s kB_ccwr/s Command
11:21:55 PM 855 0.00 7.92 0.00 kjournald
11:21:55 PM 8134 0.00 79.21 0.00 rsyslogd
11:21:55 PM PID kB_rd/s kB_wr/s kB_ccwr/s Command
11:21:56 PM 829 0.00 28.00 0.00 kjournald
11:21:56 PM 8134 0.00 60.00 0.00 rsyslogd
11:21:56 PM PID kB_rd/s kB_wr/s kB_ccwr/s Command
11:21:57 PM 8134 0.00 104.00 0.00 rsyslogd
11:21:57 PM PID kB_rd/s kB_wr/s kB_ccwr/s Command
11:21:58 PM 8134 0.00 56.00 0.00 rsyslogd
Since 2.6.something, the kernel has had per-process I/O counters.
Still, it's pretty far from DTrace's iosnoop script (on OS X, do "sudo iosnoop" to see it). Something I dearly miss on Linux, but I don't know what the situation is with SystemTap or DTrace these days.