Pcornel
Virtualization · Virtual Storage

Queue Depth

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

Back to the Topic

Answer

Queue depth is how many I/O requests can be outstanding at once. In virtualization several queues stack up — in the guest, the virtual disk controller, the host and the storage array — and the smallest or busiest one limits performance.

Remember

  • Queue depth is not one universal counter; each layer may expose a different queue.
  • A higher queue can improve throughput on some backends while increasing latency.
  • A low queue does not prove performance is healthy if service time is already high.
  • Guest queue limits and backend queue capabilities may not match.

First checks

  • cat /sys/block/sda/device/queue_depth — device queue depth
  • iostat -x 1 (aqu-sz) — average queue size
  • esxtop (DQLEN, ACTV, QUED) — ESXi queues

Verify in this order

guest queue → controller → HBA/LUN queue → 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 → Queue Depth reference map

BoundaryMeaningEvidence limit
Guest queueOS/device outstanding I/OFront-end
Virtual queuecontroller/virtioHypervisor
Host/path queueblock/HBA/networkTransport
Backend queuearray/device/serviceService

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

Confirmation

Confirm action

Continue?