All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Kernel Settings
@ 2004-03-19 15:06 Michael Peppard
  2004-03-19 15:28 ` Jeroen Vriesman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Peppard @ 2004-03-19 15:06 UTC (permalink / raw)
  To: lartc

No problems and no issues, but a question this list would probably best
answer.

Does anyone have a link/book they like that gives some advice on kernel
parameters specifically for a router. It's kernel 2.4.

I have a Sangoma with dual T1's (ppp /w tc load balancing) running wanpipe.
The machine is pretty darn good (dual-hyper-threaded-Xenon-and-4
Gig-of-ram-and-mirrored-serial-drives etc etc).  I'm embarrassed admitting I
have such a nice machine working as a leaf router... and only in forward
mode too.

Obviously I know a little about iproute2, firewalling and how to compile a
kernel, or it wouldn't work. A link that would let me actually use some of
the machines capabilities though would be helpful.  Kernel tweaks to use the
memory better... You probably know better than me.

I appreciate your expertise and assistance!

-Mike


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Kernel Settings
  2004-03-19 15:06 [LARTC] Kernel Settings Michael Peppard
@ 2004-03-19 15:28 ` Jeroen Vriesman
  2004-03-19 16:28 ` Roy
  2004-03-19 17:08 ` Daniel Chemko
  2 siblings, 0 replies; 4+ messages in thread
From: Jeroen Vriesman @ 2004-03-19 15:28 UTC (permalink / raw)
  To: lartc

Hi,

high speed traffic shaping works much more accurate if you set:
CONFIG_HZP0  in /usr/src/linux/.config

And in /usr/src/linux/include/net/pkt_sched.h
#define PSCHED_CLOCK_SOURCE     PSCHED_CPU

Accourding to my experience, the above settings improve high speed network stuff enormously.

About memory allocation:
When using huge netfilter configuration (> 30000 lines), there seems to be a possible "unable to allocate memory" issue, I think it might be caused by kmalloc trying to allocate a continuous region.
I'm not sure about it, but if this is the case it could be solved by using vmalloc in stead of kmalloc.

Any comments from anyone here about the malloc stuff?

Good luck,
Jeroen.






On Fri, 19 Mar 2004 10:06:32 -0500
"Michael Peppard" <mpeppard@impole.com> wrote:

> No problems and no issues, but a question this list would probably best
> answer.
> 
> Does anyone have a link/book they like that gives some advice on kernel
> parameters specifically for a router. It's kernel 2.4.
> 
> I have a Sangoma with dual T1's (ppp /w tc load balancing) running wanpipe.
> The machine is pretty darn good (dual-hyper-threaded-Xenon-and-4
> Gig-of-ram-and-mirrored-serial-drives etc etc).  I'm embarrassed admitting I
> have such a nice machine working as a leaf router... and only in forward
> mode too.
> 
> Obviously I know a little about iproute2, firewalling and how to compile a
> kernel, or it wouldn't work. A link that would let me actually use some of
> the machines capabilities though would be helpful.  Kernel tweaks to use the
> memory better... You probably know better than me.
> 
> I appreciate your expertise and assistance!
> 
> -Mike
> 
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Kernel Settings
  2004-03-19 15:06 [LARTC] Kernel Settings Michael Peppard
  2004-03-19 15:28 ` Jeroen Vriesman
@ 2004-03-19 16:28 ` Roy
  2004-03-19 17:08 ` Daniel Chemko
  2 siblings, 0 replies; 4+ messages in thread
From: Roy @ 2004-03-19 16:28 UTC (permalink / raw)
  To: lartc

It will not be easy to use all power of such computer.

You may install squid and do transparent caching,
also you can install xvnc server and use it as desktop computer.
usefull to download something with amule, and other very big files ower
night.

anyway all such job can be done with PII 350mhz and 128mb of ram


there is nothing to tweak in kernel I suppose you already compiled multiple
cpu support.



----- Original Message ----- 
From: "Michael Peppard" <mpeppard@impole.com>
To: <lartc@mailman.ds9a.nl>
Sent: Friday, March 19, 2004 5:06 PM
Subject: [LARTC] Kernel Settings


> No problems and no issues, but a question this list would
> probably best
> answer.
>
> Does anyone have a link/book they like that gives some advice on kernel
> parameters specifically for a router. It's kernel 2.4.
>
> I have a Sangoma with dual T1's (ppp /w tc load balancing) running
wanpipe.
> The machine is pretty darn good (dual-hyper-threaded-Xenon-and-4
> Gig-of-ram-and-mirrored-serial-drives etc etc).  I'm embarrassed admitting
I
> have such a nice machine working as a leaf router... and only in forward
> mode too.
>
> Obviously I know a little about iproute2, firewalling and how to compile a
> kernel, or it wouldn't work. A link that would let me actually use some of
> the machines capabilities though would be helpful.  Kernel tweaks to use
the
> memory better... You probably know better than me.
>
> I appreciate your expertise and assistance!
>
> -Mike
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* RE: [LARTC] Kernel Settings
  2004-03-19 15:06 [LARTC] Kernel Settings Michael Peppard
  2004-03-19 15:28 ` Jeroen Vriesman
  2004-03-19 16:28 ` Roy
@ 2004-03-19 17:08 ` Daniel Chemko
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Chemko @ 2004-03-19 17:08 UTC (permalink / raw)
  To: lartc

It may be fixed with newer kernels, but just in case it isn't, disable
your page file. At some points, my Oracle servers running RH AS 2.1 went
absolutely dark for hours.. Damn kswapd!

By default the system will use the memory for disk caching and buffer
caching. In your case, if there isn't much traffic, then reallocate it!
Put it on your desktop if its not too noisy. If you keep it as the
firewall, you can at least say that it was cheaper than a Cisco :-)

I'm sure there are many more ways to enjoy your excessive hardware
purchase in different ways. Just use your imagination and it WILL
happen.


Michael Peppard wrote:
> No problems and no issues, but a question this list would probably
> best answer. 
> 
> Does anyone have a link/book they like that gives some advice on
> kernel parameters specifically for a router. It's kernel 2.4. 
> 
> I have a Sangoma with dual T1's (ppp /w tc load balancing) running
> wanpipe. The machine is pretty darn good
> (dual-hyper-threaded-Xenon-and-4
> Gig-of-ram-and-mirrored-serial-drives etc etc).  I'm embarrassed
> admitting I have such a nice machine working as a leaf router... and
> only in forward mode too.     
> 
> Obviously I know a little about iproute2, firewalling and how to
> compile a kernel, or it wouldn't work. A link that would let me
> actually use some of the machines capabilities though would be
> helpful.  Kernel tweaks to use the memory better... You probably know
> better than me.    
> 
> I appreciate your expertise and assistance!
> 
> -Mike
> 
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
> http://lartc.org/  
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-03-19 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-19 15:06 [LARTC] Kernel Settings Michael Peppard
2004-03-19 15:28 ` Jeroen Vriesman
2004-03-19 16:28 ` Roy
2004-03-19 17:08 ` Daniel Chemko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.