From: petter Date: Fri, 17 Oct 2008 07:00:02 +0000 (+0000) Subject: Increased the stack size from 16K to 32K for the threads as it caused seg.fault.... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a241350a7d3cb681e99363242c31bd5acc8483ba;p=varnish 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). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3314 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishreplay/varnishreplay.c b/varnish-cache/bin/varnishreplay/varnishreplay.c index 23c80520..cc7bf835 100644 --- a/varnish-cache/bin/varnishreplay/varnishreplay.c +++ b/varnish-cache/bin/varnishreplay/varnishreplay.c @@ -743,7 +743,8 @@ main(int argc, char *argv[]) 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 */ ;