From owner-svn-src-user@FreeBSD.ORG Thu Feb 12 20:35:32 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05744BF0; Thu, 12 Feb 2015 20:35:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 E577188A; Thu, 12 Feb 2015 20:35:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1CKZVfm088627; Thu, 12 Feb 2015 20:35:31 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1CKZVh6088626; Thu, 12 Feb 2015 20:35:31 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201502122035.t1CKZVh6088626@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Thu, 12 Feb 2015 20:35:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r278632 - 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.18-1 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: Thu, 12 Feb 2015 20:35:32 -0000 Author: pho Date: Thu Feb 12 20:35:30 2015 New Revision: 278632 URL: https://svnweb.freebsd.org/changeset/base/278632 Log: Limit file system size. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/tmpfs11.sh Modified: user/pho/stress2/misc/tmpfs11.sh ============================================================================== --- user/pho/stress2/misc/tmpfs11.sh Thu Feb 12 19:45:07 2015 (r278631) +++ user/pho/stress2/misc/tmpfs11.sh Thu Feb 12 20:35:30 2015 (r278632) @@ -40,12 +40,13 @@ 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 -t tmpfs tmpfs $mp1 +mount -o size=${size}m -t tmpfs tmpfs $mp1 chmod 777 $mp1 mount | grep $mp2 | grep -q tmpfs && umount -f $mp2 -mount -t tmpfs tmpfs $mp2 +mount -o size=${size}m -t tmpfs tmpfs $mp2 chmod 777 $mp2 export runRUNTIME=15m