From owner-freebsd-hackers Mon Dec 17 13:31:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id 308A637B405 for ; Mon, 17 Dec 2001 13:31:17 -0800 (PST) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.1/8.11.1) with ESMTP id fBHLVD093995; Mon, 17 Dec 2001 22:31:13 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Mon, 17 Dec 2001 22:35:36 +0100 (CET) From: Martin Blapp To: Matthew Dillon Cc: Subject: Re: deadlock with softupdates ? In-Reply-To: <200112172002.fBHK2I332492@apollo.backplane.com> Message-ID: <20011217223123.P59342-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Matt, > Yahoo noticed a deadlock in the vnode recycling code. If your machine > below is hitting the kern.maxvnodes limit it could be the same thing. > The way to tell is to generate a kernel core along with the debug > version of the kernel binary (/usr/src/sys/compile//kernel.debug), > and backtrace each locked-up process to see if any of them are going > through the recycle code. It cannot be kern.maxvnodes, cause the newsserver is using the cyclic news filesystem. And there is also enough ram. It seems to be a vnode deadlock: (kgdb) defproc 2 2 d78cd0c0 d6445000 0 0 0 100204 3 pagedaemon inode c2c0c200 frame 0 at 0xd6447e24: ebp d6447e50, eip 0xc017a529 : mov 0x141(%ebx),%al frame 1 at 0xd6447e50: ebp d6447e74, eip 0xc0171c24 : mov %eax,%esi frame 2 at 0xd6447e74: ebp d6447e98, eip 0xc0171ea5 : mov %eax,%edi frame 3 at 0xd6447e98: ebp d6447eb0, eip 0xc01a2008 : jmp 0xc01a200e frame 4 at 0xd6447eb0: ebp d6447ebc, eip 0xc022e44d : leave frame 5 at 0xd6447ebc: ebp d6447ee4, eip 0xc01ac04b : add $0x4,%esp frame 6 at 0xd6447ee4: ebp d6447f00, eip 0xc01a4e18 : mov %eax,%esi frame 7 at 0xd6447f00: ebp d6447f84, eip 0xc023a52d : add $0xc,%esp frame 8 at 0xd6447f84: ebp d6447f9c, eip 0xc023af53 : movl $0x0,0xc02eff1c (kgdb) x/x 0xd6447f00 0xd6447f00: 0xd6447f84 (kgdb) x/10 0xd6447f00 0xd6447f00: 0xd6447f84 0xc023a52d 0xd7e5a180 0x00040002 0xd6447f10: 0xd47c2c60 0x00000000 0x00000000 0x00000000 0xd6447f20: 0xd7e5a180 0x00000020 (kgdb) showcache 0xd7e5a180 history.hash Can you help me to debug this bug ? Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message