From owner-freebsd-fs@FreeBSD.ORG Sun Oct 10 19:34:18 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 826C9106567A for ; Sun, 10 Oct 2010 19:34:18 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by mx1.freebsd.org (Postfix) with ESMTP id 302F68FC13 for ; Sun, 10 Oct 2010 19:34:17 +0000 (UTC) Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta10.westchester.pa.mail.comcast.net with comcast id H7Nj1f0021ZXKqc5A7aH5H; Sun, 10 Oct 2010 19:34:17 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta21.westchester.pa.mail.comcast.net with comcast id H7aG1f00S3LrwQ23h7aH6A; Sun, 10 Oct 2010 19:34:17 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 484DD9B418; Sun, 10 Oct 2010 12:34:15 -0700 (PDT) Date: Sun, 10 Oct 2010 12:34:15 -0700 From: Jeremy Chadwick To: Willem Jan Withagen Message-ID: <20101010193415.GA93540@icarus.home.lan> References: <4CB1DD0F.6000209@digiware.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CB1DD0F.6000209@digiware.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS freeze/livelock X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2010 19:34:18 -0000 On Sun, Oct 10, 2010 at 05:34:39PM +0200, Willem Jan Withagen wrote: > Just had my FreeBSD freeze on me with what I would think is sort of > an livelock.... > > While I was receiving zfs snapshots on my data pool. > > Top and systat just kept running, > but anything getting near a shell (and perhaps disk-io) ended up in: > > root@zfs.digiware.nl# gpart create -s gpt da6 > load: 0.00 cmd: csh 12393 [zfsvfs->z_teardown_inactive_lock] 26.12r > 0.00u 0.00s 0% 2480k > load: 0.10 cmd: csh 12393 [zfsvfs->z_teardown_inactive_lock] 96.01r > 0.00u 0.00s 0% 2480k > > Trying to execute to execute shutdown -r now had no effect what so ever. > Neither did the three-finger salute. > (Well at least not in 60 sec I was willing to wait.) > > Only way out of this situation was hard-reset. And I do have to > admit I like ZFS for the speed it recovers after unexpected reboot. > > To bad there was no alt-ctrl-backspace escape to debugger compiled > in. I'll do that with the next kernel, just in case. > > So the only data point I can give is the ^T output above. We don't know what FreeBSD version you're using (specifically uname -a output, since build date matters), but if it's RELENG_8 with ZFS v15, you might check out this thread (be sure to read Kai and I's diagnoses): http://lists.freebsd.org/pipermail/freebsd-fs/2010-October/009687.html I'm in the process of moving all of my machines, including my home server, over to gmirror. (Home machine started showing signs of serious ZFS performance degredation; mutt doing a stat() on 24 files and directories total taking literally 0.4 seconds on a dual-core machine. Makes no sense, doesn't happen with UFS2, I'm done.) -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |