Interview Prep/Linux/Performance & the USE Method

How do you find which process is doing the most disk I/O?

IntermediateProductionPerformance & the USE Method
Answer
sudo iotop -oPa          # only active processes, accumulated
pidstat -d 1             # kB_rd/s, kB_wr/s, iodelay per process
sudo biotop-bpfcc        # per-process block I/O via eBPF

iotop needs CONFIG_TASK_IO_ACCOUNTING and, on newer kernels, delayacct enabled (sysctl kernel.task_delayacct=1) for the IO% column.

All Linux questions Roadmap: Linux

More on Performance & the USE Method