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| Colour | Setup | Variant | Machine | P50 | P99 | P99/P50 | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Local NVMe | instance storeO_DIRECTQD=18 KiB32 GiB span | m6id.2xlarge | 87.55 µs | 100.9 µs | ×1.2 | $0.417 /10k IOPS·h | 1 | |
| EBS gp3, 3k IOPS | root gp3 3kO_DIRECTQD=18 KiB1 GiB span | m6id.2xlarge | 292.9 µs | 411.7 µs | ×1.4 | $1.4 /10k IOPS·h | 1 | |
| EBS gp3, 16k IOPS | gp3 16kO_DIRECTQD=18 KiB1 GiB span | m6id.2xlarge | 577.5 µs | 848.0 µs | ×1.5 | $3.54 /10k IOPS·h | 1 | |
| EBS io2, 16k IOPS | io2 16kO_DIRECTQD=18 KiB1 GiB span | m6id.2xlarge | 309.2 µs | 452.6 µs | ×1.5 | $5.86 /10k IOPS·h | 1 | |
| EBS io2, 32k IOPS | io2 32kO_DIRECTQD=18 KiB1 GiB span | m6id.2xlarge | 309.2 µs | 452.6 µs | ×1.5 | $10.3 /10k IOPS·h | 1 |
Tail: P50 → P99.9
per operation, log scaleLatency 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| Colour | Setup | Variant | Machine | P50 | P99 | Rate | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Local NVMe | instance storeO_DIRECTQD=644 KiB32 GiB span | m6id.2xlarge | 477.2 µs | 522.2 µs | 549.5 MB/s | $0.0354 /10k IOPS·h | 1 | |
| EBS gp3, 3k IOPS | root gp3 3kO_DIRECTQD=644 KiB1 GiB span | m6id.2xlarge | 21.10 ms | 23.46 ms | 12.28 MB/s | $1.59 /10k IOPS·h | 1 | |
| EBS gp3, 16k IOPS | gp3 16kO_DIRECTQD=644 KiB1 GiB span | m6id.2xlarge | 3.949 ms | 4.489 ms | 65.54 MB/s | $0.384 /10k IOPS·h | 1 | |
| EBS io2, 16k IOPS | io2 16kO_DIRECTQD=644 KiB1 GiB span | m6id.2xlarge | 3.981 ms | 4.424 ms | 65.54 MB/s | $1.19 /10k IOPS·h | 1 | |
| EBS io2, 32k IOPS | io2 32kO_DIRECTQD=644 KiB1 GiB span | m6id.2xlarge | 2.007 ms | 2.277 ms | 131.1 MB/s | $1.04 /10k IOPS·h | 1 |
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 scalesLatency 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| Colour | Setup | Variant | Machine | P50 | P99 | P99/P50 | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Local NVMe | instance storefdatasyncQD=18 KiB256 MiB file | m6id.2xlarge | 32.64 µs | 39.18 µs | ×1.2 | $0.155 /10k IOPS·h | 1 | |
| EBS gp3, 3k IOPS | root gp3 3kfdatasyncQD=18 KiB256 MiB file | m6id.2xlarge | 913.4 µs | 995.3 µs | ×1.1 | $4.36 /10k IOPS·h | 1 | |
| EBS gp3, 16k IOPS | gp3 16kfdatasyncQD=18 KiB256 MiB file | m6id.2xlarge | 913.4 µs | 987.1 µs | ×1.1 | $5.61 /10k IOPS·h | 1 | |
| EBS io2, 16k IOPS | io2 16kfdatasyncQD=18 KiB256 MiB file | m6id.2xlarge | 261.1 µs | 432.1 µs | ×1.7 | $4.99 /10k IOPS·h | 1 | |
| EBS io2, 32k IOPS | io2 32kfdatasyncQD=18 KiB256 MiB file | m6id.2xlarge | 257.0 µs | 428.0 µs | ×1.7 | $8.58 /10k IOPS·h | 1 |
Tail: P50 → P99.9
per operation, log scaleLatency 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| Colour | Setup | Variant | Machine | P50 | P99 | Rate | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Local NVMe | instance storeRWF_DSYNCQD=644 KiB1 GiB file | m6id.2xlarge | 946.2 µs | 970.8 µs | 278.3 MB/s | $0.0699 /10k IOPS·h | 1 | |
| EBS gp3, 3k IOPS | root gp3 3kRWF_DSYNCQD=644 KiB256 MiB file | m6id.2xlarge | 21.36 ms | 25.82 ms | 12.29 MB/s | $1.59 /10k IOPS·h | 1 | |
| EBS gp3, 16k IOPS | gp3 16kRWF_DSYNCQD=644 KiB1 GiB file | m6id.2xlarge | 3.981 ms | 4.882 ms | 65.54 MB/s | $0.384 /10k IOPS·h | 1 | |
| EBS io2, 16k IOPS | io2 16kRWF_DSYNCQD=644 KiB1 GiB file | m6id.2xlarge | 3.949 ms | 4.489 ms | 65.54 MB/s | $1.19 /10k IOPS·h | 1 | |
| EBS io2, 32k IOPS | io2 32kRWF_DSYNCQD=644 KiB1 GiB file | m6id.2xlarge | 2.007 ms | 2.245 ms | 131.1 MB/s | $1.04 /10k IOPS·h | 1 |
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 scalesLatency 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.
Code & config
Benchmark docsSeries JSONLocal NVMe · m6id.2xlarge
57__attribute__((noinline))58static uint64_t read_next(void *arg) {59 ctx_t *c = (ctx_t *)arg;60 uint64_t offset = (uint64_t)c->order[c->next] * c->request;61 ssize_t n = pread(c->fd, c->buf, c->request, (off_t)offset);// …66 c->sum += c->buf[0];67 c->reads++;68 if (++c->next == c->blocks) {69 c->next = 0;70 c->passes++;71 }72 return c->sum;73}// …137 lm_hist_measure(read_next, &c, WARMUP_READS, QUICK_SAMPLES, &g_latency);
Configuration
- benchmarkdisk_read_latency
- buildstatic
- instancem6id.2xlarge
- regionus-east-2
- azuse2-az3
- params.dir/mnt/lm/instance-store
- params.diskinstance_store
- params.request_bytes8192
- params.span_bytes34359738368