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.
More on Performance & the USE Method
What is the USE method?BeginnerMap the USE method to concrete Linux commands.IntermediateWhat is your "first 60 seconds" checklist on a slow server?IntermediateHow do you read vmstat output?IntermediateHow do you read `iostat -xz 1`?IntermediateWhat is sar and why install sysstat on every server?Beginner