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
cd048454
Unverified
Commit
cd048454
authored
Dec 23, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panic: dump basic pool info
This is to chase a new case of the watchdog off the leash
parent
6cf1138f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
cache_panic.c
bin/varnishd/cache/cache_panic.c
+1
-0
cache_pool.c
bin/varnishd/cache/cache_pool.c
+21
-0
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+1
-0
No files found.
bin/varnishd/cache/cache_panic.c
View file @
cd048454
...
...
@@ -788,6 +788,7 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
if
(
bo
!=
NULL
)
VSL_Flush
(
bo
->
vsl
,
0
);
VMOD_Panic
(
pan_vsb
);
pan_pool
(
pan_vsb
);
}
else
{
VSB_cat
(
pan_vsb
,
"Feature short panic suppressed details.
\n
"
);
}
...
...
bin/varnishd/cache/cache_pool.c
View file @
cd048454
...
...
@@ -239,6 +239,27 @@ pool_poolherder(void *priv)
NEEDLESS
(
return
(
NULL
));
}
/*--------------------------------------------------------------------*/
void
pan_pool
(
struct
vsb
*
vsb
)
{
struct
pool
*
pp
;
VSB_printf
(
vsb
,
"pools = {
\n
"
);
VSB_indent
(
vsb
,
2
);
VTAILQ_FOREACH
(
pp
,
&
pools
,
list
)
{
if
(
PAN_dump_struct
(
vsb
,
pp
,
POOL_MAGIC
,
"pool"
))
continue
;
VSB_printf
(
vsb
,
"nidle = %u,
\n
"
,
pp
->
nidle
);
VSB_printf
(
vsb
,
"nthr = %u,
\n
"
,
pp
->
nthr
);
VSB_printf
(
vsb
,
"lqueue = %u
\n
"
,
pp
->
lqueue
);
VSB_indent
(
vsb
,
-
2
);
VSB_printf
(
vsb
,
"},
\n
"
);
}
VSB_indent
(
vsb
,
-
2
);
VSB_printf
(
vsb
,
"},
\n
"
);
}
/*--------------------------------------------------------------------*/
void
...
...
bin/varnishd/cache/cache_varnishd.h
View file @
cd048454
...
...
@@ -361,6 +361,7 @@ void Pool_Sumstat(const struct worker *w);
int
Pool_TrySumstat
(
const
struct
worker
*
wrk
);
void
Pool_PurgeStat
(
unsigned
nobj
);
int
Pool_Task_Any
(
struct
pool_task
*
task
,
enum
task_prio
prio
);
void
pan_pool
(
struct
vsb
*
);
/* cache_req.c */
struct
req
*
Req_New
(
const
struct
worker
*
,
struct
sess
*
);
...
...
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