Benchmarking: bonnie++
Jump to navigation
Jump to search
Install
cd /tmp
wget http://www.coker.com.au/bonnie++/bonnie++-1.03e.tgz
gzip -d bonnie++-1.03e.tgz
tar xvf bonnie++-1.03e.tar
cd bonnie++-1.03e
./configure
make
make installRun tests
Here is the example command for running Bonnie++ as root. In this case the command will automatically determine the amount of RAM your server has and will set the file size to twice as much. The filesystem being tested is /tmp.
bonnie++ -n 0 -u 0 -r `free -m | grep 'Mem:' | awk '{print $2}'` -s $(echo "scale=0;`free -m | grep 'Mem:' | awk '{print $2}'`*2" | bc -l) -f -b -d /tmp