[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [6.0] 4039a2c72 Add ws_thread_overflow counter
From: Dridi Boukelmoune <dridi.boukelmoune () gmail ! com>
Date: 2018-10-31 13:08:31
Message-ID: 20181031130831.6978595999 () lists ! varnish-cache ! org
[Download RAW message or body]
commit 4039a2c72ef8446888e99ff6d704a274af76c923
Author: Dag Haavi Finstad <daghf@varnish-software.com>
Date: Thu Oct 11 11:56:01 2018 +0200
Add ws_thread_overflow counter
See details in r02275.vtc for why there isn't a test case for this.
diff --git a/bin/varnishd/VSC_main.vsc b/bin/varnishd/VSC_main.vsc
index 3327eb095..bbc1eb08f 100644
--- a/bin/varnishd/VSC_main.vsc
+++ b/bin/varnishd/VSC_main.vsc
@@ -608,6 +608,13 @@
Number of times we ran out of space in workspace_client.
+.. varnish_vsc:: ws_thread_overflow
+ :level: diag
+ :group: wrk
+ :oneliner: workspace_thread overflows
+
+ Number of times we ran out of space in workspace_thread.
+
.. varnish_vsc:: shm_records
:level: diag
:oneliner: SHM records
diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index bfbfae374..50839143b 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -394,6 +394,8 @@ Pool_Work_Thread(struct pool *pp, struct worker *wrk)
tp = &tpx;
} while (tp->func != NULL);
+ if (WS_Overflowed(wrk->aws))
+ wrk->stats->ws_thread_overflow++;
/* cleanup for next task */
wrk->seen_methods = 0;
}
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic