Random I/O
Cheat sheet · https://pcornel.dk/topic.php?topic=3860
Answer
Random workloads reduce opportunities for sequential aggregation and can expose device service-time limits. Small random I/O often becomes IOPS/latency bound; large random I/O may also become bandwidth bound. Flash removes mechanical seek but not controller, mapping, garbage-collection or queueing costs.
Remember
- Random I/O ≠ HDD-only problem.
- SSD random latency is lower than HDD seek latency but is not zero or constant.
- Random IOPS depends on block size, read/write mix and queue depth.
- Cached random reads do not prove backend random-read capability.
First checks
fio --rw=randread --bs=4k --iodepth=32 --direct=1 ...— random testiostat -x 1— IOPS and latencyblktrace— pattern
Verify in this order
scattered requests → IOPS/latency bound
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 → Random I/O 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=3860