From owner-svn-src-user@FreeBSD.ORG Tue Aug 12 12:42:51 2014 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C29DD93 for ; Tue, 12 Aug 2014 12:42:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6239E2907 for ; Tue, 12 Aug 2014 12:42:51 +0000 (UTC) Received: from pho (uid 788) (envelope-from pho@FreeBSD.org) id 6a69 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 12 Aug 2014 12:42:51 +0000 From: Peter Holm Date: Tue, 12 Aug 2014 12:42:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r269869 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53ea0bcb.6a69.699e907b@svn.freebsd.org> X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18 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, 12 Aug 2014 12:42:51 -0000 Author: pho Date: Tue Aug 12 12:42:51 2014 New Revision: 269869 URL: http://svnweb.freebsd.org/changeset/base/269869 Log: Added description of problem fount with this scenario. Fixed error and made cleaning up more safe. Modified: user/pho/stress2/misc/crossmp3.sh Modified: user/pho/stress2/misc/crossmp3.sh ============================================================================== --- user/pho/stress2/misc/crossmp3.sh Tue Aug 12 12:40:57 2014 (r269868) +++ user/pho/stress2/misc/crossmp3.sh Tue Aug 12 12:42:51 2014 (r269869) @@ -29,7 +29,9 @@ # # Parallel mount and umount of file systems -# No problems seen. +# "panic: Bad link elm 0xfffff8052a20cc00 prev->next != elm" seen: +# http://people.freebsd.org/~pho/stress/log/crossmp3.txt +# Fixed in r269853 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 @@ -39,14 +41,13 @@ N=`sysctl -n hw.ncpu` size=$((`sysctl -n hw.usermem` / 1024 / 1024 / N)) mounts=$N # Number of parallel scripts -mdstart=$mdstart # Use md unit numbers from this point if [ $# -eq 0 ]; then for i in `jot $mounts`; do m=$(( i + mdstart - 1 )) [ ! -d ${mntpoint}$m ] && mkdir ${mntpoint}$m - mount | grep "$mntpoint" | grep -q md$m && umount ${mntpoint}$m - mdconfig -l | grep -q md$m && mdconfig -d -u $m + mount | grep "${mntpoint}$m" | grep -q md$m && umount ${mntpoint}$m + mdconfig -l | grep -q md$m && mdconfig -d -u $m mdconfig -a -t swap -s ${size}m -u $m bsdlabel -w md$m auto @@ -85,7 +86,7 @@ else chmod 777 ${mntpoint}$m export RUNDIR=${mntpoint}$m/stressX export CTRLDIR=${mntpoint}$m/stressX.control - (cd ${mntpoint}$m; find . -delete) + (cd ${mntpoint}$m && find . -delete) su $testuser -c 'cd ..; ./run.sh disk.cfg' > \ /dev/null 2>&1