GuideThe process is slow and CPU is low. Why?
A slow process with low CPU is not idle. It is waiting, and the question is on what.
Low CPU usage means the process is mostly not running. It does not mean nothing is wrong. Check three things a process can wait for on this machine: the disk, memory, and a turn on the CPU.
Step 1: what state is it in?
ps -o state,pid,comm -p PID
R is running or runnable. S is interruptible sleep, waiting for an event. D is uninterruptible sleep, usually I/O. This is one instant; repeat it. A process often seen in D is waiting on storage. One often seen in R with low usage is waiting for a CPU.
Step 2: is it waiting on disk?
pidstat -d -p PID 1
iodelay is the block I/O delay of the task, in clock ticks. If it is high while kB_rd/s and kB_wr/s are low, the process is not the one loading the disk; it is queueing behind something that is. If it reads zero for every task, delay accounting may be off; the iowait guide says how to check. Finding the process doing the I/O.
Step 3: is it waiting on memory?
pidstat -r -p PID 1
vmstat 1
majflt/s counts major faults: the task needed a page that had to be loaded from disk. A steady rate can mean its memory is being taken away and brought back. In vmstat, si and so are memory swapped in from and out to disk each second, for the whole machine; either staying above zero supports that reading.
This is why memory trouble looks like disk trouble. iodelay includes time spent waiting for pages to be swapped in, so a process short of memory shows a disk delay.
Step 4: is it waiting for a CPU?
pidstat -u -p PID 1
%wait is the share of time the task spent waiting to run. Low usage with a high %wait means the process wants the CPU and is not getting it. Busy against waiting.
Step 5: or is it waiting on something else?
pidstat -w -p PID 1
cswch/s counts voluntary context switches: the task gave up the CPU to wait. If the three checks above are clean and this is high, the process may be waiting on something none of these checks measure, such as a lock or a reply from another service. That is a question for your traces and logs.
What this cannot tell you
The order. You may find the process waiting on disk and on memory at once. Whether memory pressure caused the disk wait, or the other way round, is not in any one of these figures.
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: ps(1), pidstat(1), vmstat(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.