Re: 2.6.0: something is leaking memory

From: Erik Hensema
Date: Mon Jan 05 2004 - 13:18:43 EST


On Mon, Jan 05, 2004 at 11:18:52AM -0500, Ricky Beam wrote:
> On 4 Jan 2004, Roland Dreier wrote:
> >Yup, looks like IPv6 is leaking memory (since your netstat shows
> >nowhere near 19K sockets):
> >
> > > tcp6_sock 19729 19732 1024 4 1 : tunables 54 27 0 : slabdata 4933 4933 0
> >
> >Now to figure out why...
>
> Of course, there are a lot of sockets in CLOSE_WAIT. That's where I'd
> start looking... if I actually cared about IPv6 :-) There used to be the
> same sort of problem for IPv4 (sockets would never go away), but no one
> ever fixed it -- a rewrite of the network stack made it go away.

Those sockets in CLOSE_WAIT state are due to a filedescriptor leak in nscd
(or nss_ldap), which is a userspace problem.
It does however make the leak in kernelspace more visible it seems.
--
Erik Hensema (erik@xxxxxxxxxxx)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/