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="write randwrite" |
| 9 | osync="s a" |
koder aka kdanilov | 7acd6bd | 2015-02-12 14:28:30 -0800 | [diff] [blame] | 10 | num_times=3 |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 11 | |
| 12 | for bsize in $bsizes ; do |
| 13 | for op in $ops ; do |
| 14 | for sync in $osync ; do |
koder aka kdanilov | 7acd6bd | 2015-02-12 14:28:30 -0800 | [diff] [blame] | 15 | for counter in $(seq 1 $num_times) ; do |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 16 | if [[ "$ops" == "write" && "$osync" == "s" ]] ; then |
| 17 | continue |
| 18 | fi |
| 19 | |
| 20 | if [[ "$sync" == "s" ]] ; then |
| 21 | ssync="-s" |
| 22 | factor="x500" |
| 23 | else |
| 24 | if [[ "$bsize" == "1k" || "$bsize" == "4k" ]] ; then |
| 25 | continue |
| 26 | fi |
| 27 | |
| 28 | ssync= |
| 29 | factor="r2" |
| 30 | fi |
| 31 | |
| 32 | io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync" |
koder aka kdanilov | 7acd6bd | 2015-02-12 14:28:30 -0800 | [diff] [blame] | 33 | python run_test.py --runner rally -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="--deployment $1" |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 34 | done |
| 35 | done |
| 36 | done |
| 37 | done |
| 38 | |
| 39 | # bsizes="4k 64k 256k 1m" |
| 40 | # ops="randread read" |
| 41 | |
| 42 | # for bsize in $bsizes ; do |
| 43 | # for op in $ops ; do |
| 44 | # for xxx in $three_times ; do |
| 45 | # io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize r2" |
| 46 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 47 | # done |
| 48 | # done |
| 49 | # done |
| 50 | |
| 51 | # bsizes="1k 4k" |
| 52 | # ops="randwrite write" |
| 53 | # three_times="1 2 3" |
| 54 | |
| 55 | # for bsize in $bsizes ; do |
| 56 | # for op in $ops ; do |
| 57 | # for xxx in $three_times ; do |
| 58 | # factor="r2" |
| 59 | # io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor" |
| 60 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 61 | # done |
| 62 | # done |
| 63 | # done |
| 64 | |
| 65 | # ops="randread read" |
| 66 | |
| 67 | # for op in $ops ; do |
| 68 | # for xxx in $three_times ; do |
| 69 | # io_opts="--type $type -a $op --iodepth 16 --blocksize 1k --iosize r2" |
| 70 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 71 | # done |
| 72 | # done |