svn commit: r332670 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Wed Apr 18 12:56:18 UTC 2018
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
More information about the svn-src-user
mailing list