LedgerMath
← All benchmarksHow disk_write_latency works

Durable disk write, idle

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

CPU
Disk
Order
CompareMachineVariantP50P99RateUnit costRuns
i4i.2xlarge30.34 µs47.38 µs269.1 MB/s$0.209 /10k IOPS·h5
i4g.2xlarge32.38 µs46.35 µs253.8 MB/s$0.202 /10k IOPS·h4
m6id.2xlarge32.64 µs39.18 µs250.5 MB/s$0.155 /10k IOPS·h1
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 durable write to a disk: a buffered pwrite followed by fdatasync, one at a time, with every write timed on its own: each counted sample is exactly one write, so a Run gives the spread of single-write latencies (its op_histogram) as well as their median.

What it does not measure

  • With sync none the figure is the page cache's, not the device's: device_counters shows how few writes reached the device.
  • Throughput at depth: one write is outstanding at a time. disk_write_io_uring keeps many.
  • A tail beyond the counted samples: a Run times LM_SAMPLES writes.

The whole method, on its page →

i4i.2xlarge · instance store

Beat this hot path on GitHub ↗