Many processes stuck in zfs

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Mar 10 11:02:11 UTC 2010


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+=-DDEBUG=1' 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.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100310/48c9f8d5/attachment.pgp


More information about the freebsd-stable mailing list