New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osd/ReplicatedPG: fix promotion recency logic #6702
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two small nits, otherwise looks good to me! |
Recency is defined as how many of the last N hitsets an object must appear in in order to be promoted. The previous logic did nothing of the sort... it checked for the object in any one of the last N hitsets, which led to way to many promotions and killed any chance of the cache performing properly. While we are here, we can simplify the code to drop the max_in_* fields (no longer necessary). Note that we may still want a notion of 'temperature' that does tolerate the object missing in one of the recent hitsets.. but that would be different than recency, and should probably be modeled after the eviction temperature model. Backport: infernalis, hammer Reported-by: Nick Fisk <nick@fisk.me.uk> Signed-off-by: Sage Weil <sage@redhat.com>
Reported-by: xinxin shu <xinxin.shu@intel.com> Signed-off-by: Sage Weil <sage@redhat.com>
liewegas
force-pushed
the
wip-fix-recency
branch
from
November 25, 2015 19:44
e470a96
to
528eae9
Compare
@liewegas how do you think about back-porting this to hammer branch? I can do the work if you think it's OK. |
Yeah, I think it's an important backport! THanks
|
zhouyuan
added a commit
to zhouyuan/ceph
that referenced
this pull request
Dec 23, 2015
Backport ceph#6702 (osd/ReplicatedPG: fix promotion recency logic) to Hammer. Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
zhouyuan
added a commit
to zhouyuan/ceph
that referenced
this pull request
Dec 23, 2015
Backport ceph#6702 (osd/ReplicatedPG: fix promotion recency logic) to Hammer. Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
liewegas
added a commit
that referenced
this pull request
Dec 31, 2015
osd/ReplicatedPG: fix promotion recency logic Reviewed-by: Samuel Just <sjust@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://tracker.ceph.com/issues/14320
Recency is defined as how many of the last N hitsets an object
must appear in in order to be promoted. The previous logic did
nothing of the sort... it checked for the object in any one of
the last N hitsets, which led to way to many promotions and killed
any chance of the cache performing properly.
While we are here, we can simplify the code to drop the max_in_*
fields (no longer necessary).
Note that we may still want a notion of 'temperature' that does
tolerate the object missing in one of the recent hitsets.. but
that would be different than recency, and should probably be
modeled after the eviction temperature model.
Backport: infernalis, hammer
Reported-by: Nick Fisk nick@fisk.me.uk
Signed-off-by: Sage Weil sage@redhat.com