Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 22:01:17 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Julien Cigar <julien@perdition.city>, "freebsd-fs@FreeBSD.org" <freebsd-fs@FreeBSD.org>
Subject:   Re: nfsuserd + jails mbufs leak ?
Message-ID:  <YTXPR01MB01893D4BC0D1EDD34AB45846DD6D0@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <20161231143932.GS15696@mordor.lan>
References:  <20161231143932.GS15696@mordor.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
Julien Cigar wrote:
>I just upgraded a bunch of machines from 10.0 to 10.3. Those machines
>have a lot of jails with NFS shares (mounted on the HOST), for example:
[stuff snipped]
>On the hosts since I upgraded to 10.3 I'm seeing tons of:
>Dec 31 14:29:33 duvel nfsuserd:[675]: req from ip=3D0xc0a80a21 port=3D618
>
>It is not clear to me yet why I'm getting this, but from what I
>understand it's because requests are not coming from 127.0.0.1 but from
>the jail ip (192.168.10.x in my case).. Parallel to this I'm observing a
>constant increase of mbufs usage so that at some point in time I'm
>getting an exhaustion of mbufs:
Yes, nfsuserd only accepts upcalls from 127.0.0.1 (about the only time a
reserved port# actually means anything).
As such, it doesn't work when you have jails.
I came up with a patch that switched nfsuserd to using AF_LOCAL, but the
person testing this at the time had hangs, so I never committed it to head,=
 etc.
(I don't know what the mbuf leak is, but since it is busted and useless, I =
don't
 think fixing the leak is necessary.;-)

Your choices are:
1 - As you mentioned, don't run nfsuserd. If you are using FreeBSD and/or L=
inux
     clients, this should work once you set vfs.nfsd.enablestringtouid (or =
whatever
     it is called) to 1.
2 - I had a patch that added an option to nfsuserd that allowed specificati=
on of
     a different ip address (unfortunately, I don't have this old patch han=
dy, but
     might be able to find it at the end of this week. Email if you want me=
 to find it.)

rick



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