X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=5eacb9c0b97af67c0736a5c4b661586c6eaa36ce;hb=301db1b716f2f5cc395817fcf1b322ae78677925;hp=9510ab0c0f89f6d057e4fc1baecd42e485bf1d81;hpb=987bf45f23842ae60b6594adb519bc25f269c8eb;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index 9510ab0..5eacb9c 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,13 +1,17 @@ #!/bin/sh -SIZE=5g -COUNT=0 -VERIFY="-+d" -FILE=/mnt/lustre/test.$$ +[ -z "$SIZE" ] && SIZE=5g +[ -z "$COUNT" ] && COUNT=100 +[ -z "$VERIFY" ] && VERIFY="-+d" +#[ -z "$ODIR" ] && ODIR="-I" +[ -z "$REC" ] && REC=64 +[ -z "$FILE" ] && FILE=/mnt/lustre/iozone.$$ [ $1 ] && SIZE=$1 +LOOP=0 rm -f endiozone +echo 0 > /proc/sys/lnet/debug while date; do - echo "Test #$COUNT" - iozone $VERIFY -r 64 -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? - COUNT=`expr $COUNT + 1` - [ -f endiozone ] && rm endiozone && exit 0 + LOOP=`expr $LOOP + 1` + echo "Test #$LOOP" + iozone $VERIFY $ODIR -r $REC -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? + [ -f endiozone -o $LOOP -ge $COUNT ] && rm -f endiozone && exit 0 done | tee /tmp/iozone.log