Along with maximal possible fsync/sec it is interesting how different software RAID modes affects throughput on FusionIO cards.
In short conclusion, RAID10 modes really disappoint me, the detailed numbers to follow.
To get numbers I run
test with 16KB page size, random read and writes, 1 and 16 threads, O_DIRECT mode.
FusionIO cards are the same as in the previous experiment, as I am running XFS with nobarrier mount options.
OS is CentOS 5.3 with 2.6.18-128.1.10.el5 kernel.
For RAID modes I use:
Latest mode you can get creating RAID as:
mdadm --create --verbose /dev/md0 --level=10 --layout=n2 --raid-devices=4 --chunk=64 /dev/fioa /dev/fiob /dev/fioc /dev/fiod
In this case for all modes use 64KB chunk size ( different chunk sizes also interesting question).
As expected RAID1 over 2 disks shows hit on write throughput comparing to single disk,
but RAID10 modes over 4 disks surprises me, showing almost 2x drops.
Only in RAID10n2 random reads skyrocket, while writes are equal to single disk.
This makes me asking if RAID1 mode is really usable, and how it performs
on regular hard drives or SSD disks.
The performance drop in RAID settings is unexpected. I am working with Fusion-io engineers to figure out the issue.
The next experiment I am going to look into is different page sizes.
Raw results (in requests / seconds, more is better):
|raid0 2 disks|
|raid1 2 disks|
|raid1 over raid0 4 disks|
|raid0 over raid1 4 disks|
Script for reference:
for size in 50G; do
for mode in rndrd rndwr; do
#for mode in rndwr; do
#for blksize in 512 4096 8192 16384 32768 65536 ; do
for blksize in 16384 ; do
sysbench --test=fileio --file-num=64 --file-total-size=$size prepare
#for threads in 1 4 8; do
for threads in 1 16 ; do
echo "====== testing $blksize in $threads threads"
echo PARAMS $size $mode $threads $blksize > sysbench-size-$size-mode-$mode-threads-$threads-blksz-$blksize
for i in 1 2 3 ; do
sysbench --test=fileio --file-total-size=$size --file-test-mode=$mode\
--max-time=180 --max-requests=100000000 --num-threads=$threads --init-rng=on \
--file-num=64 --file-extra-flags=direct --file-fsync-freq=0 --file-block-size=$blksize run \
| tee -a sysbench-size-$size-mode-$mode-threads-$threads-blksz-$blksize 2>&1
sysbench --test=fileio --file-total-size=$size cleanup
Percona’s widely read Percona Data Performance blog highlights our expertise in enterprise-class software, support, consulting and managed services solutions for both MySQL® and MongoDB® across traditional and cloud-based platforms. The decades of experience represented by our consultants is found daily in numerous and relevant blog posts.
Besides specific database help, the blog also provides notices on upcoming events and webinars.
Want to get weekly updates listing the latest blog posts? Subscribe to our blog now! Submit your email address below.