Tuning the FreeBSD kernel

maxusers=512
options NMBCLUSTERS=32768
options NO_MEMORY_HOLE
options NO_F00F_HACK
options MAXDSIZ=(256*1024*1024)
options DFLDSIZ=(256*1024*1024)
makeoptions COPTFLAGS="-O2 -pipe"
The following commands were added to /etc/rc.local:
/sbin/sysctl -w kern.maxfiles=16384
/sbin/sysctl -w kern.maxfilesperproc=16384