Linux Software RAID Benchmarking Script

Wed 29 September 2010 Category: Storage

Just a small post.

To benchmark your Linux software RAID array as setup with MDADM, please use my new benchmark script. I used this script to create these results.

You may need to configure some values within the header of this file to make it fit your enviroment.

 DEVICES="/dev/sd[a-f]"
 NO_OF_DEVICES=6
 ARRAY=/dev/md5
 CHUNKS="4 8 16 32 64 128 256 512 1024"
 MOUNT=/storage
 LOG=/var/log/raid-test.log
 LOGDEBUG=/var/log/raid-test-debug.log
 LEVEL="0 5 6 10"
 TESTFILE=$MOUNT/test.bin
 TESTFILESIZE=10000 (IN MB, thus this is 10 GB)
 TRIES=5 (how many times to run a benchmark.)

By default, the script wil format the array using XFS, feel free to format it with another filesystem such as EXT4 or EXT3 or whatever you want to test.

Comments