OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/WINNT/afsd/cm_performance.h
00001 /*
00002  *  Copyright (c) 2008 - Secure Endpoints Inc.
00003  */
00004 
00005 /*
00006  *  The performance module when activated collects
00007  *  data necessary to analyze the usage of the cache
00008  *  manager and establish recommendations for future
00009  *  cache manager configuration changes.
00010  *
00011  *  As a starting point, the package will collect
00012  *  a list of all FIDs accessed during the session
00013  *  which will be used to periodically analyzed the
00014  *  contents of the cm_buf_t, cm_scache_t, cm_volume_t
00015  *  and cm_cell_t pools.
00016 
00017  */
00018 
00019 #ifndef CM_PERFORMANCE_H
00020 #define CM_PERFORMANCE_H
00021 typedef struct cm_fid_stats {
00022     cm_fid_t    fid;
00023     afs_uint32  fileType;
00024     osi_hyper_t  fileLength;
00025     afs_uint32  flags;
00026     afs_uint32  buffers;
00027     struct cm_fid_stats * nextp;
00028 } cm_fid_stats_t;
00029 
00030 #define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01  /* set if cm_scache_t present */
00031 #define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02  /* set on (vnode = 1) if cm_vol_t present */
00032 #define CM_FIDSTATS_FLAG_RO          0x04
00033 #define CM_FIDSTATS_FLAG_PURERO      0x08
00034 #define CM_FIDSTATS_FLAG_CALLBACK    0x10
00035 
00036 extern void cm_PerformanceTuningInit(void);
00037 extern void cm_PerformanceTuningCheck(void);
00038 extern void cm_PerformancePrintReport(void);
00039 
00040 #endif /* CM_PERFORMANCE_H */
00041 
 All Data Structures Files Functions Variables