From owner-svn-src-user@freebsd.org Tue May 16 09:12:31 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35375D6DB84 for ; Tue, 16 May 2017 09:12:31 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 027C5134A; Tue, 16 May 2017 09:12:30 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4G9CTFG026480; Tue, 16 May 2017 09:12:29 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4G9CTRl026479; Tue, 16 May 2017 09:12:29 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201705160912.v4G9CTRl026479@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Tue, 16 May 2017 09:12:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r318342 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.23 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, 16 May 2017 09:12:31 -0000 Author: pho Date: Tue May 16 09:12:29 2017 New Revision: 318342 URL: https://svnweb.freebsd.org/changeset/base/318342 Log: Add the bug report number which inspired this scenario and tune the disk size. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/gjournal3.sh Modified: user/pho/stress2/misc/gjournal3.sh ============================================================================== --- user/pho/stress2/misc/gjournal3.sh Tue May 16 09:08:23 2017 (r318341) +++ user/pho/stress2/misc/gjournal3.sh Tue May 16 09:12:29 2017 (r318342) @@ -31,6 +31,9 @@ # Deadlock seen: http://people.freebsd.org/~pho/stress/log/gjournal3.txt # Fixed in r244925 +# panic: Bio not on queue +# https://people.freebsd.org/~pho/stress/log/gjournal3-2.txt + # kib@ wrote: # gjournal is good for exposing the suspension problems. The frequency # of the suspensions called from the gjournal is not achievable by other @@ -38,17 +41,26 @@ # only establishes the suspension, without snapshotting, which also # makes it easier to see the issues. +# gjournal / ffs snapshot suspension deadlock: +# https://people.freebsd.org/~pho/stress/log/gjournal3-4.txt +# Originally reported as kern/164252. + [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 . ../default.cfg -size="2g" +[ `swapinfo | wc -l` -eq 1 ] && exit 0 +size="6g" +jsize="4g" +[ $((`sysctl -n hw.usermem` / 1024 / 1024 / 1024)) -le ${size%g} ] && exit 0 +[ `swapinfo -k | tail -1 | awk '{print int($4/1024/1024)}'` -lt \ + ${size%g} ] && exit 0 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint -mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart +[ -c /dev/mdmd$mdstart ] && mdconfig -d -u $mdstart mdconfig -a -t swap -s $size -u $mdstart || exit 1 gjournal load -gjournal label md$mdstart +gjournal label -s $jsize md$mdstart sleep .5 newfs -J /dev/md$mdstart.journal > /dev/null mount -o async /dev/md$mdstart.journal $mntpoint