Benchmarking Disk Performance


for the good old v1 sources:

for v1.90+:

Ready to go

no need for a dedicated user nor to disable caching yet

#useradd -m bonnie -s /sbin/nologin
#sysctl -w vm.drop_caches=3
sysctl vm.drop_caches #should be 0

flags="-u root -x 5 -r 1024"

#FILES 4GiB instead of 2GiB
#-s 4096

bonnie++ $flags -m ext4 -d / | tee >(tail -1 >> /var/tmp/bonnie)

in the meanwhile in another window, check that you don’t run out of space on that mount point

watch df -h

and clean-up

rm -f /Bonnie.*

see on steroids for more tests

finally deliver the stats on some web server

#bon_csv2txt < bonnie > bonnie.txt
bon_csv2html < bonnie > bonnie.html

and see Plotting Bonnie for cute and 3 dimentional graphs


Bonnie++ 1.03e

Bonnie introduction

Benchmark disk IO with DD and Bonnie++

Simple Bonnie++ Example

Decoding Bonnie++

Using Bonnie++ for filesystem performance benchmarking

Active Benchmarking: Bonnie++

Redirect only the last line of STDOUT to a file

Disk Speed Test (Read/Write): HDD, SSD Performance in Linux

Linux server performance: Is disk I/O slowing your application?

got competition!


#dd if=/dev/zero of=tempfile bs=1M count=1024 oflag=direct