DEVEL15-windows-cm-performance-tuning-200803007
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 22:24:04 +0000 (22:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 22:24:04 +0000 (22:24 +0000)
commit65d6a9bd97697afa3dab947338045b369698f1e4
tree4b563d822ecd8e69dc7fa95c8d344b05c70db3c9
parentffe8b996b27a3a8990da269dcd554d4172533c6d
DEVEL15-windows-cm-performance-tuning-200803007

LICENSE MIT

This is a first cut at a cache manager statistics monitor
that can be used to determine the necessary cache parameters
to support the working set.

Off by default the performance package can be activated
by setting "daemonPerformanceTuningInterval" in the service
Parameters key.  As with the other daemon interval values
the unit is in seconds.

At service start and each succeeding interval the cache
manager will write statistics to %TEMP%\afsd_performance.txt
showing the relative usage of cm_scache_t, cm_volume_t and
cm_buf_t objects.  The FID statistics keep track of all FIDs
seen by the cache manager during the service session whether
or not they are backed by any live object in the cache.

These statistics are not stored in the cache file.

(cherry picked from commit fdcf6bba5546f2a09e972323be9469a49ce04c6f)
src/WINNT/afsd/NTMakefile
src/WINNT/afsd/afsd.h
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_performance.c [new file with mode: 0644]
src/WINNT/afsd/cm_performance.h [new file with mode: 0644]