From f245b5439900bbd918a0ac40865e7df161767ed6 Mon Sep 17 00:00:00 2001 From: sthen Date: Wed, 3 Apr 2013 20:17:23 +0000 Subject: [PATCH] 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. --- net/isc-bind/Makefile | 3 ++- net/isc-bind/pkg/isc_named.rc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net/isc-bind/Makefile b/net/isc-bind/Makefile index 019c9d6538a..bb8f71733b7 100644 --- a/net/isc-bind/Makefile +++ b/net/isc-bind/Makefile @@ -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/} diff --git a/net/isc-bind/pkg/isc_named.rc b/net/isc-bind/pkg/isc_named.rc index c5fc75565cc..9511930347a 100644 --- a/net/isc-bind/pkg/isc_named.rc +++ b/net/isc-bind/pkg/isc_named.rc @@ -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