Aug 7, 2010

btrfs raid0 benchmarks

Playing around with btrfs-tools and raid0 i wanted to test myself the results on just SATA drives and not the high-end hhd.
So since I use debian unstable it was easy to get support from btrfs
Latest kernel in debian unstable 2.6.32 supports btrfs so all I needed was the btrfs-tools
# sudo aptitude install btrfs-tools
This should do the trick although n order to be sure I downloaded the latest version from git:
https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories
There are detail info as well for how to compile the tools.
After that following the info from the btrfs wiki I could easily make the file system with multiple devices
# mkfs.btrfs -m raid0 -d raid0 /dev/sdc1 /dev/sdd2 /dev/sde2
 The above command tells the mkfs to make a btrfs filesystem with raid0 on data (-d parameter) and metadata as well (raid0).

Now the mount can be done on any of the devices
I did it on /dev/sdc1 and with compress mount parameter on
# sudo mount /dev/sdc1 -o compress /mnt
Fow the benchmark I used the iozone program
# sudo aptitude install iozone
using only test 0 and 1 which are tests for read and write. The exact command was:
# iozone -s 8g -r 1024 -i 0 -i 1
 The results from the benchmark is as follows:
KB  reclen   write rewrite     read   reread
8388608    1024  135151  139050   233461   235929
That's around 135Mb/sec write speed and 233Mb/sec read speed
Probably topped up from my CPU which in benchmarks hit 100% on both cores.
I suppose if I remove the compress option it would be OK but will lose some speed

No comments:

Post a Comment