mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1284] [MERGED] [Store]: Add OffsetAllocator disk backend with lock-striped metadata + refcounted extents. #2133
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#2133
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/1284
Author: @maheshrbapatu
Created: 12/26/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @ykwd
Base:
main← Head:offset_allocator_backend_1📝 Commits (4)
7e9e889[mooncake-store]: Add OffsetAllocator disk backend with lock-stripedf0bdda4[mooncake-store]: Add OffsetAllocator disk backend with lock-striped64ee3c0fix initial gemini commentsa80022ffixed all the review comments📊 Changes
4 files changed (+1687 additions, -15 deletions)
View changed files
📝
mooncake-store/include/storage_backend.h(+205 -1)📝
mooncake-store/src/file_storage.cpp(+3 -1)📝
mooncake-store/src/storage_backend.cpp(+540 -6)📝
mooncake-store/tests/storage_backend_test.cpp(+939 -7)📄 Description
Description
Introduce a new StorageBackendType::kOffsetAllocator backend that stores
all objects in a single data file (kv_cache.data) and manages free space
with OffsetAllocator.
Concurrency model (new backend only):
using hash(key) & (N-1) to reduce contention.
readers can drop locks before I/O while preventing reuse-after-free of
extents during in-flight reads.
global aggregation across shards.
Tests:
Extend unit tests to cover new backend and fix cleanup to remove
leftover directories.
Type of Change
How Has This Been Tested?
StorageBackendTest.*
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.