Maintained by: NLnet Labs

[Unbound-users] Configuration suggestions?

Sat Apr 13 08:21:39 CEST 2013

Hi Anders,

Generally larger cache memory can improve latency (cache hit ratio)
because it can keep more records in cache. I'm not certain whether too
much memory introduce something harmful or not (except power
consumption or failure rate of memory modules).

But according to my test, around 3-4GBs memory per one Unbound cache
server seems to be enough (e.g. rrset-cache-size: 2g, msg-cache-size:
1g) even if in large ISP environment. More memory won't improve cache
hit ratio meaningfully. PowerDNS recursor doc gives similar suggestion

Note that Unbound will consume more memory than you specified due to
malloc() overhead [2] and we will need more cache memory as
DNSSEC-signed zone is deployed more widely.

   "Cache hit rate does not improve meaningfully beyond 4 million
max-cache-entries per thread…. "

 Daisuke HIGASHI <daisuke.higashi at>