Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
29568e06
Commit
29568e06
authored
Oct 21, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param: Introduce the notion of memory pool parameters
Refs #3250
parent
74c119c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
37 deletions
+28
-37
params.h
include/tbl/params.h
+28
-37
No files found.
include/tbl/params.h
View file @
29568e06
...
...
@@ -1217,49 +1217,39 @@ PARAM_SIMPLE(
"HTTP2 maximum size of an uncompressed header list."
)
#define MEMPOOL_TEXT \
"The three numbers are:\n" \
"\tmin_pool\tminimum size of free pool.\n" \
"\tmax_pool\tmaximum size of free pool.\n" \
"\tmax_age\tmax age of free element."
/*--------------------------------------------------------------------
* Memory pool parameters
*/
PARAM_SIMPLE
(
/* name */
pool_req
,
/* type */
poolparam
,
/* min */
NULL
,
/* max */
NULL
,
/* def */
"10,100,10"
,
/* units */
NULL
,
/* descr */
"Parameters for per worker pool request memory pool.
\n
"
MEMPOOL_TEXT
)
#define PARAM_MEMPOOL(nm, def, descr) \
PARAM(poolparam, nm, nm, tweak_poolparam, &mgt_param.nm, \
NULL, NULL, def, NULL, \
descr \
"The three numbers are:\n" \
"\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
(
/* name */
pool_sess
,
/* type */
poolparam
,
/* min */
NULL
,
/* max */
NULL
,
/* def */
"10,100,10"
,
/* units */
NULL
,
/* descr */
"Parameters for per worker pool session memory pool.
\n
"
MEMPOOL_TEXT
PARAM_MEMPOOL
(
/* name */
pool_req
,
/* def */
"10,100,10"
,
/* descr */
"Parameters for per worker pool request memory pool.
\n\n
"
)
PARAM_SIMPLE
(
/* name */
pool_vbo
,
/* type */
poolparam
,
/* min */
NULL
,
/* max */
NULL
,
/* def */
"10,100,10"
,
/* units */
NULL
,
/* descr */
"Parameters for backend object fetch memory pool.
\n
"
MEMPOOL_TEXT
PARAM_MEMPOOL
(
/* name */
pool_sess
,
/* def */
"10,100,10"
,
/* descr */
"Parameters for per worker pool session memory pool.
\n\n
"
)
#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
...
...
@@ -1675,6 +1665,7 @@ PARAM_PCRE(
# undef PARAM_VCC
#endif
/* defined(PARAM_ALL) */
#undef PARAM_MEMPOOL
#undef PARAM_SIMPLE
#undef PARAM_THREAD
#undef PARAM
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment