Normally newer versions of BIND default to one UDP listener per interface

per CPU. As found by Marc Peters, this doesn't work too well on a t5120
with 64 threads, so change the default settings in the rc.d script to -U 4
to cap this to 4, or the number of CPUs if less.

As usual with rc.d scripts, if you need to override flags, set
isc_named_flags="..." in rc.conf.local.
This commit is contained in:
sthen 2013-04-03 20:17:23 +00:00
parent 9ccf830572
commit f245b54399
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.12 2013/03/28 09:18:51 sthen Exp $
# $OpenBSD: Makefile,v 1.13 2013/04/03 20:17:23 sthen Exp $
COMMENT= Berkeley Internet Name Daemon
V= 9.9.2-P2
RV= 9.9.2
REVISION= 0
DISTNAME= bind-$V
PKGNAME= isc-bind-${V:S/-P/pl/}

View File

@ -1,9 +1,9 @@
#!/bin/sh
#
# $OpenBSD: isc_named.rc,v 1.1.1.1 2012/07/19 08:36:45 sthen Exp $
# $OpenBSD: isc_named.rc,v 1.2 2013/04/03 20:17:23 sthen Exp $
daemon="${TRUEPREFIX}/sbin/named"
daemon_flags="-t ${LOCALSTATEDIR}/named -u named"
daemon_flags="-t ${LOCALSTATEDIR}/named -u named -U 4"
. /etc/rc.d/rc.subr