Hi, I'm trying to make unbound have less timeout query (I see around1 to 2% of query timeout using DNS performance test from Silverwolf Software and was looking at "Unbound : Howto optimise" and wanted to try the so-rcvbuf option but enabling it cause a error on service start.
On BSD change |kern.ipc.maxsockbuf| in |/etc/sysctl.conf|. On OpenBSD change header and recompile kernel. Source : http://www.unbound.net/documentation/howto_optimise.html Also : Actually, I've solved the problem. In "src/sys/sys/socketvar.h", change from =========================================== /*#define SB_MAX (256*1024)*/ /* default for max chars in sockbuf */ =========================================== to ========================================== #define SB_MAX (2096*1024) /* default for max chars in sockbuf */ ========================================== Then recompile the kernel and I can set the buffer size up to 2MBs. Source : http://fixunix.com/bsd/87796-how-raise-maxsockbuf-openbsd.html Is this a good idea to change this value ? Any reason why it limited like this ? Is there any other way to change max chars in buffer size than recompile the kernel. OpenBSD 5.1 amd64 ---------- Unbound.conf --------------- server: verbosity: 1 logfile: /var/unbound/var/log/unbound.log interface: 0.0.0.0 port: 53 do-ip4: yes do-ip6: no do-udp: yes do-tcp: yes access-control: 0.0.0.0/0 allow_snoop hide-version: yes harden-glue: yes cache-min-ttl: 3600 cache-max-ttl: 86400 prefetch: yes num-threads: 4 outgoing-range: 8192 num-queries-per-thread: 2048 msg-cache-slabs: 8 rrset-cache-slabs: 8 infra-cache-slabs: 8 key-cache-slabs: 8 rrset-cache-size: 256m msg-cache-size: 128m # so-rcvbuf: 8m <-value I want to activate unwanted-reply-threshold: 10000 do-not-query-localhost: no val-clean-additional: yes forward-zone: name: "." forward-addr: 8.8.8.8 # Google Public DNS forward-addr: 8.8.4.4 # Google Public DNS stub-zone: name: "ourdomain.com" stub-addr: 127.0.0.1@nsdport stub-zone: name: "X.Y.Z.in-addr.arpa" stub-addr: 127.0.0.1@nsdport stub-zone: name: "W.Y.Z.in-addr.arpa" stub-addr: 127.0.0.1@nsdport ---------- end of config file ----------------------- Thanks Michel