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