Repository navigation
crimson/os/seastore/cache: improve committing allocations by backref entries - #61144
Conversation
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Which is used for deallocations. Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Leverage the fact that seq won't go backwards. Signed-off-by: Yingxin Cheng <[email protected]>
For reuse. Signed-off-by: Yingxin Cheng <[email protected]>
…tent with extents Generally, make alloc/free be consistent with add/commit/retire extents in Cache. Signed-off-by: Yingxin Cheng <[email protected]> Signed-off-by: Zhang Song <[email protected]>
5a6391d to
b6d9793
Compare
|
Changeset: fix compile issues in UT. |
|
jenkins test api |
|
jenkins test make check arm64 |
|
ceph/src/crimson/os/seastore/cache.cc Lines 1818 to 1828 in 58f7b6e The backref changes of existing blocks should also be moved to |
|
Discussed with @zhscn: remapping has 2 steps, retire and alloc, they must be committed atomically together, either in complete_commit() or prepare_record(). |
b6d9793 to
be494cd
Compare
|
Changeset: crimson/os/seastore/cache: move committing existing blocks to prepare_record() @zhscn compared with the original PR, for existing extents, I also moved |
|
LGTM |
Signed-off-by: Yingxin Cheng <[email protected]>
By introducing a callback upon completing submission. Signed-off-by: Yingxin Cheng <[email protected]>
…_record() So the 2 steps of remapping are atomically committed. Signed-off-by: Yingxin Cheng <[email protected]> Signed-off-by: Zhang Song <[email protected]>
be494cd to
93df0b3
Compare
|
Changeset: fix a wrong assertion related to extent state. |
|
jenkins test docs |
This PR is supposed to be cleanup only, reworking #59775.
@zhscn @xxhdx1985126
For the specific issue https://tracker.ceph.com/issues/66941, seems to me propagating remapped extents upon
prepare_record()(PR59775) cannot address the issue, because the backref entries of fresh extents are still updated uponcomplete_commit(), and they have the same issue. And they cannot be simply moved toprepare_record()because their paddrs are unknown at that time.So, IIUC a new segment state "COMMITTED" is still necessary to fix reclaiming, for both inline and ool segments.
TODO/Draft: still some cleanups to add.Done.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 retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e