]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: smalliobenchrbd workunit
authorSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 17:28:22 +0000 (09:28 -0800)
committerSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 17:28:22 +0000 (09:28 -0800)
Run a bunch of parallel smalliobenchrbd processes.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rbd/smalliobench.sh [new file with mode: 0755]

diff --git a/qa/workunits/rbd/smalliobench.sh b/qa/workunits/rbd/smalliobench.sh
new file mode 100755 (executable)
index 0000000..5cedc78
--- /dev/null
@@ -0,0 +1,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 ..."
+    smalliobenchrbd --pool rbd --duration $DUR --disable-detailed-ops 1 &
+    sleep $GAP
+done
+echo "Waiting..."
+wait
+echo "OK"