netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Limit the size of the IPV4 route hash.
@ 2004-12-10 19:00 Robin Holt
  2004-12-10 19:48 ` David S. Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Robin Holt @ 2004-12-10 19:00 UTC (permalink / raw)
  To: yoshfuji, akpm, hirofumi, davem, torvalds, dipankar, laforge,
	bunk, herbert, paulmck
  Cc: netdev, linux-kernel, ^Greg Banks


I have sent a couple emails concerning the IPv4 route hash size in the
past week with no response.  I am now sending to everyone that has made
changes to the net/ipv4/route.c file in the last six months to hopefully
get some direction.  Sorry for the wide net, but I do not know how to
proceed.

The first post was asking for direction on the maximum size for the
route cache.  The link is here:  (NOTE: I never saw this come back from
the netdev list)

What is a reasonable upper limit to the rt_hash_table.
http://marc.theaimsgroup.com/?l=linux-kernel&m=110244057617765&w=2

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.  I have checked route cache size on many machines
and they have all been in the 30-100 range except for some on ISP machines
that are serving web pages where I have seen three machines with a cache
size of up to 800 entries.  And one university email server where they
have set the secret_interval to 86,400 which has peaked at 18,434 entries.

With those sizes noted, the cache size of one page does not appear to
have any negative impact for any except the email server.  For that
machine, they have already reviewed the code and decided to adjust
tunable values so I can not believe they would be upset with having to
provide an rhash_entries= append on the boot line.

Are there any benchmarks I am supposed to run prior to asking for this
patch to be incorporated?

Any guidance would be greatly appreciated.  Thank you for you attention.
Again, sorry for the wide net.

Robin Holt

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-12-13  0:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-10 19:00 [RFC] Limit the size of the IPV4 route hash Robin Holt
2004-12-10 19:48 ` David S. Miller
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

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).