IO Test for EBS Volumes: RAID10 and RAID0′s performance
RAID10 is the most widely used RAID in the database area, and RAID0 is the one recommended by Amazon. I am going to test performance of them in the same way I tested RAID5.
Environment:
EC2 type: c1.xlarge
EBS num: 10
OS: Redhat 6.2
FS: Ext4
Tool: sysbench-0.4.12
Parameter: block size = 16K; thread number = 16
Here is result:
| seq-write | seq-rewrite | seq-read | rand-write | rand-read | |
|---|---|---|---|---|---|
| RAID0 | 13.697Mb/s | 13.661Mb/s | 81.380Mb/s | 70.939Mb/s | 24.906Mb/s |
| RAID10 | 11.235Mb/s | 10.709Mb/s | 88.707Mb/s | 42.887Mb/s | 24.462Mb/s |
So far as we tested, RAID0 is superior to RAID10 in random write. But considering the durability RAID10 provided, it is still a good choice for database. Even for application instance, RAID10 is still suitable because there are a lot of appending logs.
Tags: AWS, EBS, EC2, MySQL Performance, RAID0, RAID10, SysBench