blob: a5c8aaf7e1d4d8813f941b83656f718417b0fbfa [file] [log] [blame]
koder aka kdanilov4a72f122015-02-09 12:25:54 +02001#!/bin/bash
koder aka kdanilov4a72f122015-02-09 12:25:54 +02002set -e
3
4type="iozone"
5
koder aka kdanilov3f356262015-02-13 08:06:14 -08006bsizes="1k" # 4k 64k 256k 1m
7ops="write" # randwrite"
8osync="s" # a
9num_times="1"
10concurrences="1 2 4 8 16 32 64 128"
11aff_group="0077d59c-bf5b-4326-8940-027e77d655ee"
koder aka kdanilov4a72f122015-02-09 12:25:54 +020012
koder aka kdanilov3f356262015-02-13 08:06:14 -080013for 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 kdanilov4a72f122015-02-09 12:25:54 +020021
koder aka kdanilov3f356262015-02-13 08:06:14 -080022 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 kdanilov4a72f122015-02-09 12:25:54 +020032 fi
33
koder aka kdanilov3f356262015-02-13 08:06:14 -080034 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 kdanilov4a72f122015-02-09 12:25:54 +020037
koder aka kdanilov3f356262015-02-13 08:06:14 -080038 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 kdanilov4a72f122015-02-09 12:25:54 +020046 done
47 done
48 done
49done
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