This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, next has been updated via 4a0d69ca464aba3f27e7e2a98247f1630ef664bb (commit) via 128db1a3632fdd4ff95fa0bb865e25cc861f471c (commit) via c20b20092fb7c9263a9cdb17656eb517f3a5cdff (commit) via 5012e53c290b0bb60c4b4617f4ccaa7b63a6927f (commit) via 0a7dca2c5f8284ff61d78c1f851b4716f7f3d9df (commit) from e0174da88ba1e1d36f57b6349544059f08fca164 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 4a0d69ca464aba3f27e7e2a98247f1630ef664bb Author: Michael Tremer michael.tremer@ipfire.org Date: Tue Mar 28 10:29:03 2017 +0100
unbound: Increase memory size on even larger systems
Signed-off-by: Michael Tremer michael.tremer@ipfire.org
commit 128db1a3632fdd4ff95fa0bb865e25cc861f471c Author: Michael Tremer michael.tremer@ipfire.org Date: Tue Mar 28 10:25:39 2017 +0100
unbound: Double buffer size
Signed-off-by: Michael Tremer michael.tremer@ipfire.org
commit c20b20092fb7c9263a9cdb17656eb517f3a5cdff Author: Michael Tremer michael.tremer@ipfire.org Date: Tue Mar 28 10:24:40 2017 +0100
unbound: Increase size of send/receive buffers
This will allow to not drop any packets when there is a peak in queries
Signed-off-by: Michael Tremer michael.tremer@ipfire.org
commit 5012e53c290b0bb60c4b4617f4ccaa7b63a6927f Author: Michael Tremer michael.tremer@ipfire.org Date: Tue Mar 28 10:17:33 2017 +0100
unbound: Re-use UDP sockets
This will make UDP queries faster
Signed-off-by: Michael Tremer michael.tremer@ipfire.org
commit 0a7dca2c5f8284ff61d78c1f851b4716f7f3d9df Author: Michael Tremer michael.tremer@ipfire.org Date: Tue Mar 28 10:16:56 2017 +0100
unbound: Increase number of parallel queries
The parameters are the recommended values for libevent
Signed-off-by: Michael Tremer michael.tremer@ipfire.org
-----------------------------------------------------------------------
Summary of changes: src/initscripts/system/unbound | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-)
Difference in files: diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index bbf9c00..7e80429 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -244,17 +244,29 @@ write_tuning_conf() { # In the worst case scenario, unbound can use double the # amount of memory allocated to a cache due to malloc overhead
+ # Even larger systems with more than 8GB of RAM + if [ ${mem} -ge 8192 ]; then + mem=1024 + + # Extra large systems with more than 4GB of RAM + elif [ ${mem} -ge 4096 ]; then + mem=512 + # Large systems with more than 2GB of RAM - if [ ${mem} -ge 2048 ]; then + elif [ ${mem} -ge 2048 ]; then + mem=256 + + # Medium systems with more than 1GB of RAM + elif [ ${mem} -ge 1024 ]; then mem=128
# Small systems with less than 256MB of RAM elif [ ${mem} -le 256 ]; then - mem=8 + mem=16
# Everything else else - mem=32 + mem=64 fi
( @@ -262,6 +274,7 @@ write_tuning_conf() {
# We run one thread per processor echo "num-threads: ${processors}" + echo "so-reuseport: yes"
# Adjust number of slabs echo "infra-cache-slabs: ${slabs}" @@ -273,6 +286,14 @@ write_tuning_conf() { echo "rrset-cache-size: $(( ${mem} / 2 ))m" echo "msg-cache-size: $(( ${mem} / 4 ))m" echo "key-cache-size: $(( ${mem} / 4 ))m" + + # Increase parallel queries + echo "outgoing-range: 8192" + echo "num-queries-per-thread: 4096" + + # Use larger send/receive buffers + echo "so-sndbuf: 4m" + echo "so-rcvbuf: 4m" ) > /etc/unbound/tuning.conf }
hooks/post-receive -- IPFire 2.x development tree