Curriculum / Part 8 · Observability, troubleshooting and design
Lesson 36

Benchmarking honestly

Benchmarking honestly: the right tool for the question, preconditioning, cache effects, percentiles, and reporting enough to be reproduced.

⏱ 35 min5-question quizLab 8.2

The simple version

Timing a runner downhill with the wind behind them tells you nothing about their marathon. Good benchmarks run the real course, long enough, and write down the weather.

Tool for the question

QuestionTool
What can one device or client do?fio
Parallel filesystem bandwidth across many clientsIOR
Metadata operation ratesmdtest
Mixed file/object tests across clientselbencho
S3 throughputwarp
Storage for ML training workloadsMLPerf Storage (MLCommons)

Traps

  • Page cache: buffered reads of files that fit in RAM measure memory (Lesson 4). Use direct I/O or data much larger than RAM.
  • Fresh drives: write tests before preconditioning overstate SSDs (Lesson 7).
  • Too short: seconds-long runs miss steady state and garbage collection.
  • Averages only: report p99/p99.9; synchronised training waits on the tail.
  • One client: says little about a cluster's aggregate.

Report enough to reproduce

Every result should come with: exact command or job file, tool version, block size, queue depth and job count, data size vs RAM, direct or buffered, runtime, preconditioning, number of clients, hardware and firmware versions, and percentiles. A number without these is an anecdote.

sanity check: result ≤ the slowest link's ceiling

19.8 GB/s from one PCIe Gen4 x4 drive is impossible (~8 GB/s link ceiling), so something else answered.

Tools

fio
Device and client micro-benchmarks.
IOR / mdtest
Parallel FS bandwidth and metadata (IOR project).
elbencho
Distributed file and object benchmark.
MLPerf Storage
MLCommons benchmark for ML training storage.

Quiz

Lab

Lab 8.2 · The impossible benchmark

A vendor report claims one NVMe drive reads at 19.8 GB/s with 50 µs average latency, from this job:

Start lab 8.2 →