mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Ensure we do not oversubscribe freespace for AIO stress test.
Merge of master-melb:xfs-cmds:21491a by kenmcd.
This commit is contained in:
@@ -49,9 +49,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
_cleanup()
|
||||
{
|
||||
cd /
|
||||
# we might get here with a RO FS
|
||||
mount -o remount,rw $TEST_DEV >/dev/null 2>&1
|
||||
# now kill!
|
||||
rm -f $testdir/aio-stress.$$.*
|
||||
_cleanup_testdir
|
||||
}
|
||||
@@ -85,9 +82,11 @@ _do_test()
|
||||
echo " aio-stress (count=$_count) returned $?"
|
||||
cat $tmp.out
|
||||
status=1
|
||||
exit
|
||||
fi
|
||||
|
||||
_check_test_fs
|
||||
rm -f $_files
|
||||
}
|
||||
|
||||
|
||||
@@ -106,12 +105,12 @@ procs=20
|
||||
_check_test_fs
|
||||
|
||||
# the default
|
||||
_do_test 1 "" $count 1
|
||||
_do_test 1 "-I120m" $count 1
|
||||
|
||||
# and the default with multiprocess
|
||||
_do_test 2 "" $count $procs
|
||||
_do_test 2 "-I10m" $count $procs
|
||||
|
||||
# as above, but now using direct IO
|
||||
_do_test 3 "-O" $count $procs
|
||||
_do_test 3 "-I10m -O" $count $procs
|
||||
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user