From owner-svn-src-user@freebsd.org Tue May 9 12:02:44 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66F9CD63C79 for ; Tue, 9 May 2017 12:02:44 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 236D3165F; Tue, 9 May 2017 12:02:43 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v49C2hUB022916; Tue, 9 May 2017 12:02:43 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v49C2h7Y022915; Tue, 9 May 2017 12:02:43 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201705091202.v49C2h7Y022915@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 9 May 2017 12:02:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r318022 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 12:02:44 -0000 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