Repository navigation
Conversation
Would be cleaned up entirely once the pr undrafted. Signed-off-by: Matan Breizman <[email protected]>
The change in this commit would probably deserve a *separate PR* We should break the relation between btree/btree_types to types such as: * BtreeCursor * lba_map_val_t As they should be flexible independent types. The removed lba_map_val_t which is removed in this commit will be moved to new lba_types file in the next commits (until a proper PR is out). Signed-off-by: Matan Breizman <[email protected]>
* include the moved lba_map_val_t * include LBAOverlayCursor and the releated data types needed. Signed-off-by: Matan Breizman <[email protected]>
LogicalChildNode shouldn't be aware of the underlying btree relation. Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
``` /** * LBAOverlayManager * A projection layer over LBAManager for transactions. * Users (e.g. TransactionManager) only see overlaid (cached) mapping changes. * Cursors returned here are LBAOverlayCursor and reflect uncommitted updates. * LBAOverlayManager records ops to let the underlying * LBAManager replay then at commit time. * * Main path: * - get_cursor() - return an LBAOverlayCursor composed from the * overlay (if any) or the base LBAManager view. * * - mutations - enqueue a deferred op via apply_overlay_op() * and update/return the overlay view via * apply_transaction_overlay(). * Example: alloc_extent(s), update_mapping_refcount.. * * - commit_overlay() - walk the per-txn queued ops in a serilzed order * and call the matching LBAManager ops. * (alloc_* / update_mapping* / remap_mappings / remove), * then clear the overlay state. * * Notes: * - Overlay is txn-local, base LBA tree is *unchanged* until commit. * - This goal here is to avoid conflicts from shared LBA nodes. * * See: revised conflict-handling design paper. */ ``` Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
54e377c to
4ca162f
Compare
|
My concern is mainly about how we'd deal with lba mapping removal, which may need extra disk reads to load nodes to be merged, which wouldn't be known until we actually do the removal. My suggestion for now is that, maybe we can do the modifications in the lba overlay just like the current implementation, and rely on the What do you think? @Matan-B @athanatos |
That case should be rare. We could make it even more rare by caching the next node whenever a cached LBANode is relatively empty. As you suggest, the alternative would be merging those node updates and merges at commit time as in the current implementation. That strikes me as pretty complicated since transaction 1 might split or merge a node mutated by transaction 2, but it's probably worth considering since a lot of it already exists. @Matan-B Going that direction would generally avoid the need for the overlay structure, it would probably be worth it for you to read through how that mechanism currently works in detail. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Looking into extending merging extents at commit time. Similarly to #67589 merges on TRIM/DIRTY* txns. |
|
The best approach here seems to be dropping the Overlay proposal and extend ExtentCommitter instead. Overlay culprits
Missing bits (to remove conflicts altogether)
Most of the complexity seems to be rather solved, @xxhdx1985126 please correct me if I'm wrong:
If txn B has a pending |
Yes, I think so, too:-)
I don't quite follow this part, it looks to me that we don't need to record extra information in the journal as the actual modifications already happen in |
I agree, nice detailed analysis and future steps! |
|
Closing for #68127 |
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.