Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 15:39:32 +0100
From:      Julien Cigar <julien@perdition.city>
To:        freebsd-fs@FreeBSD.org
Subject:   nfsuserd + jails mbufs leak ?
Message-ID:  <20161231143932.GS15696@mordor.lan>

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

--6pbY/KU4ayLo+qis
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

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:

jcigar@HOST:~/ > mount|grep -i 'filer'
filer.prod.lan:/pictures/collections on
/usr/jails/www2/filer/pictures/collection (nfs, read-only, nfsv4acls)
filer.prod.lan:/webapps on /usr/jails/www2/filer/webapps (nfs,
nfsv4acls)
filer.prod.lan:/documents on /usr/jails/www2/filer/documents (nfs,
read-only, nfsv4acls)
filer.prod.lan:/apache on /usr/jails/www2/filer/apache (nfs, nfsv4acls)
filer.prod.lan:/geoserver on /usr/jails/java2/filer/geoserver (nfs,
nfsv4acls)

HOSTs and NFS server have vfs.nfsd.server_min_nfsvers=3D4
vfs.nfsd.server_max_nfsvers=3D4 (but it's probably not related to the
problem) and nfsuserd is runnings on each HOST (with no special
${nfsuserd_flags})

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=20
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:

[zone: mbuf] kern.ipc.nmbufs limit reached

=2E. and the HOST needs a reboot :(

If I'm stopping nfsuserd I don't see any mbuf leakage anymore

Any idea ? :)

Thanks,
Julien

--=20
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

--6pbY/KU4ayLo+qis
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE7vn2l0to0nV7EWolsrs3EKIEI8AFAlhnwyEACgkQsrs3EKIE
I8C2tQ//eLltljnBIZiCLHV5j99toF6UO/lmYINWxl5WVxG2UENSo0AVNHhW92b6
yZmwg/KG3EKoT8DShSe0LRg2LA2GSrDYk1x/s7szfdZo8Og5QtOvUaKGm6cpk/OK
XP4gNXrTWCiQsmRxUkdtvjsjqnXQ2UOjZ5Bbt0Q2yvpiMiV1tdYLYLIyRn0fu6Ag
60zcGKKfP1utI+kpD+QcplUEhyxAuDU/Ze2sOaTFvtlnmFkV2Gyt0/L43TWkQbUU
FMNiTreD4913U2hI5CSao7uDjtC6ZMQLp8vG+ktLfJllo7wU4DeIFo/T7rgdTO73
Rwg1Zc0JVGlvWuwgVHsB90QVMJ+NzsAxWTAvuelwxUeAzDzotm/fMvAdEmPUgODl
GnDJh3qISmfOotyQti3GZE7dEhsAzD9ULBAxFBs8u1OEsgRL/MFXNO9bEC8A0RLs
IhsvUEu8OkKickH/rWnuUD5+k60gJlj3DObniWDCRxCNR2iwCsmCBbl10uSfaI3C
EYbE+8oU6YdntnR12Fx4BHSgxPqOI4DZEuNXEKGynR40GFJKa5PrONJnUPxRf/Z1
NNdBsuAcTjvTDNPZpaMhp47dCafud/zMlNr1nlEheI0/NnKrzCB5THMq5ITORUIP
HSybirKOAktMzgUdGiIHBZvKV1zReNP3DjSbqvvzWxSza0ZFX/M=
=vAfY
-----END PGP SIGNATURE-----

--6pbY/KU4ayLo+qis--



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