mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan Kasprzak <kas@informatics.muni.cz>
To: Bernd Eckenfels <ecki@lina.inka.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: VM tuning for Linux routers
Date: Thu, 22 Nov 2001 09:23:00 +0100	[thread overview]
Message-ID: <20011122092300.D2421@informatics.muni.cz> (raw)
In-Reply-To: <20011117134127.A8041@se1.cogenit.fr> <E1658YH-0008Jp-00@calista.inka.de>
In-Reply-To: <E1658YH-0008Jp-00@calista.inka.de>; from ecki@lina.inka.de on Sat, Nov 17, 2001 at 05:42:45PM +0100

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; }

      parent reply	other threads:[~2001-11-22  8:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-16  8:03 Jan Kasprzak
2001-11-17 12:41 ` Francois Romieu
2001-11-17 16:42   ` Bernd Eckenfels
2001-11-18 13:54     ` Francois Romieu
2001-11-20  3:29       ` Bernd Eckenfels
2001-11-20 18:58         ` Francois Romieu
2001-11-20 20:35       ` Bernd Eckenfels
2001-11-20 21:47         ` Francois Romieu
2001-11-22  8:23     ` Jan Kasprzak [this message]

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=20011122092300.D2421@informatics.muni.cz \
    --to=kas@informatics.muni.cz \
    --cc=ecki@lina.inka.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®