Disk performance

Requirements

a dedicated user

useradd -m bonnie -s /sbin/nologin

no need to disable caching yet

sysctl vm.drop_caches
#sysctl -w vm.drop_caches=3

Proceed

#dd if=/dev/zero of=tempfile bs=1M count=1024 oflag=direct
bonnie++ -u bonnie -d /home/bonnie/ | tee  >(tail -1 > /var/tmp/bonnie)

name the file-system you are using

-m `uname -n`reiser4

more RAM than DISK SPACE?

tag=reiser4
bonnie++ -m `uname -n`$tag -u bonnie -d lala/ -s 4096 -r 2048 | tee  >(tail -1 >> /var/tmp/bonnie)
cat /var/tmp/bonnie
unset tag

tag=ext4
bonnie++ -m `uname -n`$tag -u bonnie -d lili/ -s 4096 -r 2048 | tee  >(tail -1 >> /var/tmp/bonnie2)
cat /var/tmp/bonnie2
unset tag

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

watch df -h

Better output

bon_csv2txt < /var/tmp/bonnie
bon_csv2html < /var/tmp/bonnie > lala.html && links -dump lala.html && rm -f lala.html
bon_csv2html < /var/tmp/bonnie2 > lili.html && links -dump lili.html && rm -f lili.html

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/


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml