From owner-freebsd-stable Tue Feb 29 12:32:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id EE7E637BCF6 for ; Tue, 29 Feb 2000 12:32:15 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <115215>; Wed, 1 Mar 2000 07:32:58 +1100 Content-return: prohibited From: Peter Jeremy Subject: Re: Tuning: FreeBSD as static router with 6 fast ethernet cards In-reply-to: <38BBA436.DF044D61@osi-technologies.com>; from lluisma@osi-technologies.com on Tue, Feb 29, 2000 at 09:52:42PM +1100 To: lluisma Cc: "freebsd-stable@FreeBSD.ORG" Message-Id: <00Mar1.073258est.115215@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <38BBA436.DF044D61@osi-technologies.com> Date: Wed, 1 Mar 2000 07:32:58 +1100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2000-Feb-29 21:52:42 +1100, lluisma 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