Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2000 07:32:58 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        lluisma <lluisma@osi-technologies.com>
Cc:        "freebsd-stable@FreeBSD.ORG" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Tuning: FreeBSD as static router with 6 fast ethernet cards
Message-ID:  <00Mar1.073258est.115215@border.alcanet.com.au>
In-Reply-To: <38BBA436.DF044D61@osi-technologies.com>; from lluisma@osi-technologies.com on Tue, Feb 29, 2000 at 09:52:42PM %2B1100
References:  <38BBA436.DF044D61@osi-technologies.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-Feb-29 21:52:42 +1100, lluisma <lluisma@osi-technologies.com> wrote:
>I have this opportunity to use freebsd as a router serving 15 subnets
...

>Is there any special tuning I can do to maximize routing
>performance under the above setup?

I can't think of any.

> Should I increase values for bpfilter and maxusers?

I'm not sure whether ipfilter uses bpfilter to get at the packets.
If it does, you'll need to increase it to at least 6 (and it will be
handy to have a few spares so you can use tcpdump).

If you'll have all 1200 PCs simultaneously logged into SAMBA, you'll
need to increase maxusers to about 80 (which gives you 1300 processes,
1792 mbuf clusters and 2600 files).  You'll definitely need to
increase NMBCLUSTERS, and maybe MAXFILES.

> What kernel options should I focus on?

Set NMBCLUSTERS fairly high (say around 4000) and monitor the usage
with "netstat -m".  Make sure the max mbuf clusters (set via
NMBCLUSTERS) is around 50% above the peak usage.  Very nasty things
happen when you run out of mbuf clusters.

Keep an eye on the number of open files (with "pstat -T") and increase
MAXFILES if it looks like you're running short.

Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00Mar1.073258est.115215>