LedgerMath
← All benchmarksHow disk_read_io_uring works

Disk read with io_uring

disk_read_io_uring · compared along a sweep · 50 Series on 8 machine types · AWS us-east-2

CPU
Access
Disk
Request
Queue depth
CompareQueue depthVariantMachineP50P99RateUnit costRuns
i4g.2xlarge
QD 64i4g.2xlarge505.9 µs610.3 µs512.8 MB/s$0.0493 /10k IOPS·h4
m6id.2xlarge
QD 1m6id.2xlarge78.34 µs91.65 µs49.96 MB/s$0.389 /10k IOPS·h1
QD 4m6id.2xlarge84.48 µs110.1 µs188.9 MB/s$0.103 /10k IOPS·h1
QD 16m6id.2xlarge113.2 µs158.7 µs549.6 MB/s$0.0354 /10k IOPS·h1
QD 64m6id.2xlarge477.2 µs522.2 µs549.5 MB/s$0.0354 /10k IOPS·h1
QD 128m6id.2xlarge954.4 µs1.028 ms549.5 MB/s$0.0354 /10k IOPS·h1
QD 256m6id.2xlarge1.909 ms1.991 ms549.5 MB/s$0.0354 /10k IOPS·h1
i4i.2xlarge
QD 1i4i.2xlarge107.0 µs144.4 µs37.89 MB/s$0.742 /10k IOPS·h5
QD 4i4i.2xlarge112.1 µs175.1 µs144.2 MB/s$0.195 /10k IOPS·h5
QD 16i4i.2xlarge136.2 µs240.6 µs470.9 MB/s$0.0597 /10k IOPS·h5
QD 64i4i.2xlarge317.4 µs477.2 µs819.2 MB/s$0.0343 /10k IOPS·h5 +84 failed
QD 128i4i.2xlarge634.9 µs847.9 µs819.2 MB/s$0.0343 /10k IOPS·h5
QD 256i4i.2xlarge1.270 ms1.450 ms819.2 MB/s$0.0343 /10k IOPS·h5
Compared:m6id.2xlargei4g.2xlargei4i.2xlarge

Saturation: throughput against P99

one line per disk and machine, a point per queue depth; log scales
i4g.2xlargem6id.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 reads a disk completes when one thread keeps queue_depth of them submitted, O_DIRECT through io_uring. In the Runs examined on EC2 the counted samples sat on the provider's throughput or IOPS limit for the disk, not on the device's own; the binary does not require a limit to bind, and where the dumps took them, the device's counters show the time spent over each limit.

What it does not measure

  • In the Runs examined, the counted samples sat on the provider's limit for the disk, not the device's own (see "Findings").
  • Each sample gives its time divided by the completions it reaped; the Run's figure is the median of those.
  • queue_depth counts reads submitted and not yet reaped, not reads the device held at any instant.

The whole method, on its page →

i4i.2xlarge · random · instance store · 4 KiB · QD 64

Beat this hot path on GitHub ↗