svn commit: r318022 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue May 9 12:02:44 UTC 2017
Author: pho
Date: Tue May 9 12:02:42 2017
New Revision: 318022
URL: https://svnweb.freebsd.org/changeset/base/318022
Log:
Limit disk size.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/tmpfs11.sh
Modified: user/pho/stress2/misc/tmpfs11.sh
==============================================================================
--- user/pho/stress2/misc/tmpfs11.sh Tue May 9 11:05:32 2017 (r318021)
+++ user/pho/stress2/misc/tmpfs11.sh Tue May 9 12:02:42 2017 (r318022)
@@ -40,13 +40,12 @@ mp2=${mntpoint}2
md1=$mdstart
md2=$((mdstart + 1))
-size=$((`sysctl -n hw.usermem` / 1024 / 1024 / 2))
mount | grep $mp1 | grep -q tmpfs && umount -f $mp1
-mount -o size=${size}m -t tmpfs tmpfs $mp1
+mount -o size=1g -t tmpfs tmpfs $mp1
chmod 777 $mp1
mount | grep $mp2 | grep -q tmpfs && umount -f $mp2
-mount -o size=${size}m -t tmpfs tmpfs $mp2
+mount -o size=1g -t tmpfs tmpfs $mp2
chmod 777 $mp2
export runRUNTIME=15m
@@ -74,7 +73,7 @@ export TESTPROGS="$TESTPROGS testcases/s
export RUNDIR=$mp2/stressX
export CTRLDIR=$mp2/stressX.control
su $testuser -c 'cd ..; ./testcases/run/run $TESTPROGS' > /dev/null 2>&1 &
-wait; wait
+wait
while mount | grep "$mp2 " | grep -q tmpfs; do
umount $mp2 || sleep 1
More information about the svn-src-user
mailing list