|
## BENCHMARK |
|
|
|
# /dev/xvda1 = EBS-SSD |
|
# /dev/xvdb = instance-store SSD |
|
|
|
ubuntu@ip-10-0-2-6:~$ df -h |
|
Filesystem Size Used Avail Use% Mounted on |
|
/dev/xvda1 20G 777M 18G 5% / |
|
none 4.0K 0 4.0K 0% /sys/fs/cgroup |
|
udev 15G 8.0K 15G 1% /dev |
|
tmpfs 3.0G 332K 3.0G 1% /run |
|
none 5.0M 0 5.0M 0% /run/lock |
|
none 15G 0 15G 0% /run/shm |
|
none 100M 0 100M 0% /run/user |
|
/dev/xvdb 74G 52M 70G 1% /mnt |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing buffered disk reads: 366 MB in 3.01 seconds = 121.66 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing buffered disk reads: 406 MB in 3.01 seconds = 134.77 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing buffered disk reads: 406 MB in 3.01 seconds = 134.74 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing cached reads: 20350 MB in 1.99 seconds = 10237.13 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing cached reads: 20306 MB in 1.99 seconds = 10214.82 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvda1 |
|
|
|
/dev/xvda1: |
|
Timing cached reads: 20324 MB in 1.99 seconds = 10223.70 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing buffered disk reads: 1920 MB in 3.00 seconds = 639.98 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing buffered disk reads: 2230 MB in 3.00 seconds = 742.96 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -t /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing buffered disk reads: 2212 MB in 3.00 seconds = 736.89 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing cached reads: 20326 MB in 1.99 seconds = 10224.69 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing cached reads: 20538 MB in 1.99 seconds = 10331.94 MB/sec |
|
ubuntu@ip-10-0-2-6:~$ sudo hdparm -T /dev/xvdb |
|
|
|
/dev/xvdb: |
|
Timing cached reads: 20350 MB in 1.99 seconds = 10237.58 MB/sec |
There is more in it than just performance. Instance-store SSDs are ephemeral drives, its contents go with the box whilst EBS volumes can be detached and remounted on a new box. They can be used for swap or for caching the EBS volume using https://github.com/stec-inc/EnhanceIO for instance.
Multiple EBS volumes can also be stripe RAIDed together to increase throughput and load balance IO load.
I got very good results w
Also, the tests above show only sequencial access metrics. random I/O and different block sizes can make a huge diference.
AWS uses 128k as the block size for IO accounting.