Pcornel
Storage · Storage Performance

Latency

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

Back to the Topic

Answer

Observed I/O latency includes waiting time plus service time across all synchronous boundaries. Averages can conceal severe tail latency, so percentiles and time correlation matter. Latency often rises sharply when queueing develops near saturation.

Remember

  • Latency ≠ IOPS.
  • Average latency ≠ tail latency.
  • Device service time ≠ application-observed I/O latency.
  • Low latency during an idle or cache-hot test does not prove sustained low latency.

First checks

  • iostat -x 1 — r_await/w_await (ms)
  • ioping -c 20 <dir or dev> — latency probe
  • Get-Counter '\PhysicalDisk(*)\Avg. Disk sec/Read','\PhysicalDisk(*)\Avg. Disk sec/Write' — Windows

Verify in this order

I/O submit → queue → service → complete

Where it usually breaks

First mismatch in workload → filesystem/volume → queue/cache → path/protocol → controller/pool → media/backend → observed completion; preserve identity/pre-state before mutation.

Storage Performance → Latency performance map

Measure/boundaryWhat to readProof limit
Workload shapeBlock size, random/sequential pattern, read/write mix, concurrency and working setWithout workload shape, performance metrics are not comparable
Service rateIOPS and throughput at the same time windowHigh service rate does not prove low latency or efficiency
Delay/queueingAverage plus tail latency and outstanding queue depthA spike identifies pressure, not automatically root cause
AcceptanceRepresentative workload meets its latency/throughput objective in steady stateRequired to close the performance investigation

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

Confirmation

Confirm action

Continue?