Use it when configuring, checking or troubleshooting Queue Depth in Storage Performance.
Queue Depth · Storage Performance
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.
1. Queue depth = outstanding I/Os.
2. Needed to reach SSD/array performance.
3. Too high increases latency.
4. Check limits at each layer (app, OS, HBA, array).
5. Little's law: IOPS = QD / latency.
outstanding I/O → device parallelism → IOPS/latency
Context & applicabilityCommon mistakes · platform/version boundaries
Queue occupancy shows outstanding work at that boundary, but it does not show why requests are waiting or whether additional queue depth will improve service rate.
Suspicious evidence: queues grow continuously while completions plateau, upper-layer queues are full while backend is idle, or queue tuning is attempted before the actual limiting boundary is known.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Measurement path Verify boundary
workload concurrency → host queue → adapter/path queue → controller/pool queue → media service → completion/backpressure
Healthy evidence: queue depth is stable for the workload, extra concurrency yields predictable throughput, and latency remains inside target.
Step 2 Validate queue tuning against latency and fairness Verify boundary
After changing queue, scheduler or workload-concurrency settings, repeat the same I/O profile and compare throughput plus median and tail latency. Confirm no path, controller or backend queue remains saturated and that neighboring workloads have not suffered unacceptable latency. If the goal was to remove a throughput ceiling, verify throughput rises without runaway queue growth; if the goal was latency, verify outstanding I/O falls while required throughput remains. Finally repeat the real application transaction. A lower queue depth can simply mean work is blocked earlier, and a higher throughput benchmark can still violate application latency objectives, so closure requires both layer metrics and workload outcome.
Step 3 Locate where the queue accumulates Narrow the fault
When latency rises with queue depth, determine where outstanding requests stop making progress. If the application issues little concurrency but the backend queue is high, aggregation from other hosts or workloads may be responsible. If the OS queue grows while device utilization remains low, pathing, throttling or driver limits may be constraining dispatch. In multipath environments, compare per-path queues because one degraded path can distort aggregate behavior. Do not increase queue limits until the downstream device and latency profile show spare capacity; deeper queues can hide overload and worsen tail latency. Correlate the queue spike with IOPS, throughput, service time and the original application transaction.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceWhat it is1 section · depth on demand
Outstanding I/O and Little’s Law intuition
Queue depth is the number of I/O operations outstanding at a particular layer, but different tools measure different queues. A workload can have requests waiting in the application, operating-system block layer, HBA, multipath path, array controller or device. Throughput, latency and concurrency are related: at a stable rate, more in-flight work can increase throughput until a bottleneck saturates, after which additional queueing mainly increases latency. Therefore “queue depth 32” has no universal healthy meaning without knowing the device, workload size, read/write mix and measured layer. Compare queue depth with service time and completion latency, not as a standalone utilization percentage.
ReferenceImportant terms & boundaries2 sections · depth on demand
Measurement
Queue occupancy shows outstanding work at that boundary, but it does not show why requests are waiting or whether additional queue depth will improve service rate.
Operational checks for Queue Depth — Measurement and ownership boundary: Anchor stable filesystem/volume/LUN/share/device identities across host, path/fabric, controller/pool and media so retries or multipath do not hide the failed leg.
In depth
Queue depth is the number of I/O requests that can be outstanding at once at a layer — application, OS block device, HBA, array port or SSD. Enough queued I/O keeps fast storage busy; too much just adds waiting time. Little's Law ties these together: outstanding I/Os = IOPS × latency.
| Layer | Example setting |
|---|---|
| Application | Database I/O threads, iodepth in fio |
| Linux block device | /sys/block/sdX/device/queue_depth, nr_requests |
| HBA | Driver parameter (e.g. lpfc_lun_queue_depth) |
| VMware | Device queue depth, Disk.SchedNumReqOutstanding |
| NVMe | Many deep hardware queues |
cat /sys/block/sdb/device/queue_depth
iostat -x 5 | awk 'NR<4 || /sdb/' # aqu-sz = average queue
fio --name=t --filename=/dev/sdb --rw=randread --bs=4k --iodepth=32 --runtime=30 --direct=1 --readonly
If latency rises sharply while IOPS stays flat as queue depth increases, the device is saturated; follow vendor guidance before changing queue depths.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Performance → Queue Depth. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/iostats.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Performance → Queue Depth performance map
Fast measurement, correlation and proof boundaries for Storage Performance → Queue Depth.
| 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 |