larger default infra cache.

git-svn-id: file:///svn/unbound/trunk@547 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-08-24 14:58:36 +00:00
parent 87fafec48a
commit 5a62edfc26
4 changed files with 6 additions and 3 deletions

View file

@ -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().

View file

@ -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

View file

@ -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>
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>
Number of zones per host for which lameness is cached. Default is 1000.
.It \fBdo-ip4:\fR <yes or no>

View file

@ -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;