Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2005 19:47:12 -0700
From:      "David Schwartz" <davids@webmaster.com>
To:        <freebsd-stable@freebsd.org>
Subject:   RE: Tuning for router performance
Message-ID:  <MDEHLPKNGKAHNMBLJOLKEEKADDAB.davids@webmaster.com>
In-Reply-To: <68248.1113779741@xciv.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> I'm starting to hit errors at 150Kpps.

	I'm not sure why you're hitting errors at that speed. But here are a few
suggestions:

> options         DEVICE_POLLING  #network device mixed
> interrupt-polling handling
> options         HZ=1000         #for polling

	That's too low. 2000 is the minimum you should consider. See below for how
to tune this in /boot/loader.conf.

> /etc/sysctl.conf:
> kern.polling.enable=1
> net.inet.ip.forwarding=1
> net.inet.ip.fastforwarding=1

	You probably want:

kern.random.sys.harvest.ethernet=0
kern.random.sys.hervest.interrupt=0

> Does anyone have any suggestions?

	In /boot/loader.conf, consider:

kern.ipc.nmbclusters="262144"
kern.hz="2000"
vm.kmem_size="536870912"
vm.kmem_size_max="536870912"

	What are your current values for vm.kmem_size and vm.kmem_size_max?

	DS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MDEHLPKNGKAHNMBLJOLKEEKADDAB.davids>