Pcornel
Storage · Storage Performance

Random I/O

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

Back to the Topic

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 test
  • iostat -x 1 — IOPS and latency
  • blktrace — 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/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=3860

Confirmation

Confirm action

Continue?