Re: [RFC] Limit the size of the IPV4 route hash.
From: David S. Miller
Date: Fri Dec 10 2004 - 14:56:30 EST
On Fri, 10 Dec 2004 13:00:25 -0600
Robin Holt <holt@xxxxxxx> wrote:
> I then did some testing/experimenting with systems that are in production,
> determined the size calculation is definitely too large and then came
> to the following conclusion:
>
> Limit the route hash size.
> http://marc.theaimsgroup.com/?l=linux-kernel&m=110260977405809&w=2
>
> In the second, I included the patch, but did not intend this to be a
> patch submission. Sorry for the Signed-off-by.
>
> Where do I go from here? I hate to just submit this as a patch without
> any other discussion.
Sometimes we have to just sit and be content with the fact that
nobody is inspired by our work enough to respond. :-) It usually
means that people aren't too thrilled with your patch, but don't
feel any impetus to mention why.
I can definitely say that just forcing it to use 1 page is wrong.
Even ignoring your tests, your test was on a system that has 16K
PAGE_SIZE. Other systems use 4K and 8K (and other) PAGE_SIZE
values. This is why we make our calculations relative to PAGE_SHIFT.
Also, 1 page even in your case is (assuming you are on a 64-bit platform,
you didn't mention) going to give us 1024 hash chains. A reasonably
busy web server will easily be talking to more than 1K unique hosts at
a given point in time. This is especially true as slow long distance
connections bunch up.
Alexey Kuznetsov needed to use more than one page on his lowly
i386 router in Russia, and this was circa 7 or 8 years ago.
People are pretty happy with the current algorithm, and in fact
most people ask us to increase it's value not decrease it :-)
-
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/