koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | type="iozone" |
| 6 | |
| 7 | bsizes="1k 4k 64k 256k 1m" |
| 8 | ops="randwrite write" |
| 9 | osync="s a" |
| 10 | three_times="1 2 3" |
| 11 | |
| 12 | for bsize in $bsizes ; do |
| 13 | for op in $ops ; do |
| 14 | for sync in $osync ; do |
| 15 | for xxx in $three_times ; do |
| 16 | if [[ "$sync" == "s" ]] ; then |
| 17 | ssync="-s" |
| 18 | factor="x500" |
| 19 | else |
| 20 | if [[ "$bsize" == "1k" || "$bsize" == "4k" ]] ; then |
| 21 | continue |
| 22 | fi |
| 23 | |
| 24 | ssync= |
| 25 | factor="r2" |
| 26 | fi |
| 27 | |
| 28 | python run_rally_test.py -l -o "--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync" -t io-scenario $type --rally-extra-opts="--deployment perf-2" |
| 29 | done |
| 30 | done |
| 31 | done |
| 32 | done |
| 33 | |
| 34 | bsizes="4k 64k 256k 1m" |
| 35 | ops="randread read" |
| 36 | |
| 37 | for bsize in $bsizes ; do |
| 38 | for op in $ops ; do |
| 39 | for xxx in $three_times ; do |
| 40 | python run_rally_test.py -l -o "--type $type -a $op --iodepth 16 --blocksize $bsize --iosize r2" -t io-scenario $type --rally-extra-opts="--deployment perf-2" |
| 41 | done |
| 42 | done |
| 43 | done |