[master] 81ce41b On 32 bit, set the worker thread stacksize to the lower of 64k and the minimum demanded by the system.
Poul-Henning Kamp
phk at varnish-cache.org
Fri Feb 11 13:06:16 CET 2011
commit 81ce41b57b0a0bb8697e238e51efff14fb70a567
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Feb 11 12:05:34 2011 +0000
On 32 bit, set the worker thread stacksize to the lower of 64k and the
minimum demanded by the system.
diff --git a/bin/varnishd/mgt_pool.c b/bin/varnishd/mgt_pool.c
index 86468ca..a612541 100644
--- a/bin/varnishd/mgt_pool.c
+++ b/bin/varnishd/mgt_pool.c
@@ -82,7 +82,7 @@ tweak_stack_size(struct cli *cli, const struct parspec *par,
low = sysconf(_SC_THREAD_STACK_MIN);
- if (arg != NULL && !strcmp(arg, "32")) {
+ if (arg != NULL && !strcmp(arg, "32bit")) {
u = 65536;
if (u < low)
u = low;
diff --git a/bin/varnishd/varnishd.c b/bin/varnishd/varnishd.c
index 78765d2..0e16da7 100644
--- a/bin/varnishd/varnishd.c
+++ b/bin/varnishd/varnishd.c
@@ -418,7 +418,7 @@ main(int argc, char * const *argv)
MCF_ParamSet(cli, "sess_workspace", "16384");
cli_check(cli);
- MCF_ParamSet(cli, "thread_pool_stack", "65536");
+ MCF_ParamSet(cli, "thread_pool_stack", "32bit");
cli_check(cli);
MCF_ParamSet(cli, "gzip_stack_buffer", "4096");
More information about the varnish-commit
mailing list