From 5a62edfc2619d4f3ffd04fd879a2ca06cd59c879 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 24 Aug 2007 14:58:36 +0000 Subject: [PATCH] larger default infra cache. git-svn-id: file:///svn/unbound/trunk@547 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ doc/example.conf | 2 +- doc/unbound.conf.5 | 2 +- util/config_file.c | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 37a5e77f7..f9c907edb 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -9,6 +9,9 @@ the rrset is from the additional section. Signatures may have fallen off the packet, and cause validation failure. - more verbose signature date errors (with the date attached). + - increased default infrastructure cache size. It is important for + performance, and 1000 entries are only 212k (or a 400 k total cache + size). To 10000 entries (for 2M entries, 4M cache size). 23 August 2007: Wouter - CNAME handling - move needs_validation to before val_new(). diff --git a/doc/example.conf b/doc/example.conf index 3ee439f2f..f81118d2e 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -76,7 +76,7 @@ server: # infra-cache-slabs: 4 # the maximum number of hosts that are cached (roundtrip times, EDNS). - # infra-cache-numhosts: 1000 + # infra-cache-numhosts: 10000 # the maximum number of lame zones per host that are cached. # infra-cache-numlame: 1000 diff --git a/doc/unbound.conf.5 b/doc/unbound.conf.5 index 56dc2bb98..ab17058d2 100644 --- a/doc/unbound.conf.5 +++ b/doc/unbound.conf.5 @@ -113,7 +113,7 @@ The time to live when a delegation is discovered to be lame. Default is 900. Number of slabs in the infrastructure cache. Slabs reduce lock contention by threads. Must be set to a power of 2. .It \fBinfra-cache-numhosts:\fR -Number of hosts for which information is cached. Default is 1000. +Number of hosts for which information is cached. Default is 10000. .It \fBinfra-cache-numlame:\fR Number of zones per host for which lameness is cached. Default is 1000. .It \fBdo-ip4:\fR diff --git a/util/config_file.c b/util/config_file.c index fd35c51b5..07d13300f 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -87,7 +87,7 @@ config_create() cfg->lame_ttl = 900; cfg->bogus_ttl = 900; cfg->infra_cache_slabs = 4; - cfg->infra_cache_numhosts = 1000; + cfg->infra_cache_numhosts = 10000; cfg->infra_cache_numlame = 1000; cfg->val_clean_additional = 1; if(!(cfg->username = strdup(""))) goto error_exit; -- 2.47.2