r757 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Aug 8 08:39:52 CEST 2006


Author: phk
Date: 2006-08-08 08:39:52 +0200 (Tue, 08 Aug 2006)
New Revision: 757

Modified:
   trunk/varnish-cache/bin/varnishd/hash_classic.c
Log:
Default to 4096 buckets and 256 mutexes


Modified: trunk/varnish-cache/bin/varnishd/hash_classic.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/hash_classic.c	2006-08-08 06:38:45 UTC (rev 756)
+++ trunk/varnish-cache/bin/varnishd/hash_classic.c	2006-08-08 06:39:52 UTC (rev 757)
@@ -34,8 +34,8 @@
 TAILQ_HEAD(hcl_head, hcl_entry);
 
 static struct hcl_head *hcl_head;
-static unsigned hcl_nhash = 256;
-static unsigned hcl_nmtx = 16;
+static unsigned hcl_nhash = 4096;
+static unsigned hcl_nmtx = 256;
 static pthread_mutex_t *hcl_mutex;
 
 /*--------------------------------------------------------------------*/




More information about the varnish-commit mailing list