From owner-freebsd-fs@FreeBSD.ORG Tue Oct 12 16:06:56 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58C78106564A for ; Tue, 12 Oct 2010 16:06:56 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 02E4C8FC1A for ; Tue, 12 Oct 2010 16:06:55 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 9F86D45DD8; Tue, 12 Oct 2010 17:37:27 +0200 (CEST) Received: from localhost (chello089073192049.chello.pl [89.73.192.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 6867D45C9C; Tue, 12 Oct 2010 17:37:21 +0200 (CEST) Date: Tue, 12 Oct 2010 17:36:54 +0200 From: Pawel Jakub Dawidek To: Willem Jan Withagen Message-ID: <20101012153654.GC2197@garage.freebsd.pl> References: <4CB1DD0F.6000209@digiware.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AH+kv8CCoFf6qPuz" Content-Disposition: inline In-Reply-To: <4CB1DD0F.6000209@digiware.nl> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: 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: Tue, 12 Oct 2010 16:06:56 -0000 --AH+kv8CCoFf6qPuz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 10, 2010 at 05:34:39PM +0200, Willem Jan Withagen wrote: > Hi, >=20 > Just had my FreeBSD freeze on me with what I would think is sort of an=20 > livelock.... >=20 > While I was receiving zfs snapshots on my data pool. >=20 > Top and systat just kept running, > but anything getting near a shell (and perhaps disk-io) ended up in: >=20 > root@zfs.digiware.nl# gpart create -s gpt da6 > load: 0.00 cmd: csh 12393 [zfsvfs->z_teardown_inactive_lock] 26.12r=20 > 0.00u 0.00s 0% 2480k > load: 0.10 cmd: csh 12393 [zfsvfs->z_teardown_inactive_lock] 96.01r=20 > 0.00u 0.00s 0% 2480k >=20 > 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.) >=20 > Only way out of this situation was hard-reset. And I do have to admit I= =20 > like ZFS for the speed it recovers after unexpected reboot. >=20 > To bad there was no alt-ctrl-backspace escape to debugger compiled in.=20 > I'll do that with the next kernel, just in case. >=20 > So the only data point I can give is the ^T output above. Maybe you still be able to provide backtraces for all processes with 'procstat -kk'? It looks like a deadlock related to 'zfs recv' or maybe unmounting? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --AH+kv8CCoFf6qPuz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAky0gJYACgkQForvXbEpPzS1ZACcCYlCU1FDvjh2CwisjKooP8Fw knsAn0WiZ5k+UQ1rHplkAJ22lq5J8GlA =cCrM -----END PGP SIGNATURE----- --AH+kv8CCoFf6qPuz--