Guideiowait is high. Which process is it?
High iowait tells you the machine is waiting on disk. It does not tell you which process.
iowait is counted for the whole machine. To act on it you need two processes: the one doing the I/O (pidstat -d 1), and the one waiting for it (state D, a high iodelay). They are often not the same.
What iowait is, and why it misleads
In vmstat and top, wa is time spent waiting for I/O. The kernel’s own manual page for /proc/stat defines it the same way and then warns that the value “is not reliable”: a CPU does not wait for I/O, a task does, and on a multi-core machine the waiting task is not running on any CPU.
So read iowait as a sign, not a measurement. It is a property of the machine. It names no process.
Step 1: confirm that something is blocked
vmstat 1
Look at two columns. b is the number of processes blocked waiting for I/O to complete. wa is the share of CPU time spent waiting for I/O. A b that stays above zero is the stronger sign of the two.
Step 2: see whether a device is the bottleneck
iostat -x 1
await is the average time, in milliseconds, for a request to be served. aqu-sz is the average length of the queue of requests. %util is the share of time during which requests were issued to the device.
Do not stop at %util. The manual page says it shows saturation only for devices that serve requests one at a time. For RAID arrays and modern SSDs, which serve requests in parallel, it “does not reflect their performance limits”. Rising await with a growing queue is the better evidence.
Step 3: find the process doing the I/O
pidstat -d 1
kB_rd/s and kB_wr/s are what each task caused to be read from and written to disk. The task with the highest figures is the one producing the load. The same counts are in /proc/PID/io as read_bytes and write_bytes.
Step 4: find the process that is waiting
ps -eo state,pid,comm | awk '$1 == "D"'
pidstat -d 1 # the iodelay column
State D is uninterruptible sleep, usually I/O. It is a snapshot: run it several times. iodelay in pidstat -d is the block I/O delay of each task in clock ticks, and it includes time waiting for pages to be swapped in. The task with a high iodelay and low kB_rd/s and kB_wr/s is a victim, not the cause.
If iodelay reads zero for every task, check delay accounting before you trust it. The kernel documentation says delay accounting is disabled by default, and the iotop manual page says that since kernel 5.14 it is off unless you run sysctl kernel.task_delayacct=1. Only tasks started afterwards are counted.
iotop shows the same per process, as the share of time spent swapping in and waiting on I/O, and depends on the same setting.
What this cannot tell you
Whether disk is where the trouble started. A process short of memory waits on disk too, because its pages are being swapped in, and iodelay counts that. Two processes in state D at once do not say which one caused the other. For that you need to know, for one process, which resource was pressing on which.
Where Commotion begins
Every step above is done by hand, on one machine, while the incident is still happening. Commotion makes the judgement for every process on the node, each second: it judges a process on measured waiting, not on usage, and names which of CPU, memory, disk or network is at the root, with the measurement that proves it.
It runs beside the monitoring you already have. Read one incident, or see what Early Access involves.
Checked on 3 December 2026 against: proc_stat(5), vmstat(8), iostat(1), pidstat(1), proc_pid_io(5), ps(1), iotop(8), Kernel documentation: delay accounting. Command output differs between versions; read your own manual pages.
Stop guessing the cause from graphs.
Sign-up is not open yet; write to commotion@littlebit.in to ask about a trial.