Interview Prep/Linux/Load, CPU and I/O performance

`iostat` shows a disk at `%util 100` but throughput is only 5 MB/s.

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Random small I/O on a device with low IOPS (HDD or small cloud volume), or the cloud volume is throttled at its IOPS limit / out of burst credits.

Diagnose →

iostat -xz 1 5           # r/s, w/s, rareq-sz, wareq-sz, aqu-sz

In AWS check BurstBalance and VolumeQueueLength for gp2, or provisioned IOPS for gp3/io2.

Fix → Move to a volume with more IOPS (gp3 with provisioned IOPS, NVMe), or reduce random I/O (batch writes, caching).

Prevent → Size volumes for IOPS, not just capacity. Note %util is misleading on SSD/NVMe arrays that handle requests in parallel; prefer await and queue size.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance