Queue Depth
Cheat sheet · https://pcornel.dk/topic.php?topic=3858
Answer
Queue depth is the number of I/O requests waiting or in progress at once. Some queueing lets fast storage work in parallel; once latency keeps rising while completed I/O no longer increases, the device or path is saturated.
Remember
- Queue depth ≠ performance by itself.
- A deep queue can increase throughput and simultaneously worsen latency.
- Host queue depth is not the same as controller, array or media queue depth.
- An empty queue does not prove healthy storage if the workload is blocked before submission.
First checks
iostat -x 1— aqu-sz (average queue)cat /sys/block/<dev>/device/queue_depth— device limitcat /sys/block/<dev>/queue/nr_requests— block layer limit
Verify in this order
outstanding I/O → device parallelism → IOPS/latency
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 → Queue Depth performance map
| Measure/boundary | What to read | Proof limit |
|---|---|---|
| Workload shape | Block size, random/sequential pattern, read/write mix, concurrency and working set | Without workload shape, performance metrics are not comparable |
| Service rate | IOPS and throughput at the same time window | High service rate does not prove low latency or efficiency |
| Delay/queueing | Average plus tail latency and outstanding queue depth | A spike identifies pressure, not automatically root cause |
| Acceptance | Representative workload meets its latency/throughput objective in steady state | Required 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=3858