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
e49e3cb3
Commit
e49e3cb3
authored
May 27, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For now substitute VSC_main for dstat. We will circle back to this
laster to get the memory/summing cost back down.
parent
44a35137
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
24 deletions
+11
-24
cache.h
bin/varnishd/cache/cache.h
+4
-0
cache_pool.c
bin/varnishd/cache/cache_pool.c
+1
-6
cache_priv.h
bin/varnishd/cache/cache_priv.h
+0
-12
cache_wrk.c
bin/varnishd/cache/cache_wrk.c
+1
-6
main.vsc
bin/varnishd/main.vsc
+3
-0
vsc_f_main.h
include/tbl/vsc_f_main.h
+2
-0
No files found.
bin/varnishd/cache/cache.h
View file @
e49e3cb3
...
...
@@ -119,6 +119,10 @@ struct vsb;
struct
worker
;
struct
v1l
;
struct
VSC_main
;
#define dstat VSC_main
#define DIGEST_LEN 32
/*--------------------------------------------------------------------*/
...
...
bin/varnishd/cache/cache_pool.c
View file @
e49e3cb3
...
...
@@ -55,12 +55,7 @@ pool_sumstat(const struct dstat *src)
{
Lck_AssertHeld
(
&
wstat_mtx
);
#define L0(n)
#define L1(n) (VSC_C_main->n += src->n)
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(n);
#include "tbl/vsc_f_main.h"
#undef L0
#undef L1
VSC_main_Summ
(
VSC_C_main
,
src
);
}
void
...
...
bin/varnishd/cache/cache_priv.h
View file @
e49e3cb3
...
...
@@ -31,18 +31,6 @@
#include "VSC_main.h"
/*--------------------------------------------------------------------*/
#define L0(t, n)
#define L1(t, n) t n;
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(t, n)
struct
dstat
{
unsigned
summs
;
#include "tbl/vsc_f_main.h"
};
#undef L0
#undef L1
/* Prototypes etc ----------------------------------------------------*/
/* cache_acceptor.c */
...
...
bin/varnishd/cache/cache_wrk.c
View file @
e49e3cb3
...
...
@@ -144,12 +144,7 @@ pool_addstat(struct dstat *dst, struct dstat *src)
{
dst
->
summs
++
;
#define L0(n)
#define L1(n) (dst->n += src->n)
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(n);
#include "tbl/vsc_f_main.h"
#undef L0
#undef L1
VSC_main_Summ
(
dst
,
src
);
memset
(
src
,
0
,
sizeof
*
src
);
}
...
...
bin/varnishd/main.vsc
View file @
e49e3cb3
...
...
@@ -9,6 +9,9 @@
:oneliner: Main counters
:sumfunction:
.. varnish_vsc:: summs
:oneliner: stat summ operations
.. varnish_vsc:: uptime
:oneliner: Child process uptime
...
...
include/tbl/vsc_f_main.h
View file @
e49e3cb3
...
...
@@ -33,6 +33,8 @@
/*lint -save -e525 -e539 */
VSC_FF
(
summs
,
uint64_t
,
0
,
'c'
,
'd'
,
debug
,
""
,
""
)
/*--------------------------------------------------------------------
* Globals, not related to traffic
*/
...
...
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