Skip to content
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

hammer: osd: osd/ReplicatedPG: Recency fix #7207

Merged
merged 2 commits into from Jan 31, 2016

Conversation

rldleblanc
Copy link

http://tracker.ceph.com/issues/14329

This is a backport of #6702. This PR was created due to no movement of #7024 and I'd really like to have this in the next Hammer version.

@liewegas
Copy link
Member

👍

ghost pushed a commit that referenced this pull request Jan 15, 2016
…ammer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost self-assigned this Jan 29, 2016
@ghost ghost changed the title hammer: osd/ReplicatedPG: Recency fix for Hammer DNM: hammer: osd/ReplicatedPG: Recency fix for Hammer Jan 29, 2016
@ghost
Copy link

ghost commented Jan 29, 2016

@rldleblanc could you please add details about why the conflicts happened and how you resolved them, in the commit message ? This is explained at http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_backport_commits near "if there is a conflict".

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>
(cherry picked from commit 180c874)

Conflicts:
	src/osd/ReplicatedPG.cc
                    code section was moved to ReplicatedPG::maybe_promote
                    in master.
Signed-off-by: Robert LeBlanc <robert.leblanc@endurance.com>
Reported-by: xinxin shu <xinxin.shu@intel.com>
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 528eae9)

Conflicts:
	src/osd/ReplicatedPG.cc
                    code section was moved to ReplicatedPG::maybe_promote
                    in master.
Signed-off-by: Robert LeBlanc <robert.leblanc@endurance.com>
@ghost ghost changed the title DNM: hammer: osd/ReplicatedPG: Recency fix for Hammer hammer: osd/ReplicatedPG: Recency fix for Hammer Jan 29, 2016
liewegas added a commit that referenced this pull request Jan 31, 2016
hammer: osd/ReplicatedPG: Recency fix for Hammer

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 0c13656 into ceph:hammer Jan 31, 2016
@rldleblanc rldleblanc deleted the recency_fix_for_hammer branch February 12, 2016 20:35
@ghost ghost changed the title hammer: osd/ReplicatedPG: Recency fix for Hammer hammer: osd: osd/ReplicatedPG: Recency fix for Hammer Feb 18, 2016
@ghost ghost changed the title hammer: osd: osd/ReplicatedPG: Recency fix for Hammer hammer: osd: osd/ReplicatedPG: Recency fix Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants