Repository navigation
[Bugfix][TENT] Split oversized UB memory registrations - #64
Open
Connor-Matthew wants to merge 3 commits into
Open
Connor-Matthew wants to merge 3 commits into
Connor-Matthew wants to merge 3 commits into
Conversation
Signed-off-by: Connor-Matthew <60215777+Connor-Matthew@users.noreply.github.com>
- Resolve remote UB chunk metadata outside lifecycle_mutex, grouped by target_id and deduplicated per remote buffer, so cache misses or refresh RPCs cannot block transport operations. - Keep batch isolation in submitTransferTasks by falling back to regular slicing for individually unresolved local/remote requests so UbWorkers handles per-task failure/retry without failing valid sibling requests. - Align ImportedSegmentRef::buffer_base/buffer_length with the selected chunk (matching LocalSegmentRef) and clear output vector in localChunkEnds. - Extract planBufferChunks() and add deterministic tests for HugeTLB/mixed-VMA seam alignment, post-split max_slices_per_task enforcement, warmupMemory cap, and mixed-batch isolation. Signed-off-by: Connor-Matthew <60215777+Connor-Matthew@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Classic UB gained large-buffer registration in kvcache-ai#5873. Native TENT UB still registered the whole range as a single URMA segment, so a buffer above the provider's segment limit could not be registered. This PR extends native TENT UB independently: it uses
MC_MAX_SEG_SIZEto split physical registrations while keeping a single caller-visible buffer, splits requests at both peers' chunk boundaries, and keeps the still-owned handles on partial cleanup. Single-chunk metadata retains its existing format. Both peers need this version for multi-chunk UB buffers.Suggested Merge Priority
Module
mooncake-transfer-engine)Type of Change
How Has This Been Tested?
tent_ub_core_test,tent_ub_teardown_test,tent_ub_native_data_path_test, andtent_ub_loopback_engine_testpassed. With a mocked URMA segment cap, the baseline rejects the oversized registration and the fix verifies every byte of READ and WRITE across different local and remote chunk boundaries.Checklist
AI Assistance Disclosure