Difference between revisions of "Benchmarking: bonnie++"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Install == <syntaxhighlight> 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 ...")
 
 
Line 10: Line 10:
 
make install
 
make install
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== 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.
  
 
<syntaxhighlight>
 
<syntaxhighlight>
 
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
 
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
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 14:30, 25 January 2013

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