Commit 14a09925 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make thread_pool_max and thread_pool_min consistent so they both

apply to individual pools.
parent 4ef7a77f
......@@ -436,7 +436,7 @@ wrk_herdtimer_thread(void *priv)
/* Scale parameters */
u = params->wthread_max / nwq;
u = params->wthread_max;
if (u < params->wthread_min)
u = params->wthread_min;
nthr_max = u;
......
......@@ -121,7 +121,7 @@ const struct parspec WRK_parspec[] = {
EXPERIMENTAL | DELAYED_EFFECT,
"2", "pools" },
{ "thread_pool_max", tweak_thread_pool_max, NULL, 1, 0,
"The maximum number of worker threads in all pools combined.\n"
"The maximum number of worker threads in each pool.\n"
"\n"
"Do not set this higher than you have to, since excess "
"worker threads soak up RAM and CPU and generally just get "
......@@ -129,7 +129,7 @@ const struct parspec WRK_parspec[] = {
EXPERIMENTAL | DELAYED_EFFECT,
"500", "threads" },
{ "thread_pool_min", tweak_thread_pool_min, NULL, 2, 0,
"The minimum number of threads in each worker pool.\n"
"The minimum number of threads in each pool.\n"
"\n"
"Increasing this may help ramp up faster from low load "
"situations where threads have expired.\n"
......
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