Analyze Disk I/O with iostat -x
iostat -x prints extended per-device statistics — r/s, w/s, await, and %util — refreshed on an interval so you can watch saturation.
01Command
$ iostat -x 2 502What it does
Plain `iostat` shows only coarse transfer totals; the -x flag is what reveals the useful per-device columns. await is the average request wait time in ms (a spinning drive with await consistently above ~15 ms is a red flag), and %util approaches 100% when a device is saturated. The first report is a since-boot average, so ignore it and read the interval samples; add `-d` to drop the CPU table or `-k`/`-m` for unit control.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- iostat(1) - Report CPU statistics and I/O statistics for devicesEvidence: -x shows extended statistics; interval and count parameters report repeatedly; %util is the percentage of elapsed time during which the device was busy.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.
ncdu scans a directory tree, then lets you browse sizes, navigate, and delete space hogs with one keypress.
vmstat gives a compact one-line-per-interval view of CPU usage, swap activity, and I/O waits that top doesn't summarize as clearly.