Re: Memory leak in 2.6.11-rc1?

From: Martin Josefsson
Date: Thu Jan 27 2005 - 07:18:58 EST


On Thu, 27 Jan 2005, Andrew Morton wrote:

> Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:
> >
> > This mornings magic numbers are:
> >
> > 3
> > ip_dst_cache 1292 1485 256 15 1
>
> I just did a q-n-d test here: send one UDP frame to 1.1.1.1 up to
> 1.1.255.255. The ip_dst_cache grew to ~15k entries and grew no further.
> It's now gradually shrinking. So there doesn't appear to be a trivial
> bug..
>
> > Is no one interested in the fact that the DST cache is leaking and
> > eventually takes out machines? I've had virtually zero interest in
> > this problem so far.
>
> I guess we should find a way to make it happen faster.

I could be a refcount problem. I think Russell is using NAT, it could be
the MASQUERADE target if that is in use. A simple test would be to switch
to SNAT and try again if possible.

/Martin
-
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/