LedgerMath
← All benchmarksHow disk_read_latency works

Random disk read, idle

disk_read_latency · compared across machine types · 14 Series on 8 machine types · AWS us-east-2

CPU
Disk
Order
CompareMachineVariantP50P99RateUnit costRuns
m6id.2xlarge87.55 µs100.9 µs93.20 MB/s$0.417 /10k IOPS·h1
i4g.2xlarge119.3 µs144.4 µs68.49 MB/s$0.737 /10k IOPS·h4
i4i.2xlarge119.3 µs142.3 µs68.37 MB/s$0.839 /10k IOPS·h5
Compared:m6id.2xlargei4g.2xlargei4i.2xlarge

Tail: P50 → P99.9

per operation, log scale

Latency histograms

pooled across counted Runs, each to its own peak

(one request each to the data API)

Over time

newest counted Runs, each Run's P50

(one request each to the data API)

What this measures

The time of one O_DIRECT random read from a disk, one read outstanding at a time, with every read timed on its own: each counted sample is exactly one read, so a Run gives the spread of single-read latencies (its op_histogram) as well as their median.

What it does not measure

  • Throughput at depth: one read is outstanding at a time. disk_read_io_uring keeps many.
  • A tail beyond the counted samples: a Run of LM_SAMPLES samples times LM_SAMPLES reads, so its 99.9th percentile means something only when LM_SAMPLES is in the thousands.
  • Each sample's time includes the two clock reads at its edges (clock_read_ns in started, about 20 ns), and the write of the previous sample's two events precedes it.

The whole method, on its page →

i4i.2xlarge · instance store

Beat this hot path on GitHub ↗