[master] 13add5f Reduce the default thread_add_delay to 2ms

Tollef Fog Heen tfheen at varnish-cache.org
Tue Feb 8 07:41:58 CET 2011


commit 13add5fd5ec66bc96e8af7b793fc7e92243749de
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Mon Feb 7 16:45:07 2011 +0100

    Reduce the default thread_add_delay to 2ms
    
    Experience shows that 2ms is a better value for thread_add_delay.
    This is high enough to prevent thread pileups and low enough that
    we do not run into as too few thread problems at startup.

diff --git a/bin/varnishd/mgt_pool.c b/bin/varnishd/mgt_pool.c
index 029b702..86468ca 100644
--- a/bin/varnishd/mgt_pool.c
+++ b/bin/varnishd/mgt_pool.c
@@ -175,8 +175,8 @@ const struct parspec WRK_parspec[] = {
 		"\n"
 		"Setting this too short increases the risk of worker "
 		"thread pile-up.\n",
-		EXPERIMENTAL,
-		"20", "milliseconds" },
+		0,
+		"2", "milliseconds" },
 	{ "thread_pool_fail_delay",
 		tweak_timeout, &master.wthread_fail_delay, 100, UINT_MAX,
 		"Wait at least this long after a failed thread creation "



More information about the varnish-commit mailing list