X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-benchmark.sh;h=ee5711986b6e2f653c574317d3399514917439f0;hb=be009cb4a73b3bef7302083bec7d1d6289d515b7;hp=370afae292ac35344421ad145512d2c324e516a6;hpb=b0ebe1cf73a46b427c6b0e42bd8d288d79b3be8e;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-benchmark.sh b/lustre/tests/sanity-benchmark.sh index 370afae..ee57119 100644 --- a/lustre/tests/sanity-benchmark.sh +++ b/lustre/tests/sanity-benchmark.sh @@ -180,21 +180,22 @@ test_iozone() { run_test iozone "iozone" test_fsx() { - local testfile=$DIR/f0.fsxfile - FSX_SIZE=$SIZE - FSX_COUNT=1000 - local SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'` - [ $SPACE -lt $FSX_SIZE ] && FSX_SIZE=$((SPACE * 3 / 4)) - $DEBUG_OFF - FSX_SEED=${FSX_SEED:-$RANDOM} - rm -f $testfile - $LFS setstripe -c -1 $testfile - CMD="fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \ - -N $((FSX_COUNT * 100)) $FSXOPT $testfile" - echo "Using: $CMD" - $CMD || error "fsx failed" - rm -f $testfile - $DEBUG_ON + local testfile=$DIR/f0.fsxfile + FSX_SIZE=$SIZE + FSX_COUNT=1000 + local SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'` + + [ $SPACE -lt $FSX_SIZE ] && FSX_SIZE=$((SPACE * 3 / 4)) + $DEBUG_OFF + FSX_SEED=${FSX_SEED:-$RANDOM} + rm -f $testfile + $LFS setstripe -c -1 $testfile + CMD="fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \ + -N $((FSX_COUNT * 100)) $FSXOPT $testfile" + echo "Using: $CMD" + $CMD || error "fsx failed" + rm -f $testfile + $DEBUG_ON } run_test fsx "fsx"