blob: 11c90eeec4093c25cae8048dec06991169d85c88 [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 kdanilove21d7472015-02-14 19:02:04 -08006bsizes="1k 4k 64k 256k 1m"
7ops="randwrite"
koder aka kdanilov3f356262015-02-13 08:06:14 -08008osync="s" # a
koder aka kdanilove21d7472015-02-14 19:02:04 -08009num_times="3"
10concurrences="32"
koder aka kdanilov4a72f122015-02-09 12:25:54 +020011
koder aka kdanilov3f356262015-02-13 08:06:14 -080012for 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 kdanilov4a72f122015-02-09 12:25:54 +020020
koder aka kdanilov3f356262015-02-13 08:06:14 -080021 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 kdanilov4a72f122015-02-09 12:25:54 +020031 fi
32
koder aka kdanilov4a72f122015-02-09 12:25:54 +020033
koder aka kdanilov3f356262015-02-13 08:06:14 -080034 io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync --concurrency $concurrence"
35
koder aka kdanilove21d7472015-02-14 19:02:04 -080036 # 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 kdanilov3f356262015-02-13 08:06:14 -080041 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 kdanilov4a72f122015-02-09 12:25:54 +020047 done
48 done
49 done
50done
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