blob: b5bc41cf46b77c4366e86a86ce894bbe00c0bf29 [file] [log] [blame]
koder aka kdanilov4a72f122015-02-09 12:25:54 +02001#!/bin/bash
2set -x
3set -e
4
5type="iozone"
6
7bsizes="1k 4k 64k 256k 1m"
8ops="write randwrite"
9osync="s a"
koder aka kdanilov7acd6bd2015-02-12 14:28:30 -080010num_times=3
koder aka kdanilov4a72f122015-02-09 12:25:54 +020011
12for bsize in $bsizes ; do
13 for op in $ops ; do
14 for sync in $osync ; do
koder aka kdanilov7acd6bd2015-02-12 14:28:30 -080015 for counter in $(seq 1 $num_times) ; do
koder aka kdanilov4a72f122015-02-09 12:25:54 +020016 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 kdanilov7acd6bd2015-02-12 14:28:30 -080033 python run_test.py --runner rally -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="--deployment $1"
koder aka kdanilov4a72f122015-02-09 12:25:54 +020034 done
35 done
36 done
37done
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