Disk IOPS Saturation

Diagnose and resolve disk IOPS bottlenecks on EBS volumes and database instances under load.

Overview

Overview

Disk IOPS saturation happens when storage cannot serve reads and writes as fast as the application issues them, so pending I/O queues up. IOPS means I/O operations per second, the number of separate reads and writes a volume can serve. You see high I/O wait (the wa column in top), slow database queries and disk latency that surfaces as application timeouts. Unlike CPU saturation, which users mostly feel as latency, I/O saturation can cascade as write buffers fill and threads block on I/O.

The cascade runs in a fixed order.

  • The app issues I/O faster than the volume serves it.
  • The I/O queue grows, and await rises.
  • Threads block on I/O, which shows as high wa in top.
  • Write buffers fill.
  • Queries slow down and requests time out.
  • The timeouts spread into cascading failures.

Key concepts

  • IOPS
  • await
  • BurstBalance
  • gp3
  • I/O Wait

Interview questions

  • How do you diagnose disk I/O saturation on a Linux server and identify the bottleneck?
  • When should you use gp3 vs io2 EBS volumes for a database workload?
  • How does PostgreSQL WAL configuration affect disk IOPS and what settings reduce write I/O?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio