netdev
[Top] [All Lists]

Re: Memory leak in 2.6.11-rc1?

To: Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>
Subject: Re: Memory leak in 2.6.11-rc1?
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 12:33:26 -0800
Cc: Robert.Olsson@xxxxxxxxxxx, akpm@xxxxxxxx, torvalds@xxxxxxxx, alexn@xxxxxxxxx, kas@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20050127164918.C3036@xxxxxxxxxxxxxxxxxxxxxx>
References: <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> <16888.58622.376497.380197@xxxxxxxxxxxx> <20050127164918.C3036@xxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 27 Jan 2005 16:49:18 +0000
Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:

> notice how /proc/net/stat/rt_cache says there's 1336 entries in the
> route cache.  _Where_ are they?  They're not there according to
> /proc/net/rt_cache.

When the route cache is flushed, that kills a reference to each
entry in the routing cache.  If for some reason, other references
remain (route connected to socket, some leak in the stack somewhere)
the route cache entry can't be immediately completely freed up.

So they won't be listed in /proc/net/rt_cache (since they've been
removed from the lookup table) but they will be accounted for in
/proc/net/stat/rt_cache until the final release is done on the
routing cache object and it can be completely freed up.

Do you happen to be using IPV6 in any way by chance?

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