Performance Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3869
Answer
Storage performance troubleshooting compares the slow period with a known-good baseline and measures latency, IOPS and queueing at each layer — host, network, controller, pool and disks — to find the first layer that behaves differently.
Remember
- Slow application ≠ storage root cause.
- High disk utilization ≠ proven storage bottleneck.
- Low IOPS does not prove idle storage if requests are blocked upstream.
- A temporary improvement after cache flush, restart or queue change is not a durable fix until the original workload is verified.
First checks
iostat -x 1— device metricspidstat -d 1— I/O per processbiolatency / biotop (bcc)— latency distribution
Commands
iostat -xz 1 5- Sample storage latency and queue depth. Focus fields: device utilization, await, read/write latency, queue depth, IOPS …
Verify in this order
symptom → process → device → layer → fix
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 → Performance Troubleshooting 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=3869