From: "David S. Miller" <davem@davemloft.net>
To: Robin Holt <holt@sgi.com>
Cc: yoshfuji@linux-ipv6.org, akpm@osdl.org, hirofumi@parknet.co.jp,
torvalds@osdl.org, dipankar@ibm.com, laforge@gnumonks.org,
bunk@stusta.de, herbert@apana.org.au, paulmck@ibm.com,
netdev@oss.sgi.com, linux-kernel@vger.kernel.org, gnb@sgi.com
Subject: Re: [RFC] Limit the size of the IPV4 route hash.
Date: Fri, 10 Dec 2004 11:48:29 -0800 [thread overview]
Message-ID: <20041210114829.034e02eb.davem@davemloft.net> (raw)
In-Reply-To: <20041210190025.GA21116@lnx-holt.americas.sgi.com>
On Fri, 10 Dec 2004 13:00:25 -0600
Robin Holt <holt@sgi.com> 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 :-)
next prev parent reply other threads:[~2004-12-10 19:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 19:00 [RFC] Limit the size of the IPV4 route hash Robin Holt
2004-12-10 19:48 ` David S. Miller [this message]
2004-12-10 21:00 ` Robin Holt
2004-12-10 21:06 ` David S. Miller
2004-12-10 21:09 ` Andrew Morton
2004-12-10 23:27 ` Robin Holt
2004-12-10 23:38 ` Andrew Morton
2004-12-10 23:37 ` Robin Holt
2004-12-10 23:40 ` Robin Holt
2004-12-13 0:55 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041210114829.034e02eb.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=dipankar@ibm.com \
--cc=gnb@sgi.com \
--cc=herbert@apana.org.au \
--cc=hirofumi@parknet.co.jp \
--cc=holt@sgi.com \
--cc=laforge@gnumonks.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=paulmck@ibm.com \
--cc=torvalds@osdl.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).