Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 10:34:34 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Rong-en Fan <grafan@gmail.com>
Cc:        stable@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: NFS locking question
Message-ID:  <20060815143434.GA72813@xor.obsecurity.org>
In-Reply-To: <6eb82e0608150449p3320b5eeu2b731fec42de9218@mail.gmail.com>
References:  <20060228101453.GB47953@hugo10.ka.punkt.de> <20060228102150.GA56625@xor.obsecurity.org> <20060815095950.GD34840@freenix.no> <20060815101114.GA51674@xor.obsecurity.org> <6eb82e0608150449p3320b5eeu2b731fec42de9218@mail.gmail.com>

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

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 15, 2006 at 07:49:10PM +0800, Rong-en Fan wrote:
> On 8/15/06, Kris Kennaway <kris@obsecurity.org> wrote:
> >On Tue, Aug 15, 2006 at 11:59:50AM +0200, Morten A. Middelthon wrote:
> >> On Tue, Feb 28, 2006 at 05:21:50AM -0500, Kris Kennaway wrote:
> >> > On Tue, Feb 28, 2006 at 11:14:53AM +0100, Patrick M. Hausen wrote:
> >> > > Hi, all!
> >> > >
> >> > > In our local office network we have a rather old FreeBSD 5.2.1
> >> > > server acting as an NFS server for several other systems, mostly
> >> > > running 6.0.
> >> > >
> >> > > >From time to time we experience processes on the NFS clients
> >> > > hanging in statd "D" with wchan "lockd" when accessing files
> >> > > over NFS.
> >> >
> >> > Try the attached patch on the 6.0 machines:
> >> >
> >> > Index: usr.sbin/rpc.lockd/lock_proc.c
> >> <snip>
> >>
> >> Hi,
> >>
> >> I have been plagued with this NFS lockd issue for quite some time now.=
=20
> >It has
> >> kept me from installing FreeBSD 6.x on our workstations at work. I jus=
t=20
> >tried
> >> applying your patch to my own 6.1-RELEASE-p3 workstation, and so far i=
t=20
> >has
> >> been working nicely. Has anyone else had the same experience? If so,=
=20
> >maybe it
> >> should go into production?
> >
> >I was unable to obtain confirmation from anyone else (including the
> >submitter who previously claimed it was necessary, and my own testing)
> >that the patch actually solved a problem.  Since it involves reverting
> >useful functionality, someone would need to obtain further debugging
> >from your system (tcpdump traces before/after, etc) to determine what
> >it's actually solving.
> >
> >Kris
>=20
> In my experiences, rpc.lockd dies automatically on both server and
> client. If this happens, then all processes that want to lock a file, they
> will be stuck in lockd (top will tell). In my case, rpc.lockd dies because
> write failed, and then a SIGPIPE generated. Two months ago, bin/97768
> is sent and rodrigc@ committed (also MFC'ed in RELENG_6). That PR
> ignores SIGPIPE (since the code in server/client already takes care of
> write failed case). After I applied this PR, I'm quite happy with nfs=20
> locking.

That's good to hear, but there are many other fundamental problems
with the current rpc.lockd implementation in various situations, which
can probably only be solved by a substantial rewrite.

Kris


--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFE4dt6Wry0BWjoQKURAu7oAJ9TL1YTJeZtrJnjydbeyHyfZqRJBwCfQ57O
+sp7Tx8a0u2R3t268wH3tEs=
=43WN
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--



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