Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 17:02:05 +0200
From:      Peter Maloney <peter.maloney@brockmann-consult.de>
To:        freebsd-fs@freebsd.org
Subject:   Re: ZFS deadlock
Message-ID:  <500AC46D.309@brockmann-consult.de>
In-Reply-To: <500A9787.5060109@ugcs.caltech.edu>
References:  <500A9787.5060109@ugcs.caltech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
I've had the same thing happen. It only happens with Linux clients. My
workaround is to mount an empty directory on top of .zfs. I submitted a
PR about it also. And I can't reproduce it on other machines, including
the replicated backup server with all the same snapshots. It only
happens on the one production machine, possibly because it has more nfs
clients active than what I created for my tests.

Here's my forum thread:
http://forums.freebsd.org/showthread.php?t=29648

Here's my PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/168947


On 07/21/2012 01:50 PM, Rafi Rubin wrote:
> I have a small server with a mirrored pair of hard drives that handles
> generally light loads for a number of linux machines over nfs v3.
>
> I've been seeing some deadlocks (and possibly worse) lately.  I've
> narrowed
> down the freezing to a simple test run simultaneously on a number of the
> client machines:
>
> mount host:/food/bar
> ls bar/.zfs/snapshot
>
> When I do that, all the client machines hang on any access to the
> server.  On
> the server, only the volume "bar" hangs, the rest are fine.
>
> This occurs even when there is no other load on the server.  Also, after
> rebooting the server, the client machines eventually complete the ls and
> behave normally.
>
>
> I think this doesn't happen if the directory is cached, either in
> memory or on
> an L2 ssd, but I need to rerun some tests.
>
> For now the machine seems to be stable with nfsd limited to a single
> thread.
>
>
> Any help debugging would be appreciated,
> Rafi
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"





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