LedgerMath
← All showdowns

Local NVMe against EBS

The instance store against EBS gp3 and io2 volumes on the same box: idle latency, the tail, saturation and what an IOPS costs.

live20 of 20 figures live · AWS us-east-2

Random read, idle

One 8 KiB read at a time, O_DIRECT, queue depth 1; each disk reads across its own span, shown on its row
ColourSetupVariantMachineP50P99P99/P50Unit costRuns
Local NVMeinstance storeO_DIRECTQD=18 KiB32 GiB spanm6id.2xlarge87.55 µs100.9 µs×1.2$0.417 /10k IOPS·h1
EBS gp3, 3k IOPSroot gp3 3kO_DIRECTQD=18 KiB1 GiB spanm6id.2xlarge292.9 µs411.7 µs×1.4$1.4 /10k IOPS·h1
EBS gp3, 16k IOPSgp3 16kO_DIRECTQD=18 KiB1 GiB spanm6id.2xlarge577.5 µs848.0 µs×1.5$3.54 /10k IOPS·h1
EBS io2, 16k IOPSio2 16kO_DIRECTQD=18 KiB1 GiB spanm6id.2xlarge309.2 µs452.6 µs×1.5$5.86 /10k IOPS·h1
EBS io2, 32k IOPSio2 32kO_DIRECTQD=18 KiB1 GiB spanm6id.2xlarge309.2 µs452.6 µs×1.5$10.3 /10k IOPS·h1

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)

Random read, saturated

4 KiB reads through io_uring, O_DIRECT, 64 in flight; each disk reads across its own span, shown on its row
ColourSetupVariantMachineP50P99RateUnit costRuns
Local NVMeinstance storeO_DIRECTQD=644 KiB32 GiB spanm6id.2xlarge477.2 µs522.2 µs549.5 MB/s$0.0354 /10k IOPS·h1
EBS gp3, 3k IOPSroot gp3 3kO_DIRECTQD=644 KiB1 GiB spanm6id.2xlarge21.10 ms23.46 ms12.28 MB/s$1.59 /10k IOPS·h1
EBS gp3, 16k IOPSgp3 16kO_DIRECTQD=644 KiB1 GiB spanm6id.2xlarge3.949 ms4.489 ms65.54 MB/s$0.384 /10k IOPS·h1
EBS io2, 16k IOPSio2 16kO_DIRECTQD=644 KiB1 GiB spanm6id.2xlarge3.981 ms4.424 ms65.54 MB/s$1.19 /10k IOPS·h1
EBS io2, 32k IOPSio2 32kO_DIRECTQD=644 KiB1 GiB spanm6id.2xlarge2.007 ms2.277 ms131.1 MB/s$1.04 /10k IOPS·h1

Random 4 KiB reads, queue depth 1 to 256

Saturation: throughput against P99

one line per disk and machine, a point per queue depth; log scales
gp3 16k · m6id.2xlargeinstance store · m6id.2xlargeio2 16k · m6id.2xlargeio2 32k · m6id.2xlargeroot volume · m6id.2xlarge

Latency histograms

pooled across counted Runs, each to its own peak

(one request each to the data API)

Durable write, idle

One 8 KiB write at a time, each followed by fdatasync
ColourSetupVariantMachineP50P99P99/P50Unit costRuns
Local NVMeinstance storefdatasyncQD=18 KiB256 MiB filem6id.2xlarge32.64 µs39.18 µs×1.2$0.155 /10k IOPS·h1
EBS gp3, 3k IOPSroot gp3 3kfdatasyncQD=18 KiB256 MiB filem6id.2xlarge913.4 µs995.3 µs×1.1$4.36 /10k IOPS·h1
EBS gp3, 16k IOPSgp3 16kfdatasyncQD=18 KiB256 MiB filem6id.2xlarge913.4 µs987.1 µs×1.1$5.61 /10k IOPS·h1
EBS io2, 16k IOPSio2 16kfdatasyncQD=18 KiB256 MiB filem6id.2xlarge261.1 µs432.1 µs×1.7$4.99 /10k IOPS·h1
EBS io2, 32k IOPSio2 32kfdatasyncQD=18 KiB256 MiB filem6id.2xlarge257.0 µs428.0 µs×1.7$8.58 /10k IOPS·h1

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)

Durable write, saturated

4 KiB writes through io_uring with RWF_DSYNC, 64 in flight; each disk writes across its own file, shown on its row
ColourSetupVariantMachineP50P99RateUnit costRuns
Local NVMeinstance storeRWF_DSYNCQD=644 KiB1 GiB filem6id.2xlarge946.2 µs970.8 µs278.3 MB/s$0.0699 /10k IOPS·h1
EBS gp3, 3k IOPSroot gp3 3kRWF_DSYNCQD=644 KiB256 MiB filem6id.2xlarge21.36 ms25.82 ms12.29 MB/s$1.59 /10k IOPS·h1
EBS gp3, 16k IOPSgp3 16kRWF_DSYNCQD=644 KiB1 GiB filem6id.2xlarge3.981 ms4.882 ms65.54 MB/s$0.384 /10k IOPS·h1
EBS io2, 16k IOPSio2 16kRWF_DSYNCQD=644 KiB1 GiB filem6id.2xlarge3.949 ms4.489 ms65.54 MB/s$1.19 /10k IOPS·h1
EBS io2, 32k IOPSio2 32kRWF_DSYNCQD=644 KiB1 GiB filem6id.2xlarge2.007 ms2.245 ms131.1 MB/s$1.04 /10k IOPS·h1

Durable 4 KiB writes, queue depth 1 to 256

Saturation: throughput against P99

one line per disk and machine, a point per queue depth; log scales
gp3 16k · m6id.2xlargeinstance store · m6id.2xlargeio2 16k · m6id.2xlargeio2 32k · m6id.2xlargeroot volume · m6id.2xlarge

Latency histograms

pooled across counted Runs, each to its own peak

(one request each to the data API)

Where local NVMe wins

  • Latency: no network between the machine and the flash, so an idle read or a durable write returns sooner, at the median and at the P99 (P50 and P99 above).
  • The read tail: an idle read's P99 sits closer to its median than on gp3 (P99/P50 above).
  • Durable writes are a tradeoff in the tail: the drive's P99 is still far below gp3's, but its P99/P50 is wider, measured against a much lower median (P99/P50 above).
  • Throughput at depth: the drive takes as many requests in flight as the sweep gives it, with no provisioned IOPS ceiling.
  • Cost per IOPS: the drive comes with the instance, so economics v1 divides only the instance's price by the rate.

Where EBS wins

  • Storage outlives compute: a volume survives stopping or replacing the instance and attaches to another; the instance store is erased when the instance stops or terminates.
  • Snapshots: a volume can be snapshotted to S3 and restored as a new volume.
  • Size and performance are chosen apart from the instance type, and changed while the volume is in use.
  • A volume is replicated inside its Availability Zone; an instance store drive is one machine's.

Local NVMe · m6id.2xlarge