Use this when interpreting I/O queue depth.
Queue Depth · Storage Monitoring
Queue depth is the number of outstanding I/O requests waiting at a device, HBA or LUN. Some queuing is needed for throughput, but a persistently full queue with rising latency means the storage is saturated.
1. Queue depth monitoring shows saturation.
2. Growing queues with latency = bottleneck.
3. Compare to device capability.
4. Per path/device.
5. Alert on sustained growth.
outstanding I/O → queue metrics
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Raising queue depth to hide a slow device.
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.
- Some queuing is needed for throughput.
- Full queues with rising latency mean saturation.
- Queue limits exist per device, HBA and LUN.
iostat -x 1 (aqu-sz)— queue sizerate(node_disk_io_time_weighted_seconds_total[5m])— Prometheus queueGet-Counter '\PhysicalDisk(*)\Avg. Disk Queue Length'— Windows
ReferenceHow it works1 section · depth on demand
Tuning
Raise queue depth only when the backend has headroom (array vendor guidance). On ESXi: esxcli storage core device set -d naa.xxx -O <outstanding>; on Linux NVMe the defaults are usually fine.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Queue depth: how many I/Os are waiting or in flight
sar(1) reports aqu-sz as the average queue length of requests issued to the device. By Little's law, queue length ≈ IOPS × latency:
aqu-sz ≈ tps × await / 1000
Example: 4000 IOPS × 2 ms = 8 outstanding I/Os
$ sar -d -p 1 5 | grep -E 'DEV|sdb'
DEV tps await aqu-sz %util
sdb 4012.0 2.10 8.43 99.10
$ cat /sys/block/sdb/device/queue_depth # SCSI device queue depth
64
$ cat /sys/block/sdb/queue/nr_requests
256
Reading it
| Device type | Interpretation |
|---|---|
| Single HDD | Queue above 2–4 adds latency with little gain |
| SSD / NVMe | Needs a queue (often 16–64+) to reach rated IOPS |
| SAN LUN | Limited by host HBA queue, LUN queue and array port queues |
| VM virtual disk | Virtual controller queue may be the limit |
Where queues are limited
| Layer | Setting |
|---|---|
| Application | Threads or async I/O depth |
| Block layer | nr_requests |
| SCSI device | /sys/block/<dev>/device/queue_depth |
| HBA | Driver module parameters (vendor-specific) |
| Hypervisor | Per-VM or per-datastore limits |
| Array | Front-end port queue |
Symptoms
- Low IOPS with low
aqu-szand low latency: the workload does not issue enough parallel I/O. The storage is waiting for work. - High
aqu-szwith high latency: demand exceeds what the device serves. - Raising host queue depth on shared SAN storage can push the problem onto the array port. Coordinate with the array's documented limits.
Documented example, not captured output.
Quick reference
Queue depth is the number of outstanding I/Os. Little's law ties them together: IOPS = queue depth ÷ latency. A device with 0.1 ms latency at QD 1 delivers about 10 000 IOPS; to reach 200 000 IOPS it needs a queue depth around 20.
Too low a queue depth wastes fast devices; too high just adds latency. Queue depth limits exist per LUN in the HBA driver and per device in the hypervisor (esxcli storage core device list shows Device Max Queue Depth).
Reference
Queue depth = outstanding I/Os. Linux iostat -x shows aqu-sz; ESXi esxtop shows ACTV/QUED. Persistent queuing (QUED > 0) means the device or path is saturated.
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 Monitoring → Queue Depth. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://sysstat.github.io/ · confidence 94%