Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
841596c7
Commit
841596c7
authored
Feb 23, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split the worker thread workspace size out into its own parameter
"thread_pool_workspace"
parent
6edf9c37
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
cache_pool.c
bin/varnishd/cache_pool.c
+2
-1
heritage.h
bin/varnishd/heritage.h
+1
-0
mgt_pool.c
bin/varnishd/mgt_pool.c
+11
-0
No files found.
bin/varnishd/cache_pool.c
View file @
841596c7
...
...
@@ -123,6 +123,7 @@ wrk_thread_real(struct wq *qp, unsigned shm_workspace, unsigned sess_workspace,
{
struct
worker
*
w
,
ww
;
uint32_t
wlog
[
shm_workspace
/
4
];
/* XXX: can we trust these to be properly aligned ? */
unsigned
char
ws
[
sess_workspace
];
unsigned
char
http0
[
http_space
];
unsigned
char
http1
[
http_space
];
...
...
@@ -230,7 +231,7 @@ wrk_thread(void *priv)
siov
=
IOV_MAX
;
return
(
wrk_thread_real
(
qp
,
params
->
shm_workspace
,
params
->
sess
_workspace
,
params
->
wthread
_workspace
,
nhttp
,
HTTP_estimate
(
nhttp
),
siov
));
}
...
...
bin/varnishd/heritage.h
View file @
841596c7
...
...
@@ -90,6 +90,7 @@ struct params {
unsigned
wthread_purge_delay
;
unsigned
wthread_stats_rate
;
unsigned
wthread_stacksize
;
unsigned
wthread_workspace
;
unsigned
queue_max
;
...
...
bin/varnishd/mgt_pool.c
View file @
841596c7
...
...
@@ -227,5 +227,16 @@ const struct parspec WRK_parspec[] = {
"many threads into the limited address space.
\n
"
,
EXPERIMENTAL
,
"-1"
,
"bytes"
},
{
"thread_pool_workspace"
,
tweak_uint
,
&
master
.
wthread_workspace
,
1024
,
UINT_MAX
,
"Bytes of HTTP protocol workspace allocated for worker "
"threads. "
"This space must be big enough for the backend request "
"and responses, and response to the client plus any other "
"memory needs in the VCL code."
"Minimum is 1024 bytes."
,
DELAYED_EFFECT
,
"65536"
,
"bytes"
},
{
NULL
,
NULL
,
NULL
}
};
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