Instance type: m5d.4xlarge
Instance store: 300 GB NVMe SSD
EBS: gp2 500 GiB 1500 IOPS
Based on https://gist.github.com/ktheory/3c3616fca42a3716346b
hdparm -t /dev/nvme*
Trial | EBS-SSD (mb/s) | instance-store (mb/s) |
---|---|---|
1 | 13.18 | 819.32 |
2 | 20.09 | 688.76 |
3 | 27.96 | 688.76 |
hdparm -T /dev/nvme*
Trial | EBS-SSD (mb/s) | instance-store (mb/s) |
---|---|---|
1 | 9234.41 | 9219.70 |
2 | 9257.47 | 8940.80 |
3 | 9190.36 | 8929.51 |
dd bs=1M count=1024 if=/dev/zero of=/{tmp,ephemeral}/test
Trial | EBS-SSD (mb/s) | instance-store (mb/s) |
---|---|---|
1 | 306 | 340 |
2 | 307 | 381 |
3 | 306 | 309 |
dd bs=1M count=1024 if=/dev/zero of=/{tmp,ephemeral}/test oflag=direct
Trial | EBS-SSD (mb/s) | instance-store (mb/s) |
---|---|---|
1 | 347 | 349 |
2 | 347 | 349 |
3 | 347 | 349 |
Instance-store is over 30x faster than EBS-SSD for uncached reads.
Instance-store and EBS-SSD are equivalent for cached reads (RAM speed).
Instance-store and EBS-SSD are equivalent for writes (cache?).