blob: b5bc41cf46b77c4366e86a86ce894bbe00c0bf29 [file] [log] [blame]
#!/bin/bash
set -x
set -e
type="iozone"
bsizes="1k 4k 64k 256k 1m"
ops="write randwrite"
osync="s a"
num_times=3
for bsize in $bsizes ; do
for op in $ops ; do
for sync in $osync ; do
for counter in $(seq 1 $num_times) ; do
if [[ "$ops" == "write" && "$osync" == "s" ]] ; then
continue
fi
if [[ "$sync" == "s" ]] ; then
ssync="-s"
factor="x500"
else
if [[ "$bsize" == "1k" || "$bsize" == "4k" ]] ; then
continue
fi
ssync=
factor="r2"
fi
io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor $ssync"
python run_test.py --runner rally -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="--deployment $1"
done
done
done
done
# bsizes="4k 64k 256k 1m"
# ops="randread read"
# for bsize in $bsizes ; do
# for op in $ops ; do
# for xxx in $three_times ; do
# io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize r2"
# python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1"
# done
# done
# done
# bsizes="1k 4k"
# ops="randwrite write"
# three_times="1 2 3"
# for bsize in $bsizes ; do
# for op in $ops ; do
# for xxx in $three_times ; do
# factor="r2"
# io_opts="--type $type -a $op --iodepth 16 --blocksize $bsize --iosize $factor"
# python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1"
# done
# done
# done
# ops="randread read"
# for op in $ops ; do
# for xxx in $three_times ; do
# io_opts="--type $type -a $op --iodepth 16 --blocksize 1k --iosize r2"
# python run_rally_test.py -l -o "$io_opts" -t io-scenario $type --rally-extra-opts="--deployment $1"
# done
# done