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
2f017f0d
Commit
2f017f0d
authored
Jan 30, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add two counters to keep track of the exp inbox traffic
parent
2ccf1b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
cache_expire.c
bin/varnishd/cache/cache_expire.c
+2
-0
vsc_f_main.h
include/tbl/vsc_f_main.h
+12
-0
No files found.
bin/varnishd/cache/cache_expire.c
View file @
2f017f0d
...
...
@@ -117,6 +117,7 @@ exp_mail_it(struct objcore *oc)
VTAILQ_INSERT_HEAD
(
&
exphdl
->
inbox
,
oc
,
lru_list
);
else
VTAILQ_INSERT_TAIL
(
&
exphdl
->
inbox
,
oc
,
lru_list
);
VSC_C_main
->
exp_mailed
++
;
AZ
(
pthread_cond_signal
(
&
exphdl
->
condvar
));
Lck_Unlock
(
&
exphdl
->
mtx
);
}
...
...
@@ -583,6 +584,7 @@ exp_thread(struct worker *wrk, void *priv)
oc
=
VTAILQ_FIRST
(
&
ep
->
inbox
);
if
(
oc
!=
NULL
)
{
VTAILQ_REMOVE
(
&
ep
->
inbox
,
oc
,
lru_list
);
VSC_C_main
->
exp_received
++
;
tnext
=
0
;
}
else
if
(
tnext
>
t
)
{
VSL_Flush
(
&
ep
->
vsl
,
0
);
...
...
include/tbl/vsc_f_main.h
View file @
2f017f0d
...
...
@@ -561,6 +561,18 @@ VSC_F(bans_persisted_fragmentation, uint64_t, 0, 'g', diag,
/*--------------------------------------------------------------------*/
VSC_F
(
exp_mailed
,
uint64_t
,
0
,
'c'
,
diag
,
"Number of objects mailed to expiry thread"
,
"Number of objects mailed to expiry thread for handling."
)
VSC_F
(
exp_received
,
uint64_t
,
0
,
'c'
,
diag
,
"Number of objects received by expiry thread"
,
"Number of objects received by expiry thread for handling."
)
/*--------------------------------------------------------------------*/
VSC_F
(
hcb_nolock
,
uint64_t
,
1
,
'a'
,
debug
,
"HCB Lookups without lock"
,
""
...
...
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