Open CAS Framework
Open source framework of Cache Acceleration Software
Data Fields
ocf_cache_info Struct Reference

Cache info: configuration, status. More...

#include <ocf_cache.h>

Data Fields

bool attached
 
uint8_t volume_type
 
uint32_t size
 
struct {
   struct ocf_stat   occupancy
 
   struct ocf_stat   clean
 
   struct ocf_stat   dirty
 
inactive
 
uint32_t occupancy
 
uint32_t dirty
 
uint32_t dirty_initial
 
uint32_t dirty_for
 
ocf_cache_mode_t cache_mode
 
struct {
   int   error_counter
 
   bool   status
 
fallback_pt
 
uint8_t state
 
ocf_eviction_t eviction_policy
 
ocf_cleaning_t cleaning_policy
 
ocf_promotion_t promotion_policy
 
ocf_cache_line_size_t cache_line_size
 
uint32_t flushed
 
uint32_t core_count
 
uint64_t metadata_footprint
 
uint32_t metadata_end_offset
 

Detailed Description

Cache info: configuration, status.

Field Documentation

◆ attached

bool attached

True if caching cache is attached to cache

◆ cache_line_size

ocf_cache_line_size_t cache_line_size

Cache line size in KiB

◆ cache_mode

ocf_cache_mode_t cache_mode

Current cache mode

◆ clean

struct ocf_stat clean

Clean blocks within cache (in cache lines)

◆ cleaning_policy

ocf_cleaning_t cleaning_policy

Cleaning policy selected

◆ core_count

uint32_t core_count

Number of core devices associated with this cache

◆ dirty [1/2]

uint32_t dirty

Dirty blocks within cache (in cache lines)

◆ dirty [2/2]

struct ocf_stat dirty

Dirty blocks within cache (in cache lines)

◆ dirty_for

uint32_t dirty_for

How long there are dirty cache lines (in seconds)

◆ dirty_initial

uint32_t dirty_initial

Dirty blocks within cache that where there when switching out of WB mode

◆ error_counter

int error_counter

How many requests to cache failed because of IO error

◆ eviction_policy

ocf_eviction_t eviction_policy

Eviction policy selected

◆ flushed

uint32_t flushed

Number of block flushed in ongoing flush operation

◆ metadata_end_offset

uint32_t metadata_end_offset

LBA offset where metadata ends (in 4KiB blocks)

◆ metadata_footprint

uint64_t metadata_footprint

Metadata memory footprint (in bytes)

◆ occupancy [1/2]

uint32_t occupancy

Actual cache occupancy (in cache lines)

◆ occupancy [2/2]

struct ocf_stat occupancy

Cache occupancy (in cache lines)

◆ promotion_policy

ocf_promotion_t promotion_policy

Promotion policy selected

◆ size

uint32_t size

Actual cache size (in cache lines)

◆ state

uint8_t state

Cache state (running/flushing/stopping etc...)

◆ status

bool status

Current cache mode is PT, set as a result of reaching IO error threshold

◆ volume_type

uint8_t volume_type

Cache volume type


The documentation for this struct was generated from the following file: