X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=db74c2e4df503d590433b237141516bf74198e94;hb=f9919c68a565db9a25a9253d4a69bfc814a6a1e0;hp=4fc00b2b1092a8c981b7f651ab164f009e3fd78f;hpb=93acd158c57c4c5d0fc751d46741231490c04707;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index 4fc00b2..db74c2e 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,17 +1,17 @@ #!/bin/sh [ -z "$SIZE" ] && SIZE=5g -[ -z "$LOOPS" ] && LOOPS=9999 +[ -z "$COUNT" ] && COUNT=100 [ -z "$VERIFY" ] && VERIFY="-+d" -[ -z "$ODIR" ] && ODIR="-I" +#[ -z "$ODIR" ] && ODIR="-I" [ -z "$REC" ] && REC=64 [ -z "$FILE" ] && FILE=/mnt/lustre/iozone.$$ [ $1 ] && SIZE=$1 -COUNT=0 +LOOP=0 rm -f endiozone echo 0 > /proc/sys/portals/debug while date; do - echo "Test #$COUNT" + LOOP=`expr $LOOP + 1` + echo "Test #$LOOP" iozone $VERIFY $ODIR -r $REC -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? - COUNT=`expr $COUNT + 1` - [ -f endiozone -o $COUNT -ge $LOOPS ] && rm -f endiozone && exit 0 + [ -f endiozone -o $LOOP -ge $COUNT ] && rm -f endiozone && exit 0 done | tee /tmp/iozone.log