Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 12:02:02 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Borja Marcos <borjam@sarenet.es>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>, Stefan Bethke <stb@lassitu.de>
Subject:   Re: Many processes stuck in zfs
Message-ID:  <20100310110202.GA1715@garage.freebsd.pl>
In-Reply-To: <BFF1E2D6-B48A-4A5E-ACEE-8577FDB07820@sarenet.es>
References:  <864468D4-DCE9-493B-9280-00E5FAB2A05C@lassitu.de> <20100309122954.GE3155@garage.freebsd.pl> <EC9BC6B4-8D0E-4FE3-852F-0E3A24569D33@sarenet.es> <20100309125815.GF3155@garage.freebsd.pl> <CB854F58-03AF-46DD-8153-85FA96037C21@sarenet.es> <BFF1E2D6-B48A-4A5E-ACEE-8577FDB07820@sarenet.es>

next in thread | previous in thread | raw e-mail | index | archive | help

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 10, 2010 at 10:24:49AM +0100, Borja Marcos wrote:
> Tested. Same deadlock remains.

Ok, to track this down I need the following:

Uncomment 'CFLAGS+=3D-DDEBUG=3D1' line in sys/modules/zfs/Makefile.

Add the following lines to your kernel config:

	options 	WITNESS
	options 	WITNESS_SKIPSPIN
	options 	INVARIANTS
	options 	INVARIANT_SUPPORT
	options 	DEBUG_VFS_LOCKS
	options 	DEBUG_LOCKS
	options 	KDB
	options 	DDB

Recompile your kernel and modules and reboot.

Once the deadlock occur, enter DDB and send me the output of:

	ps
	show alllocks
	show lockedvnods
	show allchains
	alltrace

Thanks.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkuXfCoACgkQForvXbEpPzRhqQCg0UXbWyt1zs9AGxPJGgU5Dg2m
mTAAoPcK3HVV1pG4nEGGiMtm9dLgzAbR
=lVA9
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100310110202.GA1715>