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

Jewel: speed up readdir by skipping unwanted dn #12921

Merged
merged 1 commit into from Jan 31, 2017

Conversation

xiaoxichen
Copy link
Contributor

We can skip unwanted dn which  < (offset_key, snap) via map.lower_bound, rather than
iterate across them.

Previously we iterate and skip dn which < (offset_key, dn->last), as dn->last >= snap
 means (offset_key, dn->last) >= (offset_key, snap), and such iterate_and_skip logic
still keep, so this commit doesnt change code logic but an optimization.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
(cherry picked from commit 52fe52b)
@xiaoxichen xiaoxichen self-assigned this Jan 13, 2017
@xiaoxichen xiaoxichen added this to the jewel milestone Jan 13, 2017
@jcsp
Copy link
Contributor

jcsp commented Jan 16, 2017

@smithfarm could we put this on your radar for next time you're building a backport test branch?

@smithfarm
Copy link
Contributor

@jcsp This backport PR is correctly staged, so it will be included.

@smithfarm
Copy link
Contributor

@jcsp This PR passed an fs suite at http://tracker.ceph.com/issues/17851#note-39 with some valgrind issues, some of which can be ignored because they occurred on tcmalloc builds. That said, there is one valgrind issue in the MDS which resembles http://tracker.ceph.com/issues/5241 (28 MDSCacheObject occurrences).

Do you think this PR can be merged?

@smithfarm smithfarm requested a review from jcsp January 30, 2017 13:29
@jcsp jcsp merged commit 916e95d into ceph:jewel Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System performance
Projects
None yet
3 participants