Latency
Cheat sheet · https://pcornel.dk/topic.php?topic=3517
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_awaitesxtop (d/u/v views)— DAVG/KAVG/GAVGioping -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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest latency | application/OS view | End-to-end-ish |
| Host latency | virtualization/storage stack | Intermediate |
| Backend latency | service/device time | Backend boundary |
| Tail latency | p95/p99/max | User-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