From b970d054cef9d351aea8d254255de3874c2b10ca Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 3 Feb 2013 09:28:22 -0800 Subject: [PATCH] qa: smalliobenchrbd workunit Run a bunch of parallel smalliobenchrbd processes. Signed-off-by: Sage Weil --- qa/workunits/rbd/smalliobench.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 qa/workunits/rbd/smalliobench.sh diff --git a/qa/workunits/rbd/smalliobench.sh b/qa/workunits/rbd/smalliobench.sh new file mode 100755 index 00000000000..5cedc78e768 --- /dev/null +++ b/qa/workunits/rbd/smalliobench.sh @@ -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" -- 2.47.3