[nsd-users] server-count and memory usage
W.C.A. Wijngaards
wouter at nlnetlabs.nl
Tue May 15 13:04:45 UTC 2018
Hi Klaus,
The server count uses little memory. The main zone is forked with
copy-on-write, but not written, so it is shared (only read from) memory.
The extra servers with server-count use their own RRL table and their
own compression tables. This takes some Mbs, the RRL is ~20Mb by
default, and the compression table is 16bits per domain name: 2Mb per
million names.
TCP connections also use memory for buffers. That is per core, and when
the tcp connection is in use. If you allow lots (eg. 1000s) then also
those buffers add up to Mbs. That is ~70Mb for 1000 of tcp-count.
Setting server-count equal to the number of cpu cores is the suggested
value. (sometimes reserve a core for zone updates is suggested).
You can also save memory with options such as --disable-radix-tree and
--enable-packed, with memory optimisations in recent NSD releases also
saving memory.
Best regards, Wouter
On 15/05/18 14:37, Klaus Darilion wrote:
> Hi!
>
> Does server-count:2 (or more) have an impact on the used memory (RAM)?
>
> Currently I have count=1 on my slaves and memory is around 10G, peaking
> to 20G+ during zone updates.
>
> Thanks
> Klaus
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20180515/8d024bac/attachment.bin>
More information about the nsd-users
mailing list