Extend CAS interface with Write-only cache mode
Write-only (WO) cache mode is similar to Write-back (WB), however read operations do not promote data to cache. Reads are mostly serviced by the core device, only dirty sectors are fetched from the cache. Write-only cache mode is behaving similarly to Write-back with respect to flushing dirty data. For example it is required to explicitly enable/disable flushing when changing cache mode from WO to something other than WB. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -911,9 +911,8 @@ int cache_stats_conf(int ctrl_fd, const struct kcas_cache_info *cache_info,
|
||||
return FAILURE;
|
||||
print_kv_pair(outfile, "Inactive Core Devices", "%d", inactive_cores);
|
||||
|
||||
print_kv_pair(outfile, "Write Policy", "%s%s",
|
||||
(flush_progress && cache_info->info.cache_mode != ocf_cache_mode_wb)
|
||||
? "wb->" : "", cache_mode_to_name(cache_info->info.cache_mode));
|
||||
print_kv_pair(outfile, "Write Policy", "%s",
|
||||
cache_mode_to_name(cache_info->info.cache_mode));
|
||||
print_kv_pair(outfile, "Eviction Policy", "%s",
|
||||
eviction_policy_to_name(cache_info->info.eviction_policy));
|
||||
print_kv_pair(outfile, "Cleaning Policy", "%s",
|
||||
|
Reference in New Issue
Block a user