mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1036] [CLOSED] Fix high CPU usage from busy-wait in TransferEngineOperationState::wait_for_completion #1972
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#1972
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?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1036
Author: @Copilot
Created: 11/9/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-busy-wait-in-transfer-engine📝 Commits (4)
d554a0dInitial plan749aa74Implement adaptive backoff in TransferEngineOperationState::wait_for_completion9932749Add demonstration validating the fix reduces CPU usage266d696Remove CodeQL artifact and add to gitignore📊 Changes
2 files changed (+46 additions, -11 deletions)
View changed files
📝
.gitignore(+1 -0)📝
mooncake-store/src/transfer_task.cpp(+45 -11)📄 Description
TransferEngineOperationState::wait_for_completion()performs tight busy-wait polling without sleep, pegging CPU cores during long transfers under RDMA latency or bandwidth saturation.Changes
cv_.wait_for()with exponential backoff: 1ms → 100ms (1.5x multiplier)cv_.notify_all()inset_result_internal()for early wake-upImpact
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.