Tuning for router performance
David Schwartz
davids at webmaster.com
Sun Apr 17 19:47:55 PDT 2005
> 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
More information about the freebsd-stable
mailing list