diff --git a/tools/test/stress2/misc/quota5.sh b/tools/test/stress2/misc/quota5.sh index 050ea4a822d9..ee69dac4be01 100755 --- a/tools/test/stress2/misc/quota5.sh +++ b/tools/test/stress2/misc/quota5.sh @@ -1,44 +1,44 @@ #!/bin/sh # # Copyright (c) 2008-2011 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 [ "`sysctl -in kern.features.ufs_quota`" != "1" ] && exit 0 mount | grep -q "on /tmp (ufs," || exit 0 if ! grep /tmp /etc/fstab | grep -q quota ; then echo "Note: /tmp must have quota enabled for this test." exit 0 fi edquota -u -f /tmp -e /tmp:1500000:1400000:200000:180000 $testuser edquota -g -f /tmp -e /tmp:1500000:1400000:200000:180000 $testuser quotaon /tmp su $testuser -c "export runRUNTIME=60m; cd ../testcases/mkdir; \ - ./mkdir -t 30m -i 200 -v -v" + ./mkdir -t 10m -i 200 -v -v" quotaoff /tmp diff --git a/tools/test/stress2/misc/suj11.sh b/tools/test/stress2/misc/suj11.sh index 362d33caf8a4..01f3a49be087 100755 --- a/tools/test/stress2/misc/suj11.sh +++ b/tools/test/stress2/misc/suj11.sh @@ -1,57 +1,57 @@ #!/bin/sh # # Copyright (c) 2011 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 # Run with marcus.cfg on a 2g swap backed MD . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 newfs -j md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint -export runRUNTIME=30m +export runRUNTIME=10m export RUNDIR=$mntpoint/stressX su $testuser -c 'cd ..; ./run.sh marcus.cfg' > /dev/null 2>&1 while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done checkfs /dev/md$mdstart; s=$? tunefs -j disable /dev/md$mdstart checkfs /dev/md$mdstart || s=$? mdconfig -d -u $mdstart exit $s diff --git a/tools/test/stress2/misc/suj15.sh b/tools/test/stress2/misc/suj15.sh index 6ab9e653f12c..86bf2f4e3f1d 100755 --- a/tools/test/stress2/misc/suj15.sh +++ b/tools/test/stress2/misc/suj15.sh @@ -1,65 +1,65 @@ #!/bin/sh # # Copyright (c) 2011 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 # mksnap_ffs(8) test scenario inspired by Christian Gusenbauer, c47g gmx at. # Three problems seen with this scenario: # # 1) mksnap_ffs looping in ffs_sync() # 2) mksnap_ffs stuck in wsuspfs # 3) softdep_waitidle: Failed to flush worklist for ... . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 newfs -j md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint -export runRUNTIME=30m +export runRUNTIME=10m export RUNDIR=$mntpoint/stressX su $testuser -c 'cd ..; ./run.sh jeff.cfg > /dev/null' & rpid=$! while kill -0 $rpid 2> /dev/null; do sleep 10 dump -0aLf /dev/null /dev/md$mdstart done wait while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart diff --git a/tools/test/stress2/misc/suj16.sh b/tools/test/stress2/misc/suj16.sh index b58f406e7564..64e64dd65fbc 100755 --- a/tools/test/stress2/misc/suj16.sh +++ b/tools/test/stress2/misc/suj16.sh @@ -1,81 +1,81 @@ #!/bin/sh # # Copyright (c) 2011 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # mksnap_ffs(8) test scenario # Livelock seen in ffs_sync(). # "panic: initiate_write_bmsafemap: block 846816 marked free" seen. # Zero size snapshot file seen. [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 newfs -j md$mdstart > /dev/null 2>&1 mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint -export runRUNTIME=30m +export runRUNTIME=10m export RUNDIR=$mntpoint/stressX export creatINCARNATIONS=2 export TESTPROGS=" testcases/creat/creat " su $testuser -c 'cd ..; ./testcases/run/run $TESTPROGS' > /dev/null 2>&1 & rpid=$! mdstart2=$((mdstart + 1)) mntpoint2=${mntpoint}2 [ -d $mntpoint2 ] || mkdir $mntpoint2 mount | grep $mntpoint2 | grep -q /dev/md && umount -f $mntpoint2 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2 while kill -0 $rpid 2> /dev/null; do rm -f $mntpoint/.snap/suj16 { mksnap_ffs $mntpoint $mntpoint/.snap/suj16 || continue; } 2>&1 | \ grep -v "Resource temporarily unavailable" [ ! -s $mntpoint/.snap/suj16 ] && continue mdconfig -a -t vnode -f $mntpoint/.snap/suj16 -u $mdstart2 -o readonly mount -r /dev/md$mdstart2 $mntpoint2 ls -l $mntpoint2 > /dev/null umount $mntpoint2 mdconfig -d -u $mdstart2 done wait while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart diff --git a/tools/test/stress2/misc/suj26.sh b/tools/test/stress2/misc/suj26.sh index 940ef5c92a29..427f94dbc664 100755 --- a/tools/test/stress2/misc/suj26.sh +++ b/tools/test/stress2/misc/suj26.sh @@ -1,84 +1,84 @@ #!/bin/sh # # Copyright (c) 2012 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Variation of suj16.sh with more test programs and VM pressure. # Deadlocks seen. [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 [ $# -eq 1 ] && opt="$1" || opt="-j" newfs $opt md$mdstart > /dev/null 2>&1 mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint -export runRUNTIME=30m +export runRUNTIME=10m export RUNDIR=$mntpoint/stressX export creatINCARNATIONS=2 export TESTPROGS=" testcases/creat/creat testcases/mkdir/mkdir testcases/swap/swap " su $testuser -c 'cd ..; ./testcases/run/run $TESTPROGS' > /dev/null 2>&1 & rpid=$! mdstart2=$((mdstart + 1)) mntpoint2=${mntpoint}2 [ -d $mntpoint2 ] || mkdir $mntpoint2 mount | grep $mntpoint2 | grep -q /dev/md && umount -f $mntpoint2 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2 while kill -0 $rpid 2> /dev/null; do rm -f $mntpoint/.snap/suj26 { mksnap_ffs $mntpoint $mntpoint/.snap/suj26 || continue; } 2>&1 | \ grep -v "Resource temporarily unavailable" [ ! -s $mntpoint/.snap/suj26 ] && continue mdconfig -a -t vnode -f $mntpoint/.snap/suj26 -u $mdstart2 -o readonly mount -r /dev/md$mdstart2 $mntpoint2 ls -l $mntpoint2 > /dev/null while mount | grep $mntpoint2 | grep -q /dev/md; do umount $mntpoint2 || sleep 1 done mdconfig -d -u $mdstart2 done wait while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart diff --git a/tools/test/stress2/misc/suj27.sh b/tools/test/stress2/misc/suj27.sh index 8253243f5868..02cc70af5520 100755 --- a/tools/test/stress2/misc/suj27.sh +++ b/tools/test/stress2/misc/suj27.sh @@ -1,83 +1,83 @@ #!/bin/sh # # Copyright (c) 2012 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Variation of suj26.sh with one more test program. # Deadlocks seen. [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 [ $# -eq 1 ] && opt="$1" || opt="-j" newfs $opt md$mdstart > /dev/null 2>&1 mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint -export runRUNTIME=30m +export runRUNTIME=10m export RUNDIR=$mntpoint/stressX export creatINCARNATIONS=2 export TESTPROGS=" testcases/creat/creat testcases/mkdir/mkdir testcases/rw/rw testcases/swap/swap " su $testuser -c 'cd ..; ./testcases/run/run $TESTPROGS' > /dev/null 2>&1 & rpid=$! mdstart2=$((mdstart + 1)) mntpoint2=${mntpoint}2 [ -d $mntpoint2 ] || mkdir $mntpoint2 mount | grep $mntpoint2 | grep -q /dev/md && umount -f $mntpoint2 mdconfig -l | grep -q md$mdstart2 && mdconfig -d -u $mdstart2 while kill -0 $rpid 2> /dev/null; do rm -f $mntpoint/.snap/suj27 { mksnap_ffs $mntpoint $mntpoint/.snap/suj27 || continue; } 2>&1 | \ grep -v "Resource temporarily unavailable" [ ! -s $mntpoint/.snap/suj27 ] && continue mdconfig -a -t vnode -f $mntpoint/.snap/suj27 -u $mdstart2 -o readonly mount -r /dev/md$mdstart2 $mntpoint2 ls -l $mntpoint2 > /dev/null umount $mntpoint2 mdconfig -d -u $mdstart2 done wait while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart diff --git a/tools/test/stress2/misc/suj4.sh b/tools/test/stress2/misc/suj4.sh index 27001a64a0e5..928909077cef 100755 --- a/tools/test/stress2/misc/suj4.sh +++ b/tools/test/stress2/misc/suj4.sh @@ -1,55 +1,55 @@ #!/bin/sh # # Copyright (c) 2010 Peter Holm # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 # "panic: worklist_remove: 0xca821840 jnewblk(0x109) not on list" seen . ../default.cfg mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 1g -u $mdstart newfs -j md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint export RUNDIR=$mntpoint/stressX -export runRUNTIME=30m +export runRUNTIME=10m set `df -ik $mntpoint | tail -1 | awk '{print $4,$7}'` export KBLOCKS=$(($1 / 2)) export INODES=$(($2 / 2)) export rwINCARNATIONS=10 export rwHOG=1 su $testuser -c "cd ..; ./run.sh rw.cfg" while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart