]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
larger default infra cache.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 24 Aug 2007 14:58:36 +0000 (14:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 24 Aug 2007 14:58:36 +0000 (14:58 +0000)
git-svn-id: file:///svn/unbound/trunk@547 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
doc/example.conf
doc/unbound.conf.5
util/config_file.c

index 37a5e77f7cb909243cbd5e67afe577acb9e83a3a..f9c907edbf4d7e30765b6cd727f4c845699252b3 100644 (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().
index 3ee439f2f65b75635cacda640bc579cf6f78d5e7..f81118d2ed44b4470f37b7c3779ba01656172471 100644 (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
index 56dc2bb98c8e6e12974d69d10b995d12224dd87f..ab17058d2da3e6e4b42cbc4c558fa9a495bd77e7 100644 (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>
index fd35c51b5cdf7fe082bc105afe0625b0143d7ae4..07d13300f40d5d07c7819776b2330343154c29ff 100644 (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;