Freebsd Performance Tuning

Hi,

There any tricks out there for tuning FreeBSD to run unbound doing around 20k+ qps

Machine will have 4 Cpu’s and 8GB Ram

Cheers,

Gareth

Zitat von Gareth Hopkins <gabbawp@gmail.com>:

Hi,

There any tricks out there for tuning FreeBSD to run unbound doing around
20k+ qps

Machine will have 4 Cpu's and 8GB Ram

As starting point
http://www.unbound.net/documentation/howto_optimise.html

Also have a look at the follwoing points:
- Check if firewall is enabled and if it supports many UDP "connections"
- Check for the send/receive buffer max values for the OS
- Check the max sockets/file descriptors of the OS

Be aware that using unbound as *validating* resolver can slow down a lot due to more queries and higher computing overhead.

Regards

Andreas

Hi Andreas

Thanks for the reply.

The unbound config is pretty much spot on and ready to go. I’m just looking for the OS tweaking bits,
so things like, as you mention, max sockets and file descriptors, and what would be considered decent
values.

Cheers,

Gareth

Zitat von Gareth Hopkins <gabbawp@gmail.com>:

If you're doing 20k qps you should look into network device polling. See
man 4 polling for details.

Also you may want to increase sysctl net.inet.udp.recvspace.

See also tuning(7) and ifconfig(8).

Tony.