Queue Depth
Cheat sheet · https://pcornel.dk/topic.php?topic=3518
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 depthiostat -x 1 (aqu-sz)— average queue sizeesxtop (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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest queue | OS/device outstanding I/O | Front-end |
| Virtual queue | controller/virtio | Hypervisor |
| Host/path queue | block/HBA/network | Transport |
| Backend queue | array/device/service | Service |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3518