Skip to content

Commit

Permalink
Merge pull request #6997 from zhouyuan/evict_check_range
Browse files Browse the repository at this point in the history
osd: cache tier: add config option for eviction check list size

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Dec 22, 2015
2 parents 7b3e5bf + 845f4a1 commit 714c9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ OPTION(osd_pool_default_cache_target_dirty_high_ratio, OPT_FLOAT, .6)
OPTION(osd_pool_default_cache_target_full_ratio, OPT_FLOAT, .8)
OPTION(osd_pool_default_cache_min_flush_age, OPT_INT, 0) // seconds
OPTION(osd_pool_default_cache_min_evict_age, OPT_INT, 0) // seconds
OPTION(osd_pool_default_cache_max_evict_check_size, OPT_INT, 10) // max size to check for eviction
OPTION(osd_hit_set_min_size, OPT_INT, 1000) // min target size for a HitSet
OPTION(osd_hit_set_max_size, OPT_INT, 100000) // max target size for a HitSet
OPTION(osd_hit_set_namespace, OPT_STR, ".ceph-internal") // rados namespace for hit_set tracking
Expand Down
2 changes: 1 addition & 1 deletion src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11474,7 +11474,7 @@ bool ReplicatedPG::agent_work(int start_max, int agent_flush_quota)
assert(base_pool);

int ls_min = 1;
int ls_max = 10; // FIXME?
int ls_max = cct->_conf->osd_pool_default_cache_max_evict_check_size;

// list some objects. this conveniently lists clones (oldest to
// newest) before heads... the same order we want to flush in.
Expand Down

0 comments on commit 714c9e3

Please sign in to comment.