benchmark bonnie

nadyawilliams edited this page Jun 7, 2014 · 1 revision

bonnie++

Table of Contents

Initial steps

Create directory structure in the shared applications mount point:

 # cd /share/apps
 # mkdir benchmarks
 # mkdir benchmarks/bonnie++
 # cd benchmarks/bonnie++
 # mkdir bin src
 # cd src

Get the source:

 # wget http://www.coker.com.au/bonnie++/bonnie++-1.03a.tgz
 # tar -zxvf bonnie++-1.03a.tgz
 # cd bonnie++-1.03a

Build the application:

 # ./configure --prefix=/share/apps/benchmarks/bonnie++
 # make ; make install

Running bonnie++

Now we've built bonnie++. There are many ways to run it, I'll show how to use it with an interactive PBS session and also a PBS script.

First, running a single instance in an interactive session:

Prepare an output directory to write data at the location where you want to test performance. I'll assume you have all directories on the master node, and want to write output files in the home directory.

 $ su - user
 $ mkdir output_files

Start the Interactive session:



The file size recommended is double RAM for good results.

 $ /share/apps/benchmarks/bonnie++/sbin/bonnie++ -s 4096 -n 0 -f -d

~/output_files

Using a PBS Script:

 #PBS -N BONNIE
                                                                                                  
 #PBS -e BONNIE.err
                                                                                                  
 #PBS -o BONNIE.out
                                                                                                  
 #PBS -m aeb
                                                                                                  
 #PBS -M user
                                                                                                  
 #PBS -l nodes=1:ppn=2
                                                                                                   
 #PBS -l walltime=30:00:00
                                                                                                  
 PBS_O_WORKDIR='/home/user/output_files'
 export PBS_O_WORKDIR
                                                                                                  
 ### ---------------------------------------
 ### BEGINNING OF EXECUTION
 ### ---------------------------------------
                                                                                                  
 echo The master node of this job is `hostname`
 echo The working directory is `echo $PBS_O_WORKDIR`
 echo This job runs on the following nodes:
 echo `cat $PBS_NODEFILE`
                                                                                                  
 ### end of information preamble
                                                                                                  
 cd $PBS_O_WORKDIR
 cmd="/share/apps/benchmarks/bonnie++/sbin/bonnie++ -s 4096 -n 0 -f -d

~/output_files"

 echo "running bonnie++ with: $cmd in directory "`pwd`
 $cmd >& $PBS_O_WORKDIR/log.bonnie.$PBS_JOBID

Viewing output

Category:Benchmarks