Windows: engage path mtu discovery for rx
[openafs.git] / src / WINNT / afsd / cm_performance.h
1 /* 
2  *  Copyright (c) 2008 - Secure Endpoints Inc.
3  */
4
5 /* 
6  *  The performance module when activated collects 
7  *  data necessary to analyze the usage of the cache 
8  *  manager and establish recommendations for future
9  *  cache manager configuration changes. 
10  *
11  *  As a starting point, the package will collect 
12  *  a list of all FIDs accessed during the session
13  *  which will be used to periodically analyzed the
14  *  contents of the cm_buf_t, cm_scache_t, cm_volume_t
15  *  and cm_cell_t pools.  
16
17  */
18
19 typedef struct cm_fid_stats {
20     cm_fid_t    fid;
21     afs_uint32  fileType;
22     osi_hyper_t  fileLength;
23     afs_uint32  flags;
24     afs_uint32  buffers;
25     struct cm_fid_stats * nextp;
26 } cm_fid_stats_t;
27
28 #define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01  /* set if cm_scache_t present */
29 #define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02  /* set on (vnode = 1) if cm_vol_t present */
30 #define CM_FIDSTATS_FLAG_RO          0x04
31 #define CM_FIDSTATS_FLAG_PURERO      0x08    
32 #define CM_FIDSTATS_FLAG_CALLBACK    0x10 
33
34 extern void cm_PerformanceTuningCheck(void);
35
36 extern void cm_PerformancePrintReport(void);
37