Report CPU and disk I/O statistics.
low risk
iostat (from sysstat package) reports CPU utilization and per-device disk I/O metrics including throughput (MB/s), IOPS, and await (average I/O wait time in ms). The -x flag provides extended per-device statistics essential for storage performance analysis.
| Flag | Meaning |
|---|---|
-x --extended | Show extended disk statistics |
-d --device | Show device utilization only |
-c --cpu | Show CPU statistics only |
-h --human | Human-readable sizes |
iostat -x 1 5Extended disk stats, every second, 5 samples · explain & risk-check →iostat -xh 2Human-readable extended I/O stats every 2s · explain & risk-check →iostat -d /dev/sda 1Monitor specific disk every second · explain & risk-check →In `iostat -x` output, focus on `await` (avg I/O wait ms) and `%util` (device saturation). `await` > 20ms or `%util` > 80% signals a storage bottleneck.
Reference text is hand-written and may be incomplete — check man iostat for your version. Test destructive commands on a non-production system first.