lkml.org 
[lkml]   [2001]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VM tuning for Linux routers
Bernd Eckenfels wrote:
: Most important you can configure the
: kernel for large window sizes and advanced routing.

Advanced routing is a feature tuning, not a performance one, I think
(yes, I have advanced routing configured in - I use the "ip rule" mechanism
for simple filtering. It is faster than iptables, because it uses the
routing cache).

Large window sizes do matter only for TCP servers, not for
an IP router/firewall, I think. The only TCP my firewall does itself
is incoming ssh and outgoing smtp messages from my IDS.

: > However you can increase the length of the Rx/Tx rings on the 100Mb/s side
: > and tune the pci latency timers (depends on the hardware fifo size).
:
: Increasing rx/rx rings is not a particular good idea cause it slows down
: TCPs adaption to network congestion and router overload.

OK. I have the following:

/proc/sys/net/core/optmem_max 10240
/proc/sys/net/core/rmem_default 65535
/proc/sys/net/core/rmem_max 131071
/proc/sys/net/core/wmem_default 65535
/proc/sys/net/core/wmem_max 131071

I can surely increase rmem_max, wmem_max (and _default).
What is the optmem_max? What is the difference between [rw]mem_max
and _default?

-Yenya

--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Czech Linux Homepage: http://www.linux.cz/ |
#include <stdio.h>
int main(void) { printf("\t\b\b"); return 0; }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.044 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site