|
Open CAS Framework
Open source framework of Cache Acceleration Software
|
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 |
Cache info: configuration, status.
| bool attached |
True if caching cache is attached to cache
| ocf_cache_line_size_t cache_line_size |
Cache line size in KiB
| ocf_cache_mode_t cache_mode |
Current cache mode
| struct ocf_stat clean |
Clean blocks within cache (in cache lines)
| ocf_cleaning_t cleaning_policy |
Cleaning policy selected
| uint32_t core_count |
Number of core devices associated with this cache
| uint32_t dirty |
Dirty blocks within cache (in cache lines)
| struct ocf_stat dirty |
Dirty blocks within cache (in cache lines)
| uint32_t dirty_for |
How long there are dirty cache lines (in seconds)
| uint32_t dirty_initial |
Dirty blocks within cache that where there when switching out of WB mode
| int error_counter |
How many requests to cache failed because of IO error
| ocf_eviction_t eviction_policy |
Eviction policy selected
| uint32_t flushed |
Number of block flushed in ongoing flush operation
| uint32_t metadata_end_offset |
LBA offset where metadata ends (in 4KiB blocks)
| uint64_t metadata_footprint |
Metadata memory footprint (in bytes)
| uint32_t occupancy |
Actual cache occupancy (in cache lines)
| struct ocf_stat occupancy |
Cache occupancy (in cache lines)
| ocf_promotion_t promotion_policy |
Promotion policy selected
| uint32_t size |
Actual cache size (in cache lines)
| uint8_t state |
Cache state (running/flushing/stopping etc...)
| bool status |
Current cache mode is PT, set as a result of reaching IO error threshold
| uint8_t volume_type |
Cache volume type
1.8.13