Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Benchmarking

Direct 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.

When to use this

Use it when configuring, checking or troubleshooting Benchmarking in Storage Performance.

First 30 seconds

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.

Operational verification

test pattern → device → IOPS/MB/s/latency

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Storage performance and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage performance and observability
Scope / prerequisiteUse it when configuring, checking or troubleshooting Benchmarking in Storage Performance.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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 benchmark
  • diskspd -b8K -d60 -o32 -t4 -r -w30 -Sh D:\test.dat — Windows DiskSpd
  • ioping -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

RuleReason
direct=1Avoid measuring RAM page cache
Test file larger than array/controller cacheAvoid measuring cache only
Run long enough (minutes)SSDs slow down after their write cache fills
Precondition flash before write testsFresh SSDs are faster than in steady state
Same job file, same host, record versionsResults are only comparable with identical inputs
Report latency percentiles, not only IOPSApplications feel p99 latency

What not to do

  • dd if=/dev/zero as 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage performance and observability current

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%
Terminology layer

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.

Aliases that resolve here
storage benchmarkdisk benchmarkio benchmark
Embedded reference data

Quick lookup tables

Storage Performance → Benchmarking performance map

Fast measurement, correlation and proof boundaries for Storage Performance → Benchmarking.

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
Confirmation

Confirm action

Continue?