top says 30% wa and the machine feels slow, so the disk must be the problem. Then two busy programs start, the wa column drops to almost nothing, and the disk is working just as hard as before. iowait is one of the most quoted and least reliable numbers on a Linux system, and the kernel’s own documentation says so. Below, the same disk-heavy job was run twice on an Ubuntu 24.04 machine, once alone and once alongside two CPU-bound loops, and measured with vmstat and iostat.
What iowait is
Idle time with a condition attached
The iostat manual defines %iowait precisely: the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request. The %idle column is the rest of the idle time, when no disk request was waiting.
So iowait is a subset of idle. A processor that has nothing to run, while some task somewhere is waiting on the disk, books that time as iowait instead of idle. The instant it has other work to do, the same moment counts as busy.
The kernel’s warning
The proc_stat manual page, which documents where these numbers come from, describes the field as time waiting for I/O to complete and then says plainly: This value is not reliable. It gives three reasons:
- The CPU does not wait for I/O. iowait is the time a task is waiting, and when a CPU goes idle with I/O outstanding, another task may be scheduled on it.
- On a multi-core CPU, the task waiting for I/O is not running on any CPU, so iowait per CPU is hard to calculate.
- The value can decrease in some conditions.
The test below shows the first point in numbers.

The experiment
The job
The workload was dd writing 4 KiB blocks to a file with oflag=dsync, which forces each write to reach the disk before the next one starts. That is close to the pattern of a database committing small transactions. The machine had two CPUs and a virtual disk, vda.
Run 1: the disk job alone
vmstat 1, four one-second samples while dd ran:
r b ... bi bo in cs us sy id wa st
1 0 ... 4 80348 45084 73708 0 29 43 28 0
1 0 ... 0 76468 44030 70149 0 30 42 28 0
0 1 ... 0 76864 41665 70461 0 27 44 28 0
1 0 ... 0 84764 44214 77695 0 32 43 25 0
About 78 MB/s going to the disk (bo, in KiB per second), and wa at 25 to 28 percent. On the face of it, a quarter of the CPU was lost to waiting on the disk.
Run 2: the same job plus two CPU loops
Two shell loops of while :; do :; done were added, enough to keep both CPUs busy:
r b ... bi bo in cs us sy id wa st
3 0 ... 0 49840 23552 51401 78 22 0 1 0
3 0 ... 0 53024 21786 53615 79 21 0 0 0
2 1 ... 0 49588 24665 51531 80 20 0 1 1
2 1 ... 0 45380 27092 48654 75 23 0 2 0
The disk was still taking around 50 MB/s of synchronous writes. iowait fell to between 0 and 2 percent.
What changed
Nothing about the disk improved. The writes were the same kind, still synchronous, and still waited on. What changed was that the CPUs now had something else to do while dd waited. Time that had been “idle with I/O outstanding” became us time, running the loops, and iowait vanished from the display. This is the first reason in the kernel’s list, observed directly.
It cuts both ways. A server with high iowait may not be disk-bound in any way that matters, just mostly idle while one task syncs. A server with zero iowait may have a slow disk hidden behind busy CPUs.
Reading vmstat
The columns that matter here
The vmstat manual’s field list explains the samples above:
| Column | Meaning |
|---|---|
r |
Runnable processes, running or waiting for CPU time |
b |
Processes blocked waiting for I/O to complete |
bi, bo |
KiB per second received from and sent to block devices |
in, cs |
Interrupts and context switches per second |
us, sy, id, wa, st |
Percentages of CPU time: user, kernel, idle, I/O wait, stolen by the hypervisor |
The b column is a better disk-trouble signal than wa, because it counts tasks, not CPU time. Several processes sitting in b for many samples means work is queuing on I/O, however busy the CPUs happen to be.
The first line lies
Both tools share a trap. The vmstat manual says the first report produced gives averages since the last reboot. Only the following lines cover each sampling interval. iostat behaves the same way unless given -y, which its manual says omits that first since-boot report. A single run of vmstat without a delay shows nothing but averages since boot.

Reading iostat -x
Per-device numbers
iostat -xz -y -d vda 2 1 during Run 1 gave the extended device report. The interesting columns, trimmed:
Device w/s wkB/s w_await wareq-sz aqu-sz %util
vda 25733.50 77202.00 0.03 3.00 1.13 78.60
About 25,700 writes per second, each around 3 KB, about 77 MB/s in total, matching vmstat‘s bo.
await, not iowait
The manual defines w_await as the average time in milliseconds for write requests to be served, including time spent queued and time spent being serviced. Here it was 0.03 ms. That is the number that answers “is the disk slow?” directly. A spinning disk under load commonly shows several milliseconds; a struggling one, tens or hundreds.
aqu-sz is the average queue length, 1.13 here: about one request in flight at a time, as expected from a single synchronous writer.
%util is misleading on modern disks
%util read 78.6 percent, which sounds close to the limit. The manual warns against reading it that way. It is the percentage of elapsed time during which requests were issued to the device. Saturation shows up near 100 percent only for devices that serve requests one at a time. For devices that serve requests in parallel, such as RAID arrays and modern SSDs, the manual says the number “does not reflect their performance limits.” An NVMe drive can sit at 100 percent %util with plenty of capacity left.
Which process is doing the I/O
pidstat -d
vmstat and iostat say the disk is busy. They do not say who is keeping it busy. pidstat, from the same sysstat package as iostat, does. Its -d option, in the manual’s words, reports I/O statistics per task, including kB_wr/s, the number of kibibytes the task has caused, or shall cause to be written to disk per second.
With the dd writer running again, pidstat -d 2 1 named it immediately:
UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command
0 1578 0.00 24758.21 0.00 0 dd
The iodelay column, which the manual describes as the block I/O delay of the task measured in clock ticks, is the per-process answer to the question iowait only pretends to answer: how long has this program actually been held up waiting on block I/O?
/proc, without any tools
The same counters exist in the kernel for every process, in /proc/PID/io. For the running dd:
rchar: 76488700
wchar: 76480512
syscr: 18681
syscw: 18672
read_bytes: 0
write_bytes: 76521472
wchar counts bytes the program asked to write; write_bytes counts bytes that actually went to storage. The difference between those two lines separates a program that writes a lot into the page cache from one that really drives the disk, and it needs nothing installed at all.

What to look at instead
A short checklist
When a Linux system feels slow and the disk is the suspect:
vmstat 1: isbpersistently above zero? Iswahigh whileusandsyare low? Both together point at I/O.waalone does not.iostat -xz -y 1: which device, and what arer_awaitandw_await? Rising await with risingaqu-szmeans requests are queueing.- Compare the throughput,
rkB/sandwkB/s, against what the device is known to sustain. pidstat -d 1: which process is responsible.- Ignore
%utilon SSDs and arrays, as the manual advises.
In the experiment’s terms
Run 1 and Run 2 had iowait of 28 and 1 percent. The b column intermittently showed a blocked task in both runs, and the device kept accepting tens of thousands of synchronous writes per second with sub-millisecond await in Run 1. The disk was never the bottleneck. The writer was simply waiting on every single write, by design.
Sources
- iostat(1), Linux manual page (sysstat), man7.org: https://man7.org/linux/man-pages/man1/iostat.1.html
- vmstat(8), Linux manual page (procps-ng), man7.org: https://man7.org/linux/man-pages/man8/vmstat.8.html
- proc_stat(5), Linux manual page, man7.org: https://man7.org/linux/man-pages/man5/proc_stat.5.html

[…] one bit per cell, which is faster, then move data into the denser mode later. The earlier post on iowait and slow disks covers what it looks like from Linux when a drive gets […]