stress2: Avoid unrelated disk full messages from tests

This commit is contained in:
Peter Holm 2023-01-30 09:32:43 +01:00
parent 349aac52ac
commit bbdd27f9d7
4 changed files with 20 additions and 7 deletions

View File

@ -50,8 +50,8 @@ for i in $md1 $md2; do
mdconfig -l | grep -q md$i && mdconfig -d -u $i
done
mdconfig -a -t swap -s 2g -u $md1
mdconfig -a -t swap -s 2g -u $md2
mdconfig -a -t swap -s 5g -u $md1
mdconfig -a -t swap -s 5g -u $md2
newfs $newfs_flags -n md$md1 > /dev/null
newfs $newfs_flags -n md$md2 > /dev/null
mount /dev/md$md1 $mp1
@ -68,11 +68,12 @@ else
echo "Using FFS"
export RUNDIR=$mp1/stressX
fi
export runRUNTIME=2m
export CTRLDIR=$mp2/stressX.control
export runRUNTIME=2m
(cd ../testcases/mkdir; ./mkdir -t 2m -i 20)
(cd ../testcases/mkdir; ./mkdir -t 2m -i 20 -l 100)
find $RUNDIR -ls | head -5
find $RUNDIR -ls | grep -v 'stressX$' | head -5
while mount | grep -Eq "on $mp2 .*unionfs"; do
umount $mp2 && break
sleep 5

View File

@ -57,6 +57,10 @@ mount -t unionfs -o noatime $mp1 $mp2
set +e
mount | grep -E "$mp1|$mp2"
set `df -ik $mp2 | tail -1 | awk '{print $4,$7}'`
export KBLOCKS=$(($1 / 4))
export INODES=$(($2 / 4))
export CTRLDIR=$mp2/stressX.control
export INCARNATIONS=10
export LOAD=80

View File

@ -60,6 +60,10 @@ mount -t unionfs -o noatime $mp1 $mp2
set +e
mount | grep -E "$mp1|$mp2"
set `df -ik $mp2 | tail -1 | awk '{print $4,$7}'`
export KBLOCKS=$(($1 / 4))
export INODES=$(($2 / 4))
export CTRLDIR=$mp2/stressX.control
export INCARNATIONS=10
export LOAD=80

View File

@ -51,8 +51,8 @@ for i in $md1 $md2; do
mdconfig -l | grep -q md$i && mdconfig -d -u $i
done
mdconfig -a -t swap -s 4g -u $md1
mdconfig -a -t swap -s 4g -u $md2
mdconfig -a -t swap -s 5g -u $md1
mdconfig -a -t swap -s 5g -u $md2
newfs $newfs_flags -n md$md1 > /dev/null
newfs $newfs_flags -n md$md2 > /dev/null
mount /dev/md$md1 $mp1
@ -69,6 +69,10 @@ mount -t unionfs -o below $mp1 $mp2
set +e
mount | grep -E "$mp1|$mp2"
set `df -ik $mp2 | tail -1 | awk '{print $4,$7}'`
export KBLOCKS=$(($1 / 6))
export INODES=$(($2 / 6))
export CTRLDIR=$mp2/stressX.control
export INCARNATIONS=10
export LOAD=80