r2993 - in trunk/varnish-cache: bin/varnishd include
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 22 16:40:34 CEST 2008
Author: phk
Date: 2008-07-22 16:40:33 +0200 (Tue, 22 Jul 2008)
New Revision: 2993
Modified:
trunk/varnish-cache/bin/varnishd/shmlog.c
trunk/varnish-cache/include/stat_field.h
Log:
Add a counter for shmlog wraparounds.
Modified: trunk/varnish-cache/bin/varnishd/shmlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/shmlog.c 2008-07-22 14:40:13 UTC (rev 2992)
+++ trunk/varnish-cache/bin/varnishd/shmlog.c 2008-07-22 14:40:33 UTC (rev 2993)
@@ -74,6 +74,7 @@
*logstart = SLT_ENDMARKER;
logstart[loghead->ptr] = SLT_WRAPMARKER;
loghead->ptr = 0;
+ VSL_stats->shm_cycles++;
}
static void
Modified: trunk/varnish-cache/include/stat_field.h
===================================================================
--- trunk/varnish-cache/include/stat_field.h 2008-07-22 14:40:13 UTC (rev 2992)
+++ trunk/varnish-cache/include/stat_field.h 2008-07-22 14:40:33 UTC (rev 2993)
@@ -92,6 +92,7 @@
MAC_STAT(shm_writes, uint64_t, 'a', "SHM writes")
MAC_STAT(shm_flushes, uint64_t, 'a', "SHM flushes due to overflow")
MAC_STAT(shm_cont, uint64_t, 'a', "SHM MTX contention")
+MAC_STAT(shm_cycles, uint64_t, 'a', "SHM cycles through buffer")
MAC_STAT(sm_nreq, uint64_t, 'a', "allocator requests")
MAC_STAT(sm_nobj, uint64_t, 'i', "outstanding allocations")
More information about the varnish-commit
mailing list