koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 1 | #!/bin/bash |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 2 | set -e |
| 3 | |
| 4 | type="iozone" |
| 5 | |
koder aka kdanilov | 3f35626 | 2015-02-13 08:06:14 -0800 | [diff] [blame^] | 6 | bsizes="1k" # 4k 64k 256k 1m |
| 7 | ops="write" # randwrite" |
| 8 | osync="s" # a |
| 9 | num_times="1" |
| 10 | concurrences="1 2 4 8 16 32 64 128" |
| 11 | aff_group="0077d59c-bf5b-4326-8940-027e77d655ee" |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 12 | |
koder aka kdanilov | 3f35626 | 2015-02-13 08:06:14 -0800 | [diff] [blame^] | 13 | for concurrence in $concurrences; do |
| 14 | for bsize in $bsizes ; do |
| 15 | for op in $ops ; do |
| 16 | for sync in $osync ; do |
| 17 | for counter in $(seq 1 $num_times) ; do |
| 18 | # if [[ "$ops" == "write" && "$osync" == "s" ]] ; then |
| 19 | # continue |
| 20 | # fi |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 21 | |
koder aka kdanilov | 3f35626 | 2015-02-13 08:06:14 -0800 | [diff] [blame^] | 22 | if [[ "$sync" == "s" ]] ; then |
| 23 | ssync="-s" |
| 24 | factor="x500" |
| 25 | else |
| 26 | if [[ "$bsize" == "1k" || "$bsize" == "4k" ]] ; then |
| 27 | continue |
| 28 | fi |
| 29 | |
| 30 | ssync= |
| 31 | factor="r2" |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 32 | fi |
| 33 | |
koder aka kdanilov | 3f35626 | 2015-02-13 08:06:14 -0800 | [diff] [blame^] | 34 | extra_opts="user=ubuntu,keypair_name=ceph,img_name=ubuntu,flavor_name=ceph.512" |
| 35 | extra_opts="${extra_opts},network_zone_name=net04,flt_ip_pool=net04_ext,key_file=ceph.pem" |
| 36 | extra_opts="${extra_opts},aff_group=${aff_group}" |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 37 | |
koder aka kdanilov | 3f35626 | 2015-02-13 08:06:14 -0800 | [diff] [blame^] | 38 | io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync --concurrency $concurrence" |
| 39 | |
| 40 | echo $io_opts |
| 41 | # python run_test.py --runner ssh -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="$extra_opts" |
| 42 | |
| 43 | # io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync" |
| 44 | # python run_test.py --runner rally -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="--deployment $1" |
| 45 | done |
koder aka kdanilov | 4a72f12 | 2015-02-09 12:25:54 +0200 | [diff] [blame] | 46 | done |
| 47 | done |
| 48 | done |
| 49 | done |
| 50 | |
| 51 | # bsizes="4k 64k 256k 1m" |
| 52 | # ops="randread read" |
| 53 | |
| 54 | # for bsize in $bsizes ; do |
| 55 | # for op in $ops ; do |
| 56 | # for xxx in $three_times ; do |
| 57 | # io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize r2" |
| 58 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 59 | # done |
| 60 | # done |
| 61 | # done |
| 62 | |
| 63 | # bsizes="1k 4k" |
| 64 | # ops="randwrite write" |
| 65 | # three_times="1 2 3" |
| 66 | |
| 67 | # for bsize in $bsizes ; do |
| 68 | # for op in $ops ; do |
| 69 | # for xxx in $three_times ; do |
| 70 | # factor="r2" |
| 71 | # io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor" |
| 72 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 73 | # done |
| 74 | # done |
| 75 | # done |
| 76 | |
| 77 | # ops="randread read" |
| 78 | |
| 79 | # for op in $ops ; do |
| 80 | # for xxx in $three_times ; do |
| 81 | # io_opts="--type $type -a $op --iodepth 16 --blocksize 1k --iosize r2" |
| 82 | # python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1" |
| 83 | # done |
| 84 | # done |