Mailing List Archive

r3314 - trunk/varnish-cache/bin/varnishreplay
Author: petter
Date: 2008-10-17 09:00:02 +0200 (Fri, 17 Oct 2008)
New Revision: 3314

Modified:
trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
Log:
Increased the stack size from 16K to 32K for the threads as it caused seg.fault. on Linux when writing formated to stderr (stdout worked).


Modified: trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
===================================================================
--- trunk/varnish-cache/bin/varnishreplay/varnishreplay.c 2008-10-16 13:36:47 UTC (rev 3313)
+++ trunk/varnish-cache/bin/varnishreplay/varnishreplay.c 2008-10-17 07:00:02 UTC (rev 3314)
@@ -743,7 +743,8 @@
signal(SIGPIPE, SIG_IGN);

pthread_attr_init(&thread_attr);
- pthread_attr_setstacksize(&thread_attr, 16384);
+ /* XXX: seting the stack size manually reduces the memory usasage and increases speed */
+ pthread_attr_setstacksize(&thread_attr, 32768);

while (VSL_Dispatch(vd, gen_traffic, NULL) == 0)
/* nothing */ ;