Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / rbd / smalliobench.sh
1 #!/bin/sh
2
3 NUM="$1"
4 GAP="$2"
5 DUR="$3"
6
7 [ -z "$NUM" ] && NUM=30
8 [ -z "$GAP" ] && GAP=5
9 [ -z "$DUR" ] && DUR=30
10
11 for n in `seq 1 $NUM`; do
12     echo "Starting $n of $NUM ..."
13     ceph_smalliobenchrbd --pool rbd --duration $DUR --disable-detailed-ops 1 &
14     sleep $GAP
15 done
16 echo "Waiting..."
17 wait
18 echo "OK"