Benchmarking Disk Performance

Warning

for the good old v1 sources: https://www.coker.com.au/bonnie++/

for v1.90+: https://doc.coker.com.au/projects/bonnie/

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

#RAM 1GiB
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

Resources

Bonnie++ 1.03e https://www.coker.com.au/bonnie++/

Bonnie introduction https://www.textuality.com/bonnie/advice.html

Benchmark disk IO with DD and Bonnie++ https://www.jamescoyle.net/how-to/599-benchmark-disk-io-with-dd-and-bonnie

Simple Bonnie++ Example https://www.jamescoyle.net/how-to/913-simple-bonnie-example

Decoding Bonnie++ https://blogs.oracle.com/roch/decoding-bonnie

Using Bonnie++ for filesystem performance benchmarking https://www.linux.com/news/using-bonnie-filesystem-performance-benchmarking/

Active Benchmarking: Bonnie++ http://www.brendangregg.com/ActiveBenchmarking/bonnie++.html

Redirect only the last line of STDOUT to a file https://stackoverflow.com/questions/4821731/redirect-only-the-last-line-of-stdout-to-a-file

Disk Speed Test (Read/Write): HDD, SSD Performance in Linux https://www.shellhacks.com/disk-speed-test-read-write-hdd-ssd-perfomance-linux/

Linux server performance: Is disk I/O slowing your application? https://haydenjames.io/linux-server-performance-disk-io-slowing-application/

https://www.textuality.com/bonnie/advice.html

http://sisco.laf.free.fr/codes/bonnie-raid-hp.html

http://www.brendangregg.com/ActiveBenchmarking/bonnie++.html

https://gist.githubusercontent.com/npinto/1182653/raw/a0dfad6a811f1cbbe69da24dddce56c4a04c66a4/plot_bonnie.sh

https://etbe.coker.com.au/category/benchmark/ https://etbe.coker.com.au/2012/01/05/drbd-benchmarking/

got competition!

http://www.csamuel.org/articles/emerging-filesystems-200709/

and

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

HOME | GUIDES | BENCHMARKS | html