]> err.no Git - varnish/commitdiff
Increased the stack size from 16K to 32K for the threads as it caused seg.fault....
authorpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Oct 2008 07:00:02 +0000 (07:00 +0000)
committerpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 17 Oct 2008 07:00:02 +0000 (07:00 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3314 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishreplay/varnishreplay.c

index 23c80520489042797550c7adda25f4a17a358c7f..cc7bf83551907717fe5edb0926488d17aaece351 100644 (file)
@@ -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 */ ;