From owner-svn-src-user@freebsd.org Tue Apr 24 10:08:12 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0103FC2328 for ; Tue, 24 Apr 2018 10:08:12 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6882E7949A; Tue, 24 Apr 2018 10:08:12 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 635A911B2A; Tue, 24 Apr 2018 10:08:12 +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 w3OA8Cng016978; Tue, 24 Apr 2018 10:08:12 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3OA8CD9016977; Tue, 24 Apr 2018 10:08:12 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201804241008.w3OA8CD9016977@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 24 Apr 2018 10:08:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r332925 - user/pho/stress2/misc X-SVN-Group: user X-SVN-Commit-Author: pho X-SVN-Commit-Paths: user/pho/stress2/misc X-SVN-Commit-Revision: 332925 X-SVN-Commit-Repository: base 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.25 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, 24 Apr 2018 10:08:12 -0000 Author: pho Date: Tue Apr 24 10:08:12 2018 New Revision: 332925 URL: https://svnweb.freebsd.org/changeset/base/332925 Log: Limit runtime to 5 minutes. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/crossmp6.sh Modified: user/pho/stress2/misc/crossmp6.sh ============================================================================== --- user/pho/stress2/misc/crossmp6.sh Tue Apr 24 10:07:13 2018 (r332924) +++ user/pho/stress2/misc/crossmp6.sh Tue Apr 24 10:08:12 2018 (r332925) @@ -39,6 +39,7 @@ pgrep -q lockd || { echo "lockd not running."; exit 1; } +CONT=/tmp/crossmp6.continue mounts=10 # Number of parallel scripts if [ $# -eq 0 ]; then @@ -75,12 +76,13 @@ else /dev/null 2>&1 (lockf -t 10 ${mntpoint}$2/$0.$$.$i sleep 1 &) > \ /dev/null 2>&1 + [ -f $CONT ] || break done wait else - # The test: Parallel mount and unmounts - for i in `jot 128`; do + start=`date '+%s'` + while [ $((`date '+%s'` - start)) -lt 300 ]; do m=$1 mount -t nfs -o tcp -o nfsv3 -o retrycnt=3 \ -o soft -o rw $nfs_export ${mntpoint}$m @@ -95,5 +97,6 @@ else [ $n -gt 100 ] && exit done done + rm -f $CONT fi fi