CacheStats Class Reference

CacheStats defines performance/activity statistics collected by the cache; these can be obtained as a snapshot from Cache::collectStats(). More...

#include <CacheStats.h>

List of all members.

Public Attributes

uint nHits
 Number of times a page access was satisfied without a disk read (since last snapshot).
uint nHitsSinceInit
 Number of times a page access was satisfied without a disk read (since cache initialization).
uint nRequests
 Number of page accesses (since last snapshot).
uint nRequestsSinceInit
 Number of page accesses (since cache initialization).
uint nVictimizations
 Number of times a page had to be discarded to satisfy a request for another page (since last snapshot).
uint nVictimizationsSinceInit
 Number of times a page had to be discarded to satisfy a request for another page (since cache initialization).
uint nDirtyPages
 Number of dirty pages (instantaneous).
uint nPageReads
 Number of disk pages read (since last snapshot).
uint nPageReadsSinceInit
 Number of disk pages read (since cache initialization).
uint nPageWrites
 Number of disk pages written (since last snapshot).
uint nPageWritesSinceInit
 Number of disk pages written (since cache initialization).
uint nRejectedPrefetches
 Number of rejected cache pre-fetch requests (since last snapshot).
uint nRejectedPrefetchesSinceInit
 Number of rejected cache pre-fetch requests (since cache initialization).
uint nIoRetries
 Number of I/O requests requiring retry (since last snapshot).
uint nIoRetriesSinceInit
 Number of I/O requests requiring retry (since cache initialization).
uint nSuccessfulPrefetches
 Number of successful cache pre-fetch requests (since last snapshot).
uint nSuccessfulPrefetchesSinceInit
 Number of successful cache pre-fetch requests (since cache initialization).
uint nLazyWrites
 Number of lazy cache page writes (since last snapshot).
uint nLazyWritesSinceInit
 Number of lazy cache page writes (since last initialization).
uint nLazyWriteCalls
 Number of lazy write calls that encountered at least one dirty page (since last snapshot);.
uint nLazyWriteCallsSinceInit
 Number of lazy write calls that encountered at least one dirty page (since initialization);.
uint nVictimizationWrites
 Number of cache page writes during page victimization (since last snapshot).
uint nVictimizationWritesSinceInit
 Number of lazy cache page writes during victimizations (since last initialization).
uint nCheckpointWrites
 Number of cache page writes during checkpoint (since last snapshot).
uint nCheckpointWritesSinceInit
 Number of cache page writes during checkpoint (since initialization).
uint nMemPagesAllocated
 Number of memory pages currently allocated in buffer pool (instantaneous).
uint nMemPagesUnused
 Number of memory pages currently allocated but unused (instantaneous).
uint nMemPagesMax
 Maximum number of memory pages which can be allocated in buffer pool (immutable after cache initialization).


Detailed Description

CacheStats defines performance/activity statistics collected by the cache; these can be obtained as a snapshot from Cache::collectStats().

Definition at line 33 of file CacheStats.h.


Member Data Documentation

uint CacheStats::nHits

Number of times a page access was satisfied without a disk read (since last snapshot).

Definition at line 40 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nHitsSinceInit

Number of times a page access was satisfied without a disk read (since cache initialization).

Definition at line 46 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nRequests

Number of page accesses (since last snapshot).

Definition at line 51 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nRequestsSinceInit

Number of page accesses (since cache initialization).

Definition at line 56 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nVictimizations

Number of times a page had to be discarded to satisfy a request for another page (since last snapshot).

Definition at line 62 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nVictimizationsSinceInit

Number of times a page had to be discarded to satisfy a request for another page (since cache initialization).

Definition at line 68 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nDirtyPages

Number of dirty pages (instantaneous).

Definition at line 73 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nPageReads

Number of disk pages read (since last snapshot).

Definition at line 78 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nPageReadsSinceInit

Number of disk pages read (since cache initialization).

Definition at line 83 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nPageWrites

Number of disk pages written (since last snapshot).

Definition at line 88 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nPageWritesSinceInit

Number of disk pages written (since cache initialization).

Definition at line 93 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nRejectedPrefetches

Number of rejected cache pre-fetch requests (since last snapshot).

Definition at line 98 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nRejectedPrefetchesSinceInit

Number of rejected cache pre-fetch requests (since cache initialization).

Definition at line 103 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nIoRetries

Number of I/O requests requiring retry (since last snapshot).

Definition at line 108 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nIoRetriesSinceInit

Number of I/O requests requiring retry (since cache initialization).

Definition at line 113 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nSuccessfulPrefetches

Number of successful cache pre-fetch requests (since last snapshot).

Definition at line 118 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nSuccessfulPrefetchesSinceInit

Number of successful cache pre-fetch requests (since cache initialization).

Definition at line 124 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nLazyWrites

Number of lazy cache page writes (since last snapshot).

Definition at line 129 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nLazyWritesSinceInit

Number of lazy cache page writes (since last initialization).

Definition at line 134 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nLazyWriteCalls

Number of lazy write calls that encountered at least one dirty page (since last snapshot);.

Definition at line 140 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nLazyWriteCallsSinceInit

Number of lazy write calls that encountered at least one dirty page (since initialization);.

Definition at line 146 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nVictimizationWrites

Number of cache page writes during page victimization (since last snapshot).

Definition at line 152 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nVictimizationWritesSinceInit

Number of lazy cache page writes during victimizations (since last initialization).

Definition at line 158 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nCheckpointWrites

Number of cache page writes during checkpoint (since last snapshot).

Definition at line 163 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nCheckpointWritesSinceInit

Number of cache page writes during checkpoint (since initialization).

Definition at line 168 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nMemPagesAllocated

Number of memory pages currently allocated in buffer pool (instantaneous).

Definition at line 174 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().

uint CacheStats::nMemPagesUnused

Number of memory pages currently allocated but unused (instantaneous).

Definition at line 180 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), RandomAllocationSegmentTest::testAllocateAndDeallocate(), SnapshotSegmentTest::testDeallocateOld(), and Cache::writeStats().

uint CacheStats::nMemPagesMax

Maximum number of memory pages which can be allocated in buffer pool (immutable after cache initialization).

Definition at line 186 of file CacheStats.h.

Referenced by CacheImpl< PageT, VictimPolicyT >::collectStats(), CacheImpl< PageT, VictimPolicyT >::initializeStats(), and Cache::writeStats().


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:27 2009 for Fennel by  doxygen 1.5.1