mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #2581] [RFC]: Mooncake Store Hardware Abstraction #678
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#678
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 @Aionw on GitHub (Jun 23, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/2581
Changes proposed
RFC: Mooncake Store Hardware Abstraction
Summary
This RFC proposes introducing a focused hardware abstraction layer inside Mooncake Store.
The current maintenance pain is mainly concentrated in two areas:
The proposed direction is:
This RFC is intended as a parent / roadmap RFC. Follow-up RFCs and PRs should define the exact interfaces and migrate existing code incrementally.
Motivation
Mooncake Store already has relatively clear abstractions for distributed storage and filesystem-backed storage. Those areas should continue to evolve within their existing interfaces.
The less clean part today is hardware-specific Store logic that leaks into common client and buffer-management paths. In particular:
This creates several problems:
The goal is not to create a broad abstraction for every Store resource. The goal is to address the current hardware hotspots directly.
Goals
#ifdefs and device-specific branches in Mooncake Store common logic.Non-goals
This RFC does not propose:
Design Principles
1. Keep the abstraction close to current pain points
The follow-up RFCs should not try to model every possible hardware resource. They should focus on accelerator-related behavior and shared memory behavior because these are the places where current conditional logic hurts review and maintenance.
2. Keep platform details behind adapters
Platform adapters may still use compile-time guards and SDK-specific code. Those details should stay local to the adapter.
Common Store code should depend on stable Store-level interfaces.
3. Make fallback explicit
If a resource does not support a required capability, Store should explicitly choose a fallback path or return a clear error.
Silent fallback makes performance and correctness issues hard to diagnose.
Follow-up RFCs / PRs
Review Guidance
Future PRs in this area should answer:
Before submitting a new issue...
@github-actions[bot] commented on GitHub (Jun 23, 2026):
Thanks for opening this issue, @Aionw!
41376987A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide
@github-actions[bot] commented on GitHub (Sep 29, 2026):
This issue has had no activity for 90 days and will be closed in 7 days if there is no further activity. Please comment or react if it should stay open.