From ff077fc3c84254a71ff1db1e456d3b4d544398a7 Mon Sep 17 00:00:00 2001 From: grev <grev> Date: Tue, 2 Dec 2008 14:12:12 +0000 Subject: [PATCH] b=17267 i=Adilger fsx fix: limit bound file size by 1/2 RAM --- lustre/tests/acceptance-small.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh index e10c738239..f80ce68142 100755 --- a/lustre/tests/acceptance-small.sh +++ b/lustre/tests/acceptance-small.sh @@ -272,13 +272,15 @@ for NAME in $CONFIGS; do if [ "$FSX" != "no" ]; then title fsx + FSX_SIZE=$((RAMKB / 2)) SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'` - [ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4)) + [ $SPACE -lt $FSX_SIZE ] && FSX_SIZE=$((SPACE * 3 / 4)) $DEBUG_OFF FSX_SEED=${FSX_SEED:-$RANDOM} rm -f $MOUNT/fsxfile $LFS setstripe -c -1 $MOUNT/fsxfile - ./fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $SIZE \ + echo Using FSX_SEED=$FSX_SEED FSX_SIZE=$FSX_SIZE COUNT=$COUNT + ./fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \ -N $(($COUNT * 100)) $MOUNT/fsxfile $DEBUG_ON $CLEANUP -- GitLab