aboutsummaryrefslogtreecommitdiffstats
path: root/dns/bind912
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-01-12 20:58:51 +0800
committermat <mat@FreeBSD.org>2018-01-12 20:58:51 +0800
commit943c5fb7520c290513210ddd6e0145aae7ce7f68 (patch)
treecd96faa816ce842a2a69234a33f7b7a1fe0ddf7d /dns/bind912
parent44b05effa95d7232556a05e5323c8560cc9c6759 (diff)
downloadfreebsd-ports-gnome-943c5fb7520c290513210ddd6e0145aae7ce7f68.tar.gz
freebsd-ports-gnome-943c5fb7520c290513210ddd6e0145aae7ce7f68.tar.zst
freebsd-ports-gnome-943c5fb7520c290513210ddd6e0145aae7ce7f68.zip
Add a TUNING_LARGE option.
https://kb.isc.org/article/AA-01314/0 Tunes certain compiled-in constants and default settings to values better suited to large servers with 12/16GB+ of memory. This can improve performance on such servers, but will consume more memory and may degrade performance on smaller systems. PR: 224859 Sponsored by: Absolight
Diffstat (limited to 'dns/bind912')
-rw-r--r--dns/bind912/Makefile9
-rw-r--r--dns/bind912/pkg-help8
2 files changed, 15 insertions, 2 deletions
diff --git a/dns/bind912/Makefile b/dns/bind912/Makefile
index 4c179a70664e..20aa34432845 100644
--- a/dns/bind912/Makefile
+++ b/dns/bind912/Makefile
@@ -8,7 +8,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
PORTREVISION= 0
.else
# dns/bind912 here
-PORTREVISION= 2
+PORTREVISION= 3
.endif
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
@@ -79,7 +79,7 @@ OPTIONS_RADIO_GOSTDEF= GOST GOST_ASN1
OPTIONS_DEFAULT+= DLZ_FILESYSTEM LMDB RPZ_NSDNAME RPZ_NSIP
OPTIONS_DEFINE+= RPZ_NSIP RPZ_NSDNAME DOCS GEOIP \
MINCACHE PORTREVISION QUERYTRACE LMDB DNSTAP \
- START_LATE
+ START_LATE TUNING_LARGE
OPTIONS_GROUP= DLZ
OPTIONS_GROUP_DLZ= DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB \
DLZ_LDAP DLZ_FILESYSTEM DLZ_STUB
@@ -120,6 +120,7 @@ RPZ_NSIP_DESC= Enable RPZ NSIP trigger rules
SIGCHASE_DESC= dig/host/nslookup will do DNSSEC validation
SSL_DESC= Build with OpenSSL (Required for DNSSEC)
START_LATE_DESC= Start BIND late in the boot process (see help)
+TUNING_LARGE_DESC= Tune named for large systems (**READ HELP**)
DLZ_BDB_CONFIGURE_ON= --with-dlz-bdb=yes
DLZ_BDB_USES= bdb
@@ -212,6 +213,10 @@ START_LATE_SUB_LIST_OFF=NAMED_REQUIRE="NETWORKING ldconfig syslogd" \
THREADS_CONFIGURE_ENABLE= threads
+TUNING_LARGE_IMPLIES= THREADS
+TUNING_LARGE_CONFIGURE_ON= --with-tuning=large
+TUNING_LARGE_CONFIGURE_OFF= --with-tuning=default
+
.include <bsd.port.pre.mk>
.if !${PORT_OPTIONS:MGOST} && !${PORT_OPTIONS:MGOST_ASN1}
diff --git a/dns/bind912/pkg-help b/dns/bind912/pkg-help
index aa85330b21d7..c303766037cb 100644
--- a/dns/bind912/pkg-help
+++ b/dns/bind912/pkg-help
@@ -28,3 +28,11 @@ and adding this line to /etc/fstab:
Most of the time, BIND needs to start early in the boot
process. Enable this if BIND starts too early for you and
you need it to start later.
+
+
+ TUNING_LARGE
+ https://kb.isc.org/article/AA-01314/0
+Tunes certain compiled-in constants and default settings to
+values better suited to large servers with 12/16GB+ of memory.
+This can improve performance on such servers, but will consume
+more memory and may degrade performance on smaller systems.