Date: Wed, 18 Apr 2018 12:56:17 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r332670 - user/pho/stress2/misc Message-ID: <201804181256.w3ICuHRN049714@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Wed Apr 18 12:56:17 2018 New Revision: 332670 URL: https://svnweb.freebsd.org/changeset/base/332670 Log: Added problem found, added missung umount(8) and style fixes. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/crossmp10.sh Modified: user/pho/stress2/misc/crossmp10.sh ============================================================================== --- user/pho/stress2/misc/crossmp10.sh Wed Apr 18 11:35:22 2018 (r332669) +++ user/pho/stress2/misc/crossmp10.sh Wed Apr 18 12:56:17 2018 (r332670) @@ -29,6 +29,8 @@ # # ext2fs parallel mount & umount test scenario +# "panic: vm_fault_hold: fault on nofault entry" seen. +# https://people.freebsd.org/~pho/stress/log/crossmp10.txt [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 [ -z "`which mke2fs`" ] && echo "mke2fs not found" && exit 0 @@ -36,17 +38,15 @@ . ../default.cfg CONT=/tmp/crossmp10.continue -N=4 -size=512 +mounts=4 # Number of parallel scripts +size=512 # Disk size in MB -mounts=$N # Number of parallel scripts - if [ $# -eq 0 ]; then for i in `jot $mounts`; do m=$(( i + mdstart - 1 )) [ ! -d ${mntpoint}$m ] && { mkdir ${mntpoint}$m; chmod 755 ${mntpoint}$m; } - mount | grep "${mntpoint}$m" | grep -q md$m && umount ${mntpoint}$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 @@ -66,9 +66,13 @@ if [ $# -eq 0 ]; then for i in `jot $mounts`; do m=$(( i + mdstart - 1 )) + while mount | grep -q "on ${mntpoint}$m "; do + umount ${mntpoint}$m && break + sleep 1 + done mdconfig -d -u $m done - + exit 0 else if [ $1 = find ]; then while [ -f $CONT ]; do
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804181256.w3ICuHRN049714>