OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-558-gd55c8bb
Gerrit Code Review
gerrit@openafs.org
Fri, 7 Aug 2026 12:01:32 -0400
The following commit has been merged in the master branch:
commit d55c8bbe46f1833ced2ae677c78288e2e0376830
Author: Mark Vitale <mvitale@sinenomine.net>
Date: Tue Apr 7 11:40:37 2020 -0400
afs: provide cache eviction statistics
In order to identify cache managers that need larger cache partitions,
provide new statistics on cache evictions:
- internal run & sleep times for the CacheTruncateDaemon housekeeper
- a cumulative count of evicted blocks since cache manager
initialization
- a count of evicted blocks for the current 1 hour recording interval
- a table of counts of evicted blocks for each of the previous (up to)
24 hours
All blocks are of size 1KiB by OpenAFS convention.
The statistics are available via a new collection (3) for the existing
xstat_cm_test utility:
$ xstat_cm_test localhost -onceonly -collID 3
Starting up the xstat_cm service, no debugging, one-shot operation
-----------------------------------------------------------
AFSCB_XSTATSCOLL_CACHETRUNC_INFO (coll 3) for CM localhost
[Probe 1, Fri Sep 24 17:25:54 2021]
12 numCTPerfCalls
CacheTruncateDaemon wakeups:
----------------------------
4033 run count
0.005575 run time total (seconds)
Cache eviction metrics:
-----------------------
stats by hour for (up to) the previous 24 hours:
blocks evicted time period ending
-------------- ------------------------
602175 Fri Sep 24 15:09:06 2021
133 Fri Sep 24 16:09:08 2021
0 Fri Sep 24 17:09:09 2021
-end of hourly data-
stats for current hour:
20 blocks evicted as of Fri Sep 24 17:25:48 2021
totals since initialization:
602328 total blocks evicted
Change-Id: Ic1483bb9b2c1079aaf2eae70e05281ffb8b412fb
Reviewed-on: https://gerrit.openafs.org/14200
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
doc/man-pages/pod1/xstat_cm_test.pod.template | 8 +-
src/afs/afs_callback.c | 81 ++++++++++++++++++++
src/afs/afs_daemons.c | 1 +
src/afs/afs_dcache.c | 13 ++--
src/afs/afs_prototypes.h | 2 +
src/afs/afs_stat.c | 29 +++++++
src/afs/afs_stats.h | 52 +++++++++++--
src/config/stds.h | 2 +
src/fsint/common.xg | 1 +
src/xstat/xstat_cm_test.c | 106 ++++++++++++++++++++++++++
10 files changed, 283 insertions(+), 12 deletions(-)
--
OpenAFS Master Repository