stress2: Add note about problems found.

This commit is contained in:
Peter Holm 2021-04-04 10:27:53 +02:00
parent d36341f7b8
commit 332a600138
2 changed files with 9 additions and 3 deletions

View File

@ -33,9 +33,12 @@
# "panic: vm_fault_hold: fault on nofault entry, addr: 0xfffffe00b1b3c000"
# seen: https://people.freebsd.org/~pho/stress/log/kostik1175.txt
# https://people.freebsd.org/~pho/stress/log/log0084.txt
# Fixed by: dc532884d582
. ../default.cfg
kldstat | grep -q tmpfs.ko || notloaded=1
kldstat | grep -q tmpfs && loaded=1
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
mount -o size=2g -t tmpfs tmpfs $mntpoint || exit 1
chmod 777 $mntpoint
@ -59,12 +62,12 @@ min=1000
max=$((oldmx * 4))
while kill -0 $! 2>/dev/null; do
sysctl kern.maxvnodes=`jot -r 1 $min $max` > /dev/null
sleep `jot -r 1 1 3`
sleep .2
done
wait
while mount | grep $mntpoint | grep -q tmpfs; do
umount $mntpoint || sleep 1
done
[ $notloaded ] && kldunload tmpfs.ko
[ $loaded ] && kldunload tmpfs.ko
exit 0

View File

@ -32,6 +32,9 @@
# https://people.freebsd.org/~pho/stress/log/mjguzik005.txt
# Fixed by r309067.
# Watchdog fired:
# https://people.freebsd.org/~pho/stress/log/log0083.txt
oldmx=`sysctl -n kern.maxvnodes`
trap "sysctl kern.maxvnodes=$oldmx > /dev/null" EXIT SIGINT