Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
4670e054
Commit
4670e054
authored
Aug 13, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a couple of counters to keep track of how many requests
are on the busy-obj waitinglists
parent
e7d5afec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
cache_hash.c
bin/varnishd/cache/cache_hash.c
+3
-0
c00013.vtc
bin/varnishtest/tests/c00013.vtc
+3
-0
vsc_f_main.h
include/tbl/vsc_f_main.h
+12
-0
No files found.
bin/varnishd/cache/cache_hash.c
View file @
4670e054
...
...
@@ -424,6 +424,8 @@ HSH_Lookup(struct req *req)
if
(
cache_param
->
diag_bitmap
&
0x20
)
VSLb
(
req
->
vsl
,
SLT_Debug
,
"on waiting list <%p>"
,
oh
);
wrk
->
stats
.
busy_sleep
++
;
SES_Charge
(
req
->
wrk
,
req
);
/*
* The objhead reference transfers to the sess, we get it
...
...
@@ -480,6 +482,7 @@ hsh_rush(struct dstat *ds, struct objhead *oh)
if
(
req
==
NULL
)
break
;
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
ds
->
busy_wakeup
++
;
AZ
(
req
->
wrk
);
VTAILQ_REMOVE
(
&
wl
->
list
,
req
,
w_list
);
DSL
(
0x20
,
SLT_Debug
,
req
->
sp
->
vsl_id
,
"off waiting list"
);
...
...
bin/varnishtest/tests/c00013.vtc
View file @
4670e054
...
...
@@ -33,3 +33,6 @@ client c2 {
} -run
client c1 -wait
varnish v1 -expect busy_sleep == 1
varnish v1 -expect busy_wakeup == 1
include/tbl/vsc_f_main.h
View file @
4670e054
...
...
@@ -249,6 +249,18 @@ VSC_F(thread_queue_len, uint64_t, 0, 'g',
" See also param queue_max."
)
VSC_F
(
busy_sleep
,
uint64_t
,
1
,
'c'
,
"Number of requests sent to sleep on busy objhdr"
,
"Number of requests sent to sleep without a worker threads because"
" they found a busy object."
)
VSC_F
(
busy_wakeup
,
uint64_t
,
1
,
'c'
,
"Number of requests woken after sleep on busy objhdr"
,
"Number of requests taken of the busy object sleep list and"
" and rescheduled."
)
VSC_F
(
sess_queued
,
uint64_t
,
0
,
'c'
,
"Sessions queued for thread"
,
"Number of times session was queued waiting for a thread."
...
...
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