Pcornel
Storage · Storage Performance

Queue Depth

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

Back to the Topic

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 limit
  • cat /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/boundaryWhat to readProof limit
Workload shapeBlock size, random/sequential pattern, read/write mix, concurrency and working setWithout workload shape, performance metrics are not comparable
Service rateIOPS and throughput at the same time windowHigh service rate does not prove low latency or efficiency
Delay/queueingAverage plus tail latency and outstanding queue depthA spike identifies pressure, not automatically root cause
AcceptanceRepresentative workload meets its latency/throughput objective in steady stateRequired 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

Confirmation

Confirm action

Continue?