From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 21 17:34:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACC3616A4E0; Mon, 21 Aug 2006 17:34:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (fw.zoral.com.ua [213.186.206.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id E161D43D6E; Mon, 21 Aug 2006 17:33:53 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id k7LHXgfD061943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Aug 2006 20:33:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6) with ESMTP id k7LHXhas007676; Mon, 21 Aug 2006 20:33:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6/Submit) id k7LHXhrD007675; Mon, 21 Aug 2006 20:33:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 21 Aug 2006 20:33:43 +0300 From: Kostik Belousov To: Eric Anderson Message-ID: <20060821173343.GJ56637@deviant.kiev.zoral.com.ua> References: <44E45C3F.6060901@centtech.com> <20060817122502.GF1483@deviant.kiev.zoral.com.ua> <44E4614B.9000902@centtech.com> <200608211227.54715.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEkEgRdBLZYkpbX2" Content-Disposition: inline In-Reply-To: <200608211227.54715.jhb@freebsd.org> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL, UNPARSEABLE_RELAY autolearn=no version=3.1.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on fw.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: 6-STABLE snapshot (background fsck) lock-up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 17:34:03 -0000 --PEkEgRdBLZYkpbX2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 21, 2006 at 12:27:53PM -0400, John Baldwin wrote: > On Thursday 17 August 2006 08:30, Eric Anderson wrote: > > On 08/17/06 07:25, Kostik Belousov wrote: > > > On Thu, Aug 17, 2006 at 07:08:31AM -0500, Eric Anderson wrote: > > >> I've seen this several times now, but this time I got a dump.=20 > > >> Basically, the system comes up after unclean shutdown, throws a bunc= h of=20 > > >> filesystems into the background fsck list, and begins 60 seconds lat= er.=20 > > >> After some amount of time, the system will lock up, presumably hu= ng=20 > > >> waiting on locks. > > >> > > >> Here's some info: > > >> lock type bufwait: EXCL (count 1) by thread 0xffffff0128812980 (pid = 804)=20 > > >> lock type getblk: EXCL (count 1) by thread 0xffffff0128812980 (pid= =20 > > >> 804)Locked vnodes > > >> > > >> 0xffffff01c5c9f000: tag ufs, type VREG > > >> usecount 1, writecount 0, refcount 13656 mountedhere 0 > > >> flags (VV_SYSTEM) > > >> v_object 0xffffff01b09542a0 ref 0 pages 1691637 > > >> lock type snaplk: EXCL (count 1) by thread 0xffffff0128812980 (= pid=20 > > >> 804) > > >> ino 4, on dev label/vol4 > > >> > > >> > > >> > > >> How can I use kgdb to get more debugging information from this? > > >> > > > Look at the > > >=20 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kern= eldebug-deadlocks.html > > > for instructions for ddb. > > >=20 > > > What is the date of the system checkout ? > >=20 > >=20 > > 6-STABLE from ~8/12/06. > >=20 > > So there's not much that can be done with the vmcore? >=20 > Actually, there is stuff that can be done with the vmcore. Download=20 > http://www.FreeBSD.org/~jhb/gdb.6 >=20 > Then in kgdb do: >=20 > (gdb) source /path/to/6.gdb > (gdb) sleepchain 0xffffff0128812980 >=20 > And see if that spits out a cycle. In fact, I just committed the fix that shall help with snapshots on AMD64. Please, try sys/ufs/ffs/ffs_snapshot.c, rev. 1.128. --PEkEgRdBLZYkpbX2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE6e52C3+MBN1Mb4gRAgDeAKCogNpFLb1BH5ptFcRoU4T37LaaCACfV2sR L30EUWaDl8tpqbP2sEK1sa4= =LwT6 -----END PGP SIGNATURE----- --PEkEgRdBLZYkpbX2--