Benchmarking
Cheat sheet · https://pcornel.dk/topic.php?topic=3868
Answer
A valid benchmark defines data set, cache state, duration, warm-up, block size, randomness, read/write mix, concurrency, queue depth, durability semantics and measurement point. Results must distinguish burst from steady state and synthetic capability from application relevance.
Remember
- Benchmark score ≠ production performance.
- Peak result ≠ sustained result.
- Cache-hot result ≠ backing-storage result.
- Different block size, mix, queue depth or durability settings make headline comparisons invalid.
First checks
fio --name=bench --filename=<dev or file> --rw=randrw --rwmixread=70 --bs=4k --iodepth=32 --numjobs=4 --direct=1 --runtime=120 --time_based --group_reporting— fio benchmarkdiskspd -b8K -d60 -o32 -t4 -r -w30 -Sh D:\test.dat— Windows DiskSpdioping -c 20 <dir>— latency
Verify in this order
test pattern → device → IOPS/MB/s/latency
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 → Benchmarking 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=3868