Repository navigation
crimson/os/seastore/epm: make max_generation and gc_formula configurable - #64452
Conversation
|
@cyx1231st Hi, yingxin. After a second thought, it looks to me that the segment reclaim algorithm has the following features:
IIUC, since we already split the data by generations and larger generation segments' utilization decrease slower (which means the frequency of the moving of long-lifecycle data is already reduced), we don't have to consider the segments' age/modify_time (which increases the frequency of the reclaim of larger-generation segments) when selecting segments to reclaim, simply selecting less utilized segments (the |
|
This isn't a bug fix. See #46436, it is not an easy decision to modify reclaim policies, we need a complete theory and comprehensive experiments and to understand&prove the overall impacts (including this PR), especially:
"modify_time" is important and necessary information. Generational GC only helps to group similar lifecyle into the same segment, it doesn't provide any information about the actual absolute age of the segment. The reclaim algorithms (GREEDY, COST-BENEFIT, BENEFIT) are based on the absolute age (modify_time) from the original design. I don't think we can drop it. For GREEDY vs COSY_BENEFIT policy, the previous analysis did show significant differences with regard to reclaim write amplification, which is consistent with the original paper introducing these designs. |
I think, as long as similar lifecycle data are grouped in the same segments, we can already avoid unncessarily moving long-lifecycle data during segment reclaims. We don't need to know the absolute age of the segment. Looking at the current I think the age only helps to reclaim long-lifecycle segments early, even when the I think the performance improvement of What do you think? @cyx1231st
|
|
I think for reclaim policy changes, the actual impacts are not obvious as long-term and systematic behavor. We need to define a standard way to do evaluations and use it as an apple-to-apple way to prove that any new policy results in better bimodel utilization distribution, and most importantly, less write amplifications from background reclaim. Also, different policies may perform differently under various utilization levels, it can be case-by-case. The classical COSY_BENEFIT was proved to be reasonable, with a good backing theory from paper. If we can prove ignoring
I think it's not appropriate to guess. |
Yeah, actually, my initial thought was that we might not need to consider the |
Config Diff Tool Output+ added: seastore_hot_tier_generations (crimson.yaml.in)
+ added: seastore_cold_tier_generations (crimson.yaml.in)
+ added: seastore_segment_cleaner_gc_formula (crimson.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
@cyx1231st Hi, I've just modified the PR as discussed offline yesterday:
Please take a look, thanks:-) |
|
@cyx1231st Hi, I've just modified the PR as suggested, please take a look, thanks:-) |
|
jenkins test make check |
|
jenkins test api |
|
jenkins test make check |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except for the comments.
and MAX_REWRITE_GENERATION configurable Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
|
@cyx1231st I've just modified the code as suggested, please take a look, again, thanks:-) |
|
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
GREEDYalgorithm doesn't have the issue in https://tracker.ceph.com/issues/72087, so we make gc_formula configurable. Meanwhile to enhance the Generational GC, we also make max generation related variables configurable.This PR also move omap extent types into data types, so omap nodes can also be evicted to the cold tier if it exists.
Signed-off-by: Xuehan Xu [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition