Date: Tue, 9 May 2017 12:02:43 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r318022 - user/pho/stress2/misc Message-ID: <201705091202.v49C2h7Y022915@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705091202.v49C2h7Y022915>