mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #861] [Usage]: Zero-copy usage questions #263
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @khuonglmhw on GitHub (Sep 18, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/861
Describe your usage question
Hello. I have some questions related to zero-copy.
Question 1: What happens when I unregister buffer_ptr just before step 3? Can I always retrieve the correct data with zerocopy? If I cannot retrieve data correctly, does the key still exist in the mooncake? (I tried and it returned correct data but I think it might be undefined behavior)
Question 2: If I set replica = 2, how does it work for zerocopy?
Question 3: Can I correctly get multiple time with zerocopy given that buffer for put is registered and pin (kept in memory) during that time?
Thank you.
Before submitting a new issue...
@xiaguan commented on GitHub (Sep 18, 2025):
q1: In RDMA, the transfer might fail, but it could succeed over TCP.
q2: Replica isn’t related to zero-copy.
q3: Sure. You can register when the system starts up, and unregister when it shuts down. During that time, you’re free to use it.
@khuonglmhw commented on GitHub (Sep 18, 2025):
Thank you for your answer.
follow question 1, so for TCP, does it guarantee that as long as it is not evicted, I can still retrieve correct data with zerocopy?
@xiaguan commented on GitHub (Sep 18, 2025):
not sure about this... you need to register for supporting more protocols (RDMA)