From owner-freebsd-current@FreeBSD.ORG Sun Jul 4 15:11:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B6E016A4CE for ; Sun, 4 Jul 2004 15:11:52 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E80F243D1D for ; Sun, 4 Jul 2004 15:11:51 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i64FBLp6034667; Sun, 4 Jul 2004 11:11:21 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i64FBLPS034664; Sun, 4 Jul 2004 11:11:21 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 4 Jul 2004 11:11:21 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Niklas Saers In-Reply-To: <40E7D0F4.9080104@saers.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: Filesystem lock in jailed environment X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 15:11:52 -0000 On Sun, 4 Jul 2004, Niklas Saers wrote: > I'm not an experienced kernel-debugger, and hitting Ctrl-Alt-Esc only > gives me a trace of the keyboard. If this is a good route to take, hints > to how to go about are most welcome. Sounds like a file system vnode lock deadlock. Try using the "show lockedvnodes" command to identify locked vnodes and processes holding them; then use the "trace " command to trace the processes in question to see where they blocked while holding vnode locks. It may be useful to build your kernel with "options DEBUG_LOCKS", which will provide additional information about vnode locking (at a performance hit) -- in particular, it will have each lock trace where the lock was last acquired. If you're running with WITNESS, you can use the WITNESS debugging features to identify other potential deadlocks. However, it sounds like this is a vnode deadlock, and vnodes use "lockmgr" for their higher level locking, and lockmgr isn't currently able to use WITNESS. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research