wouter at nlnetlabs.nl
Thu Sep 14 08:08:12 UTC 2017
I have no real good idea. But looking at your numbers, I see that you
are running a network heavy application, unbound, and it uses about 10G
on 12G memory. The buff/cache is 2G. Adds up to 12G. And it is
swapping. Sounds reasonable, it is maxed out on memory, this is where
swap is supposed to make space, right?
These options change the buffer space allocated by unbound: so-rcvbuf,
so-sndbuf, maybe also so-reuseport, or more tcp connections (that use
buffer space) or more network interfaces, or simply a different kernel
version that uses (slightly) more memory or something along those lines.
What is the limit on the subnet cache size? What does the memory max
out on when the subnetmodule is not enabled?
Best regards, Wouter
On 12/09/17 01:28, Eduardo Schoedler via Unbound-users wrote:
> I'm trying to understand why unbound is swapping ~900MB:
> root at dns:~# top -b -n 1 | grep "SWAP\|unbound"
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
> SWAP COMMAND
> 11991 unbound 20 0 9751036 8.189g 3824 S 81.2 69.9 3192:03
> 840364 unbound
> root at dns:~# cat /etc/unbound/unbound.conf | grep '\-size'
> ratelimit-size: 16m
> rrset-cache-size: 1536m
> msg-cache-size: 768m
> This configuration doesn't hurt the "2.5x" tip from documentation.
> root at dns:~# free -m
> total used free shared buff/cache available
> Mem: 12004 8814 1296 237 1893 1449
> Swap: 3395 907 2488
> root at dns:~# unbound-control stats_noreset | grep mem
> root at dns:~# unbound-control stats_noreset | grep time
> root at dns:~# sysctl vm.swappiness
> vm.swappiness = 10
> Some clue?
> Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Unbound-users