Re: server-count and memory usage

"W.C.A. Wijngaards" <[email protected]>
Newsgroups gmane.network.dns.nsd.general
Message-ID <[email protected]>
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
> [email protected]
> https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>

_______________________________________________
nsd-users mailing list
[email protected]
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE7fqj8spObrBWga+On28cLX4EX40FAlr62u0ACgkQn28cLX4E
X42ubhAAqxp1QNdpCXcvw/gAHwrdj/bglLeZpDg3L1gFQyDh+Z12dAsoE1+wX/67
DwYHxp2xkAsS22Po38RvwfRYsJbE4kRkUss08gBqAlYcIC6Un8rHNclEqQ45fnpu
5Bb+J8gQgA7nlBlEu9+9TbxoglTtbfnhGnJY7wailYDK25Rv8mkfMdbbvy5ZouWI
E6tJabIeAo6EQDwflNKAGh4o+IuSqjQ3vQGZqjeOPF+WXow3A2w85whdeEHfmKib
wM1L9+Ri/yHW40hT1YGfF+RQdvjekIoxhDIlHdKSgtGRb6MCbgda0O1i7bx/K8bb
+UpOPH7LcciMRgiQySerECRNO6SF3c5Hep7V5dm1kV5lYW7nd3rDfVCEoC7Aqi3j
xXb0CVEjpZJxjqRE1h0oOP90HC2bLfdNY8c4/thhexfqFjxDDn2j81WsnSpQhkq9
du7RRedNs/dI5IBUTLIYQ/u6yxzYUNIatDfKaoTe7O0R/bcP4gYPhTea5Xl9RzqG
vV2X8gvuh3YrA+f61wr4CRNY5dDJaACiUdVE1OJgKGzi5FROpmVbLoxfgvIk0aOR
l+9WuEt7p1ntEfmFi0KQhM+eoU/D9BwX7bVXk67t3w91IJLkjap9iUmLo+kk7Qq0
wYl8YOkSAz/3Y+gbF+DSQHNTqZekVALoxhD7Ox/g9b5qSR948sM=
=zyNS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.