Fennel: CacheParams Class Reference (original) (raw)

CacheParams defines parameters used to instantiate a Cache. More...

#include <[CacheParams.h](CacheParams%5F8h-source.html)>

List of all members.

Public Member Functions
CacheParams ()
Define a default set of cache parameters.
void readConfig (ConfigMap const &configMap)
Read parameter settings from a ConfigMap.
Public Attributes
DeviceAccessSchedulerParams schedParams
Parameters for instantiating DeviceAccessScheduler.
uint nMemPagesMax
Maximum number of buffer pages the cache can manage.
uint cbPage
Number of bytes per page.
uint nMemPagesInit
Initial number of page buffers to allocate (up to nMemPagesMax).
uint idleFlushInterval
Number of milliseconds between idle flushes, or 0 to disable.
uint freshmenQueuePercentage
Percentage of the total cache set aside for the freshmen queue when using the 2Q page victimization policy.
uint pageHistoryQueuePercentage
The percentage of the total number of cache pages that dictates the number of pages in the history queue.
uint prefetchPagesMax
Maximum number of outstanding pre-fetch page requests.
uint prefetchThrottleRate
Number of successful pre-fetches that must occur before the pre-fetch rate is throttled back up, in the event that it has been throttled down because of rejected requests.
Static Public Attributes
static ParamName paramMaxPages
static ParamName paramPagesInit
static ParamName paramPageSize
static ParamName paramIdleFlushInterval
static ParamName paramFreshmenQueuePercentage
static ParamName paramPageHistoryQueuePercentage
static ParamName paramPrefetchPagesMax
static ParamName paramPrefetchThrottleRate
static uint defaultMemPagesMax
static uint defaultMemPagesInit
static uint defaultPageSize
static uint defaultIdleFlushInterval
static uint defaultFreshmenQueuePercentage
static uint defaultPageHistoryQueuePercentage
static uint defaultPrefetchPagesMax
static uint defaultPrefetchThrottleRate

Detailed Description

CacheParams defines parameters used to instantiate a Cache.

Definition at line 36 of file CacheParams.h.


Constructor & Destructor Documentation

| CacheParams::CacheParams | ( | | ) | [explicit] | | ------------------------ | - | | - | ------------ |

Define a default set of cache parameters.

Definition at line 51 of file CacheParams.cpp.

References cbPage, defaultFreshmenQueuePercentage, defaultIdleFlushInterval, defaultMemPagesInit, defaultMemPagesMax, defaultPageHistoryQueuePercentage, defaultPageSize, defaultPrefetchPagesMax, defaultPrefetchThrottleRate, freshmenQueuePercentage, idleFlushInterval, nMemPagesInit, nMemPagesMax, pageHistoryQueuePercentage, prefetchPagesMax, and prefetchThrottleRate.


Member Function Documentation

void CacheParams::readConfig ( ConfigMap const & configMap )

Read parameter settings from a ConfigMap.

Definition at line 63 of file CacheParams.cpp.

References cbPage, freshmenQueuePercentage, ConfigMap::getIntParam(), idleFlushInterval, isMAXU(), nMemPagesInit, nMemPagesMax, pageHistoryQueuePercentage, paramFreshmenQueuePercentage, paramIdleFlushInterval, paramMaxPages, paramPageHistoryQueuePercentage, paramPagesInit, paramPageSize, paramPrefetchPagesMax, paramPrefetchThrottleRate, prefetchPagesMax, prefetchThrottleRate, DeviceAccessSchedulerParams::readConfig(), and schedParams.

Referenced by CacheTestBase::CacheTestBase(), DatabaseTest::DatabaseTest(), SparseBitmapTest::openStorage(), BackupRestoreTest::testBackupCleanup(), BTreeTxnTest::testCaseSetUp(), BackupRestoreTest::testHeaderBackupRestore(), SegPageEntryIterTest::testIter(), and CmdInterpreter::visit().


Member Data Documentation


The documentation for this class was generated from the following files:


Generated on Mon Jun 22 04:00:27 2009 for Fennel by doxygen 1.5.1