Merge pull request #983 from rafalste/set_promote_on_threshold

OCF submodule update
This commit is contained in:
Robert Baldyga 2021-11-09 20:24:55 +01:00 committed by GitHub
commit 3f22553727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -1346,6 +1346,15 @@ int cache_mngt_add_core_to_cache(const char *cache_name, size_t name_len,
cfg->seq_cutoff_threshold = seq_cut_off_mb * MiB;
cfg->seq_cutoff_promotion_count = 8;
/* Due to linux thread scheduling nature, we prefer to promote streams
* as early as we reasonably can. One way to achieve that is to set
* promotion count really low, which unfortunately significantly increases
* number of accesses to shared structures. The other way is to promote
* streams which reach cutoff threshold, as we can reasonably assume that
* they are likely be continued after thread is rescheduled to another CPU.
*/
cfg->seq_cutoff_promote_on_threshold = true;
init_completion(&add_context.cmpl);
add_context.core = &core;
add_context.result = &result;

2
ocf

@ -1 +1 @@
Subproject commit 12c8b4e333d7472f55f277195418db3df8ba6e2d
Subproject commit f6e337ac79f0f016ee053b1fc6caf44abeb9cbf8