Benchmarking: bonnie++

From Define Wiki
Revision as of 14:30, 25 January 2013 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 install

Run 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