Use it when configuring, checking or troubleshooting Benchmarking in Storage Performance.
Benchmarking
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.
1. Benchmark with workload-like patterns.
2. Use direct I/O to bypass page cache.
3. Test long enough to pass caches.
4. Never run destructive tests on production devices.
5. Record settings and results.
test pattern → device → IOPS/MB/s/latency
Context & applicabilityCommon mistakes · platform/version boundaries
A benchmark shows behavior only for its defined conditions and measurement scope; it does not automatically predict a different application, cache state, failure mode or production contention.
Suspicious evidence: only peak numbers are saved, dataset fits entirely in cache unintentionally, run duration is too short for steady state, or benchmark parameters differ from production.
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 Measurement path Verify boundary
hypothesis/SLO → controlled workload definition → warm-up → steady-state run → multi-layer measurement → repeatability check → production relevance assessment
Healthy evidence: methodology is reproducible, parameters are complete, repeated steady-state runs are consistent and the workload model matches the decision being made.
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.
- 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.
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
ReferenceImportant terms & boundaries3 sections · depth on demand
Measurement
A benchmark shows behavior only for its defined conditions and measurement scope; it does not automatically predict a different application, cache state, failure mode or production contention.
In depth
A benchmark answers one question; write the question down first
"How many 4 KiB random reads can this LUN do at queue depth 32?" is a benchmark question. "Is the storage fast?" is not.
A small fio job file
# cat db-like.fio
[global]
ioengine=libaio
direct=1
runtime=120
time_based
group_reporting
filename=/srv/fio.test
size=50G
[oltp]
rw=randrw
rwmixread=70
bs=8k
iodepth=16
numjobs=4
$ fio db-like.fio --output-format=json > result-$(date +%F).json
The fio documentation describes rw (randread, randwrite, randrw), rwmixread (read percentage of mixed jobs), bs, iodepth, numjobs, direct, runtime/time_based and output formats including json and json+ (full latency buckets).
Rules that make results comparable
| Rule | Reason |
|---|---|
direct=1 | Avoid measuring RAM page cache |
| Test file larger than array/controller cache | Avoid measuring cache only |
| Run long enough (minutes) | SSDs slow down after their write cache fills |
| Precondition flash before write tests | Fresh SSDs are faster than in steady state |
| Same job file, same host, record versions | Results are only comparable with identical inputs |
| Report latency percentiles, not only IOPS | Applications feel p99 latency |
What not to do
dd if=/dev/zeroas a benchmark: sequential, compressible, single-threaded.- Write tests against a device with data.
- Benchmarks on shared production storage during business hours.
*The fio job file demonstrates a mixed workload configuration; no benchmark execution result is supplied.*
Method
A useful benchmark is reproducible and resembles the real workload.
1. Define the question ("Can this array do 20k 8K 70/30 IOPS under 1 ms?").
2. Use direct I/O (--direct=1) and a test file larger than all caches (or precondition SSDs by writing them full twice).
3. Run long enough to pass cache absorption and SSD steady state (≥ 5–10 minutes for writes).
4. Sweep queue depth (1, 4, 16, 64) to see the latency/IOPS curve.
5. Record versions, settings and results; repeat three times.
fio --name=oltp --rw=randrw --rwmixread=70 --bs=8k --iodepth=16 --numjobs=4 --direct=1 --size=50G --runtime=600 --time_based --group_reporting --percentile_list=50:95:99:99.9 --filename=/data/fio.tmp
Never run write benchmarks against a raw device that holds data.
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 Performance → Benchmarking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/iostats.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Performance → Benchmarking performance map
Fast measurement, correlation and proof boundaries for Storage Performance → Benchmarking.
| 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 |