Bottom-Up Database Benchmarking
Bottom-Up Database Benchmarking
Greg Smith
2ndQuadrant US
04/13/2011
I Many useful tests will only run when the server isn’t being
used yet
I Software stacks are complicated
I Spending money on upgrades only helps if you upgrade the
right thing usefully
I Vendors lie
I Memory
I CPU
I Disk
I Database server
I Application
http://www.advancedclustering.com/company-blog/
http://it.anandtech.com/IT/showdoc.aspx?i=3769&p=4
I Slow memory
I Power management throttling
I Linux: /proc/cpuinfo shows 1000MHz suggests you need to
adjust the CPUFreq Governor to “performance”
./bonnie++
bon csv2html
http://www.coker.com.au/bonnie++/zcav/results.html
unset autoscale x
set autoscale xmax
unset autoscale y
set autoscale ymax
set xlabel "Position GB"
set ylabel "MB/s"
set key right bottom
set terminal png
set output "zcav.png"
plot "raid0" title "7200RPM RAID 0 3 Spindles",
"single" title "7200RPM Single Drive"
THREADS=1
GB=10
MODE=rndrd
OPTIONS="--test=fileio --num-threads=$THREADS
--file-block-size=8K --file-test-mode=$MODE
--file-num=$GB --file-total-size=${GB}G
--file-fsync-freq=0 --file-fsync-end=no"
sysbench prepare $OPTIONS
sysbench run --max-time=60 $OPTIONS
sysbench cleanup $OPTIONS
http://www.wmarow.com/strcalc/
http://www.dbasupport.com/oracle/ora10g/disk_IO_02.shtml
http://storageadvisors.adaptec.com/2007/03/20/sata-iops-measurement/
I Trust no one
I Don’t start on application benchmarks until you’ve proven
basic performance
I Don’t spend too long on basic performance if you can switch
to application benchmarks
I Vendors alternate among lying, misunderstanding what you
want, and trying to make you feel dumb
I Use simple, standard tools whenever possible to minimize
vendor disputes
I Be prepared to translate to your vendor’s language and
subvert their agenda
I Never spend real money on hardware unless you can return it
if it sucks