Pcornel
Virtualization · Virtual Storage

Latency

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

Back to the Topic

Answer

Storage Latency is the elapsed time between submitting an I/O and receiving completion, with total guest-observed time potentially containing guest queueing, virtualization, host, network/fabric and backend service time.

Remember

  • Average latency can hide tail latency that affects applications.
  • Guest-observed latency includes more layers than raw device service time.
  • Low backend latency does not prove the guest path is not queueing elsewhere.
  • High latency can be caused by contention, retries, cache flushes, network/fabric issues or backend saturation.

First checks

  • iostat -x 1 — await/r_await/w_await
  • esxtop (d/u/v views) — DAVG/KAVG/GAVG
  • ioping -c 10 /path — quick latency

Verify in this order

guest → host queue → fabric → array

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 → Latency reference map

BoundaryMeaningEvidence limit
Guest latencyapplication/OS viewEnd-to-end-ish
Host latencyvirtualization/storage stackIntermediate
Backend latencyservice/device timeBackend boundary
Tail latencyp95/p99/maxUser-impact risk

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

Confirmation

Confirm action

Continue?