Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Horman
Date: Tuesday, May 19, 2009 - 9:20 am

On Tue, May 19, 2009 at 05:32:29PM +0200, Eric Dumazet wrote:

I was thinking something along these lines (also completely untested).  The
extra check in rt_intern hash prevents us from identifying a 'group leader' that
is about to be deleted, and sets rthi to point at the group leader rather than
the last entry in the group as it previously did, which we then mark with the
new flag in the dst_entry (updating it on rt_free of course).  This lets us
identify the boundaries of a group, so when we do a move to front heruistic, we
can move the entire group rather than just the single entry.    I prefer this to
Erics approach since, even though rt_check_expire isn't in a performance
critical path, the addition of the extra list search when the list is unordered
makes rt_check_expire run in O(n^2) rather than O(n), which I think will have a
significant impact on high traffic systems.  Since the ordered list creation was
done at almost zero performance cost in rt_intern_hash, I'd like to keep it if
at all possible.

There is of course a shortcomming in my patch in that it doesn't actually do
anything currently with DST_GRPLDR other than set/clear it appropriately, I've
yet to identify where the route cache move to front heruistic is implemented.
If someone could show me where that is, I'd be happy to finish this patch.

Neil

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Stephen Hemminger, (Mon May 18, 7:35 pm)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 5:34 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 8:12 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Eric Dumazet, (Tue May 19, 8:32 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 9:20 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 9:23 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 10:17 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 10:22 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 10:45 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 10:47 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 10:53 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Jarek Poplawski, (Tue May 19, 11:05 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 11:16 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Eric Dumazet, (Tue May 19, 11:47 am)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 12:24 pm)
Re: [Bug 13339] New: rtable leak in ipv4/route.c, David Miller, (Tue May 19, 3:05 pm)
Re: [Bug 13339] New: rtable leak in ipv4/route.c, Neil Horman, (Tue May 19, 4:05 pm)
[PATCH] net: fix rtable leak in net/ipv4/route.c, Eric Dumazet, (Tue May 19, 11:14 pm)
Re: Fw: [Bug 13339] New: rtable leak in ipv4/route.c, Alexander V. Lukyanov, (Tue May 19, 11:36 pm)
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c, Jarek Poplawski, (Wed May 20, 3:03 am)
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c, Neil Horman, (Wed May 20, 3:48 am)
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c, Eric Dumazet, (Wed May 20, 4:13 am)
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c, Jarek Poplawski, (Wed May 20, 4:37 am)
Re: [PATCH] net: fix rtable leak in net/ipv4/route.c, David Miller, (Wed May 20, 5:19 pm)