Commit 29568e06 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

param: Introduce the notion of memory pool parameters

Refs #3250
parent 74c119c8
...@@ -1217,49 +1217,39 @@ PARAM_SIMPLE( ...@@ -1217,49 +1217,39 @@ PARAM_SIMPLE(
"HTTP2 maximum size of an uncompressed header list." "HTTP2 maximum size of an uncompressed header list."
) )
#define MEMPOOL_TEXT \ /*--------------------------------------------------------------------
"The three numbers are:\n" \ * Memory pool parameters
"\tmin_pool\tminimum size of free pool.\n" \ */
"\tmax_pool\tmaximum size of free pool.\n" \
"\tmax_age\tmax age of free element."
PARAM_SIMPLE( #define PARAM_MEMPOOL(nm, def, descr) \
/* name */ pool_req, PARAM(poolparam, nm, nm, tweak_poolparam, &mgt_param.nm, \
/* type */ poolparam, NULL, NULL, def, NULL, \
/* min */ NULL, descr \
/* max */ NULL, "The three numbers are:\n" \
/* def */ "10,100,10", "\tmin_pool\tminimum size of free pool.\n" \
/* units */ NULL, "\tmax_pool\tmaximum size of free pool.\n" \
/* descr */ "\tmax_age\tmax age of free element.")
"Parameters for per worker pool request memory pool.\n"
MEMPOOL_TEXT
)
PARAM_SIMPLE( PARAM_MEMPOOL(
/* name */ pool_sess, /* name */ pool_req,
/* type */ poolparam, /* def */ "10,100,10",
/* min */ NULL, /* descr */
/* max */ NULL, "Parameters for per worker pool request memory pool.\n\n"
/* def */ "10,100,10",
/* units */ NULL,
/* descr */
"Parameters for per worker pool session memory pool.\n"
MEMPOOL_TEXT
) )
PARAM_SIMPLE( PARAM_MEMPOOL(
/* name */ pool_vbo, /* name */ pool_sess,
/* type */ poolparam, /* def */ "10,100,10",
/* min */ NULL, /* descr */
/* max */ NULL, "Parameters for per worker pool session memory pool.\n\n"
/* def */ "10,100,10",
/* units */ NULL,
/* descr */
"Parameters for backend object fetch memory pool.\n"
MEMPOOL_TEXT
) )
#undef MEMPOOL_TEXT PARAM_MEMPOOL(
/* name */ pool_vbo,
/* def */ "10,100,10",
/* descr */
"Parameters for backend object fetch memory pool.\n\n"
)
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
* Thread pool parameters * Thread pool parameters
...@@ -1675,6 +1665,7 @@ PARAM_PCRE( ...@@ -1675,6 +1665,7 @@ PARAM_PCRE(
# undef PARAM_VCC # undef PARAM_VCC
#endif /* defined(PARAM_ALL) */ #endif /* defined(PARAM_ALL) */
#undef PARAM_MEMPOOL
#undef PARAM_SIMPLE #undef PARAM_SIMPLE
#undef PARAM_THREAD #undef PARAM_THREAD
#undef PARAM #undef PARAM
......
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