Tuning for router performance

David Schwartz davids at webmaster.com
Thu Apr 21 19:30:43 PDT 2005

> In article <MDEHLPKNGKAHNMBLJOLKEEKADDAB.davids at webmaster.com>,
> 	davids at webmaster.com ("David Schwartz") writes:
> >> options         HZ=1000         #for polling
> > That's too low. 2000 is the minimum you should consider.
> Having fixed my traffic generator, I'm now hitting ~220Kpps as limit
> before errors.


> > kern.random.sys.harvest.ethernet=0
> > kern.random.sys.hervest.interrupt=0
> Doesn't seem to make any real difference in my test.

	That's strange, maybe it's because in polling mode there aren't many

> > kern.ipc.nmbclusters="262144"
> > vm.kmem_size="536870912"
> > vm.kmem_size_max="536870912"
> These don't really make any difference, I'm guessing would only help
> larger packet sizes?

	The 'nmbclusters' change really only affects things if you have a lot of
local endpoints. And the kmem_size stuff only affects the case where you
have a lot of dummynet pipes or dynamic firewall rules. They're just part of
my typical router tuning because people often want these things as well.


More information about the freebsd-stable mailing list