Commit 81ce41b5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

On 32 bit, set the worker thread stacksize to the lower of 64k and the

minimum demanded by the system.
parent 4a2d55b3
......@@ -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;
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment