X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fruniozone;h=b364abef8f8754812ce45be4787b046c71cf1e56;hb=f21c507fbca2afab5a5d97d4e816696a69d1c593;hp=e482b88b85acb8a6b748799cdeea570e9b79ff1c;hpb=8478a3fa8da15303a002189a1fa81fa11b9bd876;p=fs%2Flustre-release.git diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index e482b88..b364abe 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,10 +1,17 @@ #!/bin/sh -SIZE=5m -COUNT=0 +[ -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 +lctl set_param -n debug=0 while date; do - echo "Test #$COUNT" - iozone -f /mnt/obd/test.$$ -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