netdev
[Top] [All Lists]

Re: Memory leak in 2.6.11-rc1?

To: Andrew Morton <akpm@xxxxxxxx>
Subject: Re: Memory leak in 2.6.11-rc1?
From: Alessandro Suardi <alessandro.suardi@xxxxxxxxx>
Date: Thu, 27 Jan 2005 11:19:20 +0100
Cc: Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>, torvalds@xxxxxxxx, alexn@xxxxxxxxx, kas@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XxtsXyn2hZ64fU+rtVtBR20OmItGRtYabXx5vIXDukwC0kr55QW131ekUY14XIr9gkx9JgRTto0KjksuM1B2yYd95adlWYIetRx0v5x2hFCWPL6NCycKl2/8XNwix+7hJEJ7ONmckrii8SiJ7dvSk8yb8uCsslFmTEX6QBK7j4E=
In-reply-to: <20050127004732.5d8e3f62.akpm@xxxxxxxx>
References: <20050121161959.GO3922@xxxxxxxxxx> <20050123091154.GC16648@xxxxxxx> <20050123011918.295db8e8.akpm@xxxxxxxx> <20050123095608.GD16648@xxxxxxx> <20050123023248.263daca9.akpm@xxxxxxxx> <20050123200315.A25351@xxxxxxxxxxxxxxxxxxxxxx> <20050124114853.A16971@xxxxxxxxxxxxxxxxxxxxxx> <20050125193207.B30094@xxxxxxxxxxxxxxxxxxxxxx> <20050127082809.A20510@xxxxxxxxxxxxxxxxxxxxxx> <20050127004732.5d8e3f62.akpm@xxxxxxxx>
Reply-to: Alessandro Suardi <alessandro.suardi@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 27 Jan 2005 00:47:32 -0800, Andrew Morton <akpm@xxxxxxxx> 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.
> -
> 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/
> 

Data point... on my box, used as ed2k/bittorrent
 machine, the ip_dst_cache grows and shrinks quite
 fast; these two samples were ~3 minutes apart:


[root@donkey ~]# grep ip_dst /proc/slabinfo
ip_dst_cache         998   1005    256   15    1 : tunables  120   60 
  0 : slabdata     67     67      0
[root@donkey ~]# wc -l /proc/net/rt_cache
926 /proc/net/rt_cache

[root@donkey ~]# grep ip_dst /proc/slabinfo
ip_dst_cache         466    795    256   15    1 : tunables  120   60 
  0 : slabdata     53     53      0
[root@donkey ~]# wc -l /proc/net/rt_cache
443 /proc/net/rt_cache

 and these were 2 seconds apart

[root@donkey ~]# wc -l /proc/net/rt_cache
737 /proc/net/rt_cache
[root@donkey ~]# grep ip_dst /proc/slabinfo
ip_dst_cache         795    795    256   15    1 : tunables  120   60 
  0 : slabdata     53     53      0

[root@donkey ~]# wc -l /proc/net/rt_cache
1023 /proc/net/rt_cache
[root@donkey ~]# grep ip_dst /proc/slabinfo
ip_dst_cache        1035   1035    256   15    1 : tunables  120   60 
  0 : slabdata     69     69      0

--alessandro
 
  "And every dream, every, is just a dream after all"
 
     (Heather Nova, "Paper Cup")

<Prev in Thread] Current Thread [Next in Thread>