Add promotion policy API and use it in I/O path

Promotion policy is supposed to perform ALRU noise filtering by
eliminating one-hit wonders being added to cache and polluting it.

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2019-07-11 12:19:29 +02:00
parent 999f3f7245
commit 917cbd859a
20 changed files with 409 additions and 21 deletions

View File

@@ -118,6 +118,6 @@ int space_managment_evict_do(struct ocf_cache *cache,
if (evict_cline_no <= evicted)
return LOOKUP_MAPPED;
req->info.eviction_error |= true;
req->info.mapping_error |= true;
return LOOKUP_MISS;
}