Repository navigation
crimson/os/seastore: introduce static layout of laddr_t - #59476
Conversation
|
Make check compile is failed. |
|
Compile passed in my gcc 14 envrionment, seems clang-14 doesn't support some features. |
|
Currently, I think we should use the subset of working features of both gcc and clang. And we cannot merge PRs that will fail make check or ceph builds. |
|
Yeah, still looking which part caused failure. |
cyx1231st
left a comment
There was a problem hiding this comment.
Still looking in the commit order, let's align the layout/calculations first.
|
NODE_CAPACITY related changes has been moved to #59570 I'm not familiar with test_staged_fltree, @xxhdx1985126 please take a look. |
| static_assert(sizeof(gen_t) == sizeof(ghobject_t().generation)); | ||
|
|
||
| /** | ||
| * laddr_t |
There was a problem hiding this comment.
I think that, once settled, the comment here deserves a dedicated page in the docs. We could also include there the original design idea from #55291 (comment). Referring there should be easier to understand/follow.
|
The latest layout is: |
| * ObjectDataBlock. | ||
| * | ||
| * This layout allows: | ||
| * 1. 2^23/2=4M clones per object(taking a snapshot will consume 2 clone ids) |
There was a problem hiding this comment.
Why taking a snapshot will consume 2 clone ids?
There was a problem hiding this comment.
Taking snapshots is a symmetric process for both the clone onode and the head onode. The two new base laddr of them will reference the old head address space.
There was a problem hiding this comment.
OK, I think the basic version needs 2 clone ids per clone operation.
In a longer term, probably it's possible to save clone ids from the unmodified clones.
There was a problem hiding this comment.
it's possible to save clone ids from the unmodified clones.
What does "unmodified clones" refer to?
There was a problem hiding this comment.
Meaning it isn't modified since being cloned, I think such a clone doesn't need another dedicated clone id in theory, even if the clone implementation is symmetric, right?
There was a problem hiding this comment.
Meaning it isn't modified since being cloned,
Seems this case is handled by the SnapSet of the object in PG layer? When two clones are same, the seastore won't do clone process, and when cloning started in seastore, there must be changes between two clones in SnapSet.
There was a problem hiding this comment.
(extended discussion, probably sidetracked)
I meant this is seastore internal and is related to how local-clone-id are assigned. IIUC in a simple version, during a symmetric seastore clone operation, 2 new local-clone-ids will be generated immediately and assigned to the new clone and the head. Seems to me it might be possible to save the local-clone-ids by delaying the local-clone-id allocation until the clone/head is actually modified by the seastore user.
cyx1231st
left a comment
There was a problem hiding this comment.
Still looking in the commit order.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Changes:
|
61cd58e to
b5980ee
Compare
Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
…lict policy Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
… to omap root in OMapInnerNode Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
|
Rebased. |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
Just re-tested the rebased version: 234784, 234803, 234817, 234851: https://tracker.ceph.com/issues/76745 All tests are passed except for the above known issues. |
Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
…Manager Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
…design Signed-off-by: Zhang Song <[email protected]> Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
This is consistent with classic osds Signed-off-by: Xuehan Xu <[email protected]>
recovering objects Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
transactions when committing background rewriting transactions With the 128-bit laddr key layout in place, SeaStore::rename would involve copying mappings. These mappings must also be updated when the logical extents they point to are rewritten. Signed-off-by: Xuehan Xu <[email protected]>
|
jenkins test make check arm64 |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
|
jenkins test make check arm64 |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
@xxhdx1985126 - please take a look at Teuthology test 237742. The failure there seems to be related to this PR. The assertion fails because get_child_sync requires the child node to already be linked in the parent's children array. That array is initialized to nullptrs and only populated as children are accessed via link_child. When update_paddr_sync is called on a reader transaction, it traverses the LBA tree toward the destination laddr. If the reader never traversed that particular tree path before, the internal nodes along that path will have nullptr children — regardless of load. The bug is purely a logic error: get_child_sync (which asserts all children are loaded) is used in a context where they may not be. The async get_child handles this by falling back to loading from disk or looking up the stable parent, but the sync variant just crashes. Can get_child_sync be made to handle missing entries synchronously? Partially. The stable-parent fallback in get_child (lines 359-368) is pure in-memory work — no I/O needed. You could add that path to get_child_sync: auto child = children[pos]; The deeper question is whether the fix belongs in get_child_sync at all, or whether the mechanism in _copy_mapping/maybe_sync_copied_lba_key needs rethinking — since it's calling a sync tree traversal on a reader transaction that may have an incomplete tree view. The transaction that actually created the copy mapping would have all the nodes loaded, but the callback runs on a different transaction. |
|
Hello. This PR added a new docs file /home/docs/checkouts/readthedocs.org/user_builds/ceph/checkouts/70057/doc/dev/crimson/seastore_laddr.rst: WARNING: document isn't included in any toctreeI am trying to fix all these warnings and I propose to add it to the toctree in file |
This PR is based on #59182 and implement the design at #55291 (comment)
Fixes: https://tracker.ceph.com/issues/67428
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