Skip to content

crimson/os/seastore/segment_cleaner: tune and fixes around reclaiming - #46437

Merged
athanatos merged 7 commits into
ceph:mainfrom
cyx1231st:wip-seastore-tune-and-fixes
May 31, 2022
Merged

athanatos merged 7 commits into
ceph:mainfrom
cyx1231st:wip-seastore-tune-and-fixes

Conversation

@cyx1231st

Copy link
Copy Markdown
Member

It should be generically better to delay reclaim as late as possible, so
that:

  • unalive/unavailable ratio can become higher to reduce reclaim efforts, see before1 to after2, and more effective in case of before3 to after4 from crimson/os/seastore: implement generational GC #46436, down to ~1/3 reclaim efforts;
  • less conflicts between mutate and reclaim transactions, see before5 to after6, down to ~1% conflicts from reclaim transactions;

Please note,

  • in the non-generational version1256, reclaiming is too slow so that unavailable/total ratio will reach the original hard limit 80%, not significantly lower than the tuned 95% limit, so that the end performance is not significantly impacted, from 11.9MB/s to 11.95MB/s.
  • in the generational version34 from crimson/os/seastore: implement generational GC #46436, due to the improved bimodal distribution of segment utilizations, reclaiming is much faster so that the unavailable/total ratio ends up to ~45%, significantly lower than the tuned 95% limit, so that the end performance is improved from 9.95MB/s to 12.31MB/s.

Another change is crimson/os/seastore/transaction_manager: set to test mode under debug build, please refer to its commit message.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Footnotes

  1. before-waf ↩ ↩2

  2. after-waf ↩ ↩2

  3. before2-waf ↩ ↩2

  4. after2-waf ↩ ↩2

  5. before-conflicts ↩ ↩2

  6. after-conflicts ↩ ↩2

@cyx1231st
cyx1231st requested a review from a team as a code owner May 31, 2022 02:24
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

cyx1231st added 4 commits May 31, 2022 10:51
It should be generically better to delay reclaim as much as possible, so
that:
* unalive/unavailable can higher to reduce reclaim efforts;
* less conflicts between mutate and reclaim transactions;

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st

Copy link
Copy Markdown
Member Author

need to rebase onto the main branch

cyx1231st added 3 commits May 31, 2022 12:22
… build

* force to test mode under debug build.
* make reclaim to happen and validated as early as possible.
* do not block user transaction when reclaim-ratio (unalive/unavailable)
  is high, especially in the beginning.

Signed-off-by: Yingxin Cheng <[email protected]>
@cyx1231st
cyx1231st force-pushed the wip-seastore-tune-and-fixes branch from 2444155 to 377ef0e Compare May 31, 2022 05:28
@cyx1231st

Copy link
Copy Markdown
Member Author

rebased

@athanatos
athanatos merged commit 8e2719d into ceph:main May 31, 2022
@cyx1231st
cyx1231st deleted the wip-seastore-tune-and-fixes branch June 1, 2022 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants