Open CAS Framework
Open source framework of Cache Acceleration Software
Enumerations
alru.h File Reference

ALRU cleaning policy API. More...

Go to the source code of this file.

Macros

ALRU cleaning policy parameters
#define OCF_ALRU_MIN_WAKE_UP   0
 
#define OCF_ALRU_MAX_WAKE_UP   3600
 
#define OCF_ALRU_DEFAULT_WAKE_UP   20
 
#define OCF_ALRU_MIN_STALENESS_TIME   1
 
#define OCF_ALRU_MAX_STALENESS_TIME   3600
 
#define OCF_ALRU_DEFAULT_STALENESS_TIME   120
 
#define OCF_ALRU_MIN_FLUSH_MAX_BUFFERS   1
 
#define OCF_ALRU_MAX_FLUSH_MAX_BUFFERS   10000
 
#define OCF_ALRU_DEFAULT_FLUSH_MAX_BUFFERS   100
 
#define OCF_ALRU_MIN_ACTIVITY_THRESHOLD   0
 
#define OCF_ALRU_MAX_ACTIVITY_THRESHOLD   1000000
 
#define OCF_ALRU_DEFAULT_ACTIVITY_THRESHOLD   10000
 

Enumerations

enum  ocf_cleaning_alru_parameters { ocf_alru_wake_up_time, ocf_alru_stale_buffer_time, ocf_alru_flush_max_buffers, ocf_alru_activity_threshold }
 

Detailed Description

ALRU cleaning policy API.

Macro Definition Documentation

◆ OCF_ALRU_DEFAULT_ACTIVITY_THRESHOLD

#define OCF_ALRU_DEFAULT_ACTIVITY_THRESHOLD   10000

Idle time before flushing thread can start default value

◆ OCF_ALRU_DEFAULT_FLUSH_MAX_BUFFERS

#define OCF_ALRU_DEFAULT_FLUSH_MAX_BUFFERS   100

Dirty cache lines to be flushed in one cycle default value

◆ OCF_ALRU_DEFAULT_STALENESS_TIME

#define OCF_ALRU_DEFAULT_STALENESS_TIME   120

Staleness time default value

◆ OCF_ALRU_DEFAULT_WAKE_UP

#define OCF_ALRU_DEFAULT_WAKE_UP   20

Wake up time default value

◆ OCF_ALRU_MAX_ACTIVITY_THRESHOLD

#define OCF_ALRU_MAX_ACTIVITY_THRESHOLD   1000000

Idle time before flushing thread can start maximum value

◆ OCF_ALRU_MAX_FLUSH_MAX_BUFFERS

#define OCF_ALRU_MAX_FLUSH_MAX_BUFFERS   10000

Dirty cache lines to be flushed in one cycle maximum value

◆ OCF_ALRU_MAX_STALENESS_TIME

#define OCF_ALRU_MAX_STALENESS_TIME   3600

Staleness time maximum value

◆ OCF_ALRU_MAX_WAKE_UP

#define OCF_ALRU_MAX_WAKE_UP   3600

Wake up time maximum value

◆ OCF_ALRU_MIN_ACTIVITY_THRESHOLD

#define OCF_ALRU_MIN_ACTIVITY_THRESHOLD   0

ALRU cleaning thread cache idle time before flushing thread can startIdle time before flushing thread can start minimum value

◆ OCF_ALRU_MIN_FLUSH_MAX_BUFFERS

#define OCF_ALRU_MIN_FLUSH_MAX_BUFFERS   1

ALRU cleaning thread number of dirty cache lines to be flushed in one cycleDirty cache lines to be flushed in one cycle minimum value

◆ OCF_ALRU_MIN_STALENESS_TIME

#define OCF_ALRU_MIN_STALENESS_TIME   1

ALRU cleaning thread staleness timeStaleness time minimum value

◆ OCF_ALRU_MIN_WAKE_UP

#define OCF_ALRU_MIN_WAKE_UP   0

ALRU cleaning thread wake up timeWake up time minimum value