在 stable mailing 有一篇 “Tuning for router performance“,裡面題到了拿 em(4) 還有 5.3 來當 router,有提到一些調法:
- if_em.h: EM_TIDV, EM_MAX_TXD, EM_MAX_RXD
- kern.random.sys.harvest.ethernet=0
- kern.random.sys.hervest.interrupt=0
- net.inet.ip.fastforwarding=1 (netinet/ip_fastfwd.c)
- net.ipc.nmbcluster 262144 ?!
- vm.kmem_size 跟 vm.kmem_size_max
- 把 em(4) 的 interrupt moderation 關掉:http://www.freebsd.org/cgi/query-pr.cgi?pr=74986, http://docs.freebsd.org/cgi/getmsg.cgi?fetch=215083+0+archive/2004/freebsd-current/20041128.freebsd-current, http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1279567+0+archive/2004/freebsd-current/20041121.freebsd-current