Site icon New Generation Enterprise Linux

Stop the kernel from lying about your disk latency

Performance Monitoring & Tuning

Stop the kernel from lying about your disk latency

Technical Briefing | 11/27/2026

You check iostat, see high await times, and immediately assume your storage array is melting down. Or maybe you think the application is hitting the disk too hard. Usually, you are looking at the wrong number entirely. Average latency is a lie that covers up the spikes that actually kill your throughput. If you rely on the 5-second average, you are basically flying blind while the system intermittently stalls.

Why iostat fails you when it matters

The kernel aggregates disk stats across an interval, smoothing out the very jitter you need to see. If you have a process doing synchronous writes, it does not matter if the average wait is 2ms when 1% of your operations are taking 500ms. Those are the requests that cause your connection pool to starve and your application threads to back up. Stop trusting the averages and start looking at the latency distributions.

biolatency -D 5
  • Biolatency captures actual disk I/O latency distributions using eBPF, not stale kernel counters
  • Watch for bimodal distributions where a small set of requests are consistently orders of magnitude slower
  • The D flag breaks this down by disk device so you can isolate the faulty drive in a mirrored pool

If you see a second peak forming in your histogram, you are looking at hardware contention or a controller reaching its queue depth limit. Don’t waste time tuning your filesystem mount options until you confirm the hardware is actually delivering what it promised. It is rarely the mount flags and almost always a noisy neighbor or a failing drive head.

Next time the dashboard lights up red, skip the top-level metrics. Drop into the shell and watch the histogram shift in real time. If the distribution isn’t clean, you know exactly where to point the finger, and you won’t be chasing ghosts in the application layer.

Linux Admin Automation  |  © www.ngelinux.com  |  11/27/2026
0 0 votes
Article Rating
Exit mobile version