netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cpu optimalization settings in 2.6 and routing
@ 2004-05-29  5:25 Andre Tomt
  0 siblings, 0 replies; only message in thread
From: Andre Tomt @ 2004-05-29  5:25 UTC (permalink / raw)
  To: netdev

Hi!

I'm currently planning to do a sitewide deployment of Linux 2.6, and I'm 
taking the opportunity to clean up the kernel build setup we use at the 
same time.

The goal is to get the number of kernel images down to a minimum. 
Question is: Does the cpu optimalization settings in kernel affect 
routing cache, interrupt overhead and conntracking? How much?


Our 2.4 setup currently goes like this:

Three "base configurations" - server, router, natrouter. Everything we 
use as modules (where possible), using initrd to get boot-critical 
drivers up, no kmod.

with the server profile beeing the base;
router    = server - highmem
natrouter = router + nat + packet mangling + advanced routing (policy 
routing)

Reasoning behing this is that NAT makes the conntrack structures in 
memory bloat a lot per tracked connection. Policy routing I think also 
bloats the routing structures. All this can be critical on routers and 
servers that run their own local firewalling, especially under attack.

from theese three configurations, a kernel-image package for each of the 
cpu types of "i586", "p3", "k7", "p4" and "p4smp" is generated.

Current battle plan is to cut the base configurations down to "standard" 
and "natrouter". Ordinary routers have to do with the standard profile, 
as we expect to gain more just by running 2.6 than what we would have 
lost with adding highmem. KISS beeing the main driving factor.

So far, so good.

Then to drop the per cpu type images. The plan here is to just have 
CONFIG_M586 + CONFIG_X86_GENERIC. One with SMP/HT, one without. ie 
"i586" and "i586smp".

For servers, thats probably just fine.  They spend most of their time in 
userspace anyway. And they gain on things like NPTL. But then there is 
the routers. They spend 99.9% of their time in kernel space.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-29  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-29  5:25 cpu optimalization settings in 2.6 and routing Andre Tomt

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