summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/workunits/rbd/smalliobench.sh
blob: f25fae43bc97498b66163b457ffa65e24f998936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

NUM="$1"
GAP="$2"
DUR="$3"

[ -z "$NUM" ] && NUM=30
[ -z "$GAP" ] && GAP=5
[ -z "$DUR" ] && DUR=30

for n in `seq 1 $NUM`; do
    echo "Starting $n of $NUM ..."
    ceph_smalliobenchrbd --pool rbd --duration $DUR --disable-detailed-ops 1 &
    sleep $GAP
done
echo "Waiting..."
wait
echo "OK"