Repository navigation
[Bugfix][Store] Use memcpy instead of loopback TCP when getting offload objects in the same process - #5781
[Bugfix][Store] Use memcpy instead of loopback TCP when getting offload objects in the same process#5781bistack wants to merge 1 commit into
Conversation
5247065 to
b4dc9e5
Compare
b4dc9e5 to
2cc3b6c
Compare
2cc3b6c to
2517047
Compare
…ts in the same process Getting an offload object whose source lives in this process went through the transfer engine over loopback TCP instead of a local memcpy: local memcpy was selected only for requests flagged kLocalAddress, and these requests are not flagged that way. With MC_STORE_MEMCPY=1, use local memcpy whenever the source is in this process, for either buffer access mode. A kLocalAddress request whose source is not in this process is still rejected. Signed-off-by: Sun Zhenyuan <zhenyuan.sun@163.com>
2517047 to
8cc2923
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
@ykwd Could you help with this PR? The latest CI run (Build & Test (Linux), run 45327885081) has failing checks, but they are caused by infrastructure interruptions rather than the code change:
All other checks passed (format, Ruff, typos, macOS build, wheel builds for CU13 / CU13-arm64 / ROCm / XPU, EFA unit tests, test-wheel-ubuntu, and the other three Since re-running requires write access, could you please re-run the failed jobs of that run? A code review of the memcpy change in cc @stmatengss |
Description
Getting an offload object whose source lives in this process went through the transfer engine over loopback TCP instead of a local
memcpy. Local memcpy was selected only for requests flaggedkLocalAddress, and these requests are not flagged that way.With
MC_STORE_MEMCPY=1, local memcpy is now used whenever the source is in this process, for either buffer access mode. AkLocalAddressrequest whose source is not in this process is still rejected.Suggested Merge Priority
Module
mooncake-store)Type of Change
How Has This Been Tested?
Test commands:
./scripts/code_format.sh --changed-lines --check pre-commit run --files mooncake-store/src/transfer_task.cpp mooncake-store/tests/transfer_task_test.cpp ./mooncake-store/tests/transfer_task_test --gtest_filter='TransferTaskTest.BatchGetOffloadObject*'Test results:
Checklist
Signed-off-bytrailer certifying the DCO./scripts/code_format.shAI Assistance Disclosure
OpenAI Codex assisted with the initial version of the change. ZCode (powered by GLM-5.4) prepared the branch, simplified the condition and its comment, ran the local checks, and wrote this description.