LedgerMath
← All benchmarksHow disk_write_io_uring works

Durable disk write with io_uring

disk_write_io_uring · compared along a sweep · 46 Series on 8 machine types · AWS us-east-2

CPU
Disk
Queue depth
CompareQueue depthVariantMachineP50P99RateUnit costRuns
m6id.2xlarge
QD 1m6id.2xlarge30.34 µs45.31 µs133.3 MB/s$0.146 /10k IOPS·h1
QD 4m6id.2xlarge59.14 µs64.77 µs274.8 MB/s$0.0708 /10k IOPS·h1
QD 16m6id.2xlarge236.5 µs244.7 µs278.3 MB/s$0.0699 /10k IOPS·h1
QD 64m6id.2xlarge946.2 µs970.8 µs278.3 MB/s$0.0699 /10k IOPS·h1
QD 128m6id.2xlarge1.892 ms2.703 ms278.3 MB/s$0.0699 /10k IOPS·h1
QD 256m6id.2xlarge3.686 ms5.341 ms278.3 MB/s$0.0699 /10k IOPS·h1
i4i.2xlarge
QD 1i4i.2xlarge25.98 µs38.66 µs153.8 MB/s$0.184 /10k IOPS·h5
QD 4i4i.2xlarge41.22 µs114.2 µs377.5 MB/s$0.0747 /10k IOPS·h5
QD 16i4i.2xlarge144.4 µs226.3 µs451.1 MB/s$0.0623 /10k IOPS·h5
QD 64i4i.2xlarge577.5 µs667.6 µs451.1 MB/s$0.0623 /10k IOPS·h5
QD 128i4i.2xlarge1.155 ms1.270 ms451.1 MB/s$0.0623 /10k IOPS·h5
QD 256i4i.2xlarge2.310 ms3.457 ms451.1 MB/s$0.0623 /10k IOPS·h5
Compared:m6id.2xlargei4i.2xlarge

Saturation: throughput against P99

one line per disk and machine, a point per queue depth; log scales
m6id.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

How many writes a disk completes when one thread keeps queue_depth of them submitted, O_DIRECT through io_uring, each durable when it completes (RWF_DSYNC) or not, with the time of each write from submission to reap binned in an op_histogram.

What it does not measure

  • queue_depth counts writes submitted and not yet reaped, not writes the device held at any instant (as in disk_read_io_uring).
  • A histogram time is submission to reap: it includes any time a completion waited in the ring while the thread handled another. It is not the device's own service time.
  • Timing each write costs two clock reads per repetition inside the measured loop (clock_read_ns in started each).

The whole method, on its page →

i4i.2xlarge · instance store · QD 4

Beat this hot path on GitHub ↗