From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 21 17:29:25 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 DD46516A4DF for ; Mon, 21 Aug 2006 17:29:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB0C043D76 for ; Mon, 21 Aug 2006 17:29:24 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k7LHTCGr011401; Mon, 21 Aug 2006 13:29:21 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 21 Aug 2006 12:27:53 -0400 User-Agent: KMail/1.9.1 References: <44E45C3F.6060901@centtech.com> <20060817122502.GF1483@deviant.kiev.zoral.com.ua> <44E4614B.9000902@centtech.com> In-Reply-To: <44E4614B.9000902@centtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608211227.54715.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 21 Aug 2006 13:29:21 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1702/Mon Aug 21 11:23:21 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Kostik Belousov 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:29:26 -0000 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. > >> Basically, the system comes up after unclean shutdown, throws a bunch of > >> filesystems into the background fsck list, and begins 60 seconds later. > >> After some amount of time, the system will lock up, presumably hung > >> waiting on locks. > >> > >> Here's some info: > >> lock type bufwait: EXCL (count 1) by thread 0xffffff0128812980 (pid 804) > >> lock type getblk: EXCL (count 1) by thread 0xffffff0128812980 (pid > >> 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 > >> 804) > >> ino 4, on dev label/vol4 > >> > >> > >> > >> How can I use kgdb to get more debugging information from this? > >> > > Look at the > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html > > for instructions for ddb. > > > > What is the date of the system checkout ? > > > 6-STABLE from ~8/12/06. > > So there's not much that can be done with the vmcore? Actually, there is stuff that can be done with the vmcore. Download http://www.FreeBSD.org/~jhb/gdb.6 Then in kgdb do: (gdb) source /path/to/6.gdb (gdb) sleepchain 0xffffff0128812980 And see if that spits out a cycle. -- John Baldwin