LedgerMath
← All benchmarksHow disk_write works

Disk write

disk_write · compared across machine types · 19 Series on 8 machine types · AWS us-east-2

CPU
Disk
Sync
Order
CompareMachineVariantP50P99RateUnit costRuns
c8a.2xlargeroot volumenone683.8 ns—11.98 GB/s—89
c8g.2xlargeroot volumenone870.8 ns—9.407 GB/s—4
c8i.2xlargeroot volumenone1.241 µs—6.601 GB/s—89
c6i.8xlargeroot volumenone1.474 µs—5.559 GB/s—89
i4i.2xlargeroot volumenone1.482 µs—5.528 GB/s—89
m6id.2xlargeroot volumenone1.497 µs—5.473 GB/s—1
i4g.2xlargeroot volumenone1.670 µs—4.905 GB/s—4
m5.largeroot volumenone2.615 µs—3.133 GB/s—91
i4i.2xlargeinstance storefdatasync30.08 µs—272.3 MB/s$0.209 /10k IOPS·h89
m6id.2xlargeinstance storefdatasync31.68 µs—258.6 MB/s$0.15 /10k IOPS·h1
i4g.2xlargeinstance storefdatasync31.95 µs—256.4 MB/s$0.197 /10k IOPS·h4
c8g.2xlargeroot volumefdatasync898.4 µs—9.118 MB/s$2.86 /10k IOPS·h4
c8a.2xlargeroot volumefdatasync900.1 µs—9.101 MB/s$3.88 /10k IOPS·h89
i4g.2xlargeroot volumefdatasync908.3 µs—9.019 MB/s$5.61 /10k IOPS·h4
m5.largeroot volumefdatasync910.3 µs—8.999 MB/s$0.882 /10k IOPS·h91
c6i.8xlargeroot volumefdatasync912.0 µs—8.982 MB/s$12.4 /10k IOPS·h89
i4i.2xlargeroot volumefdatasync912.2 µs—8.980 MB/s$6.27 /10k IOPS·h89
m6id.2xlargeroot volumefdatasync913.6 µs—8.967 MB/s$4.34 /10k IOPS·h1
c8i.2xlargeroot volumefdatasync980.5 µs—8.355 MB/s$3.73 /10k IOPS·h89
Compared:m5.large · root volume · fdatasyncc8g.2xlarge · root volume · nonem6id.2xlarge · instance store · fdatasync

Run-to-run spread

time per write across counted Runs

Over time

newest counted Runs, time per write

(one request each to the data API)

What this measures

What a buffered pwrite of request_bytes costs, on one thread, one write at a time: followed by fdatasync (the time until the device has the data) or by nothing (the buffered write alone). How the kernel and the device make the data durable is theirs, not the binary's; where the binary could read them, each Run observes the disk's write cache and FUA support.

What it does not measure

  • With sync none, the measured loop calls pwrite alone and asks for nothing to be made durable: the figure is the time of a buffered write, whatever the kernel made that call wait for.
  • The binary only calls fdatasync; how the kernel and the device make the write durable is theirs.
  • The scratch file is written in full before measuring, so the measured writes overwrite blocks that are already allocated. Writes that allocate blocks are not measured.

The whole method, on its page →

m6id.2xlarge · instance store · fdatasync

No excerpt for these settings: read the benchmark's source on GitHub ↗

Configuration

  • benchmarkdisk_write
  • buildstatic
  • instancem6id.2xlarge
  • regionus-east-2
  • azuse2-az3
  • params.dir/mnt/lm/instance-store
  • params.diskinstance_store
  • params.file_bytes1073741824
  • params.request_bytes8192
  • params.syncfdatasync

Beat this hot path on GitHub ↗