Stop the kernel from lying about your disk I/O latency

Performance Monitoring & Tuning

Stop the kernel from lying about your disk I/O latency

Technical Briefing | 12/4/2026

You see high load averages and think your application is waiting on the CPU. You check top, see wait time hovering around 15 percent, and start hunting for inefficient database queries. But if you are on a virtualized environment or using a cloud-backed block device, that wait time is a liar. It is not showing you the actual latency to the storage backend, just the fact that the thread is in an uninterruptible sleep state.

Looking past the load average mask

The standard tools like iostat are decent for averages, but they often mask micro-bursts of latency that kill application throughput. If you really need to know why your app is jittery, you have to look at the block layer latencies directly from the kernel. This bit me in prod during a migration when a network-attached disk started hitting its IOPS limit, causing random threads to hang for 50ms at a time while the aggregate stats looked perfectly healthy.

biolatency -D 1

  • Ignore averages and look for the tail latency in the histogram distribution
  • Watch for spikes in the 100ms range which usually point to storage saturation
  • Check if your virtualized storage layer is throttling requests without reporting it to the guest kernel

If you see a bimodal distribution in that histogram, you are likely hitting an auto-tiering mechanism on your storage array. The fast peak is your data in the cache, and the slow peak is the backend fetching from cold storage. Stop optimizing your application code until you verify that the hardware isn’t simply moving your data around beneath your feet.

Linux Admin Automation  |  © www.ngelinux.com  |  12/4/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted