Pcornel
Virtualization · Virtual Storage

IOPS

Cheat sheet · https://pcornel.dk/topic.php?topic=3516

Back to the Topic

Answer

IOPS is the number of I/O operations completed per unit time, usually per second, and must be interpreted together with block size, read/write mix, concurrency and latency.

Remember

  • IOPS is a rate, not latency.
  • The same IOPS value can represent very different throughput depending on I/O size.
  • High queue depth can increase achieved IOPS while also increasing response time.
  • Cached or coalesced I/O can make guest, host and backend IOPS counters differ.

First checks

  • fio --name=randread --rw=randread --bs=4k --iodepth=32 --size=1G --runtime=60 --direct=1 — measure IOPS
  • iostat -x 1 — device IOPS (r/s, w/s)
  • virsh domblkstat <vm> vda — VM I/O counters

Verify in this order

guest I/O → host → storage IOPS

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

Virtual Storage → IOPS reference map

BoundaryMeaningEvidence limit
IOPSoperations/secondRate only
Block sizebytes/operationThroughput context
Latencytime/operationResponse context
Queue depthoutstanding I/OConcurrency context

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3516

Confirmation

Confirm action

Continue?