Competition: The 8th CCF Open Source Innovation Competition, Open Source Task Challenge Track.
Task: Mooncake KVCache storage design and performance optimization.
Official Topic-2 Alignment - 2026-07-06
This package is now explicitly aligned to official Mooncake track track2_2026Mooncake, 赛题2:优化 Mooncake Store 吞吐性能、高可用功能和可扩展性,优化 SGLang HiCache + Mooncake Store 性能.
The precise positioning is:
Mooncake Store fragmentation-aware allocation for Store scalability/performance stability
This is not a generic KVCache proposal. The implemented patch targets Mooncake Store segment allocation for mixed-size KVCache objects. The expected competition value is fewer avoidable failed allocation attempts, lower fallback pressure, and more stable large-object placement when long-running Store memory pools become fragmented. SGLang HiCache relevance is through its Mooncake Store backend path; no real SGLang HiCache benchmark is claimed.
This submission adds a new Mooncake Store allocation strategy named fragmentation_aware. The strategy improves allocation decisions for mixed-size KV cache workloads by considering the largest contiguous free region in each candidate segment, not only the aggregate free-space ratio.
The feature is designed to reduce failed allocation attempts in long-running clusters where memory becomes fragmented. It keeps Mooncake’s existing best-effort replica semantics and uses a bounded sampled candidate set to avoid full-cluster scans.
Nightly Update - 2026-07-03
This package now includes a PR-ready patch regenerated against current upstream Mooncake:
The earlier mooncake_fragmentation_aware.patch is retained for traceability, but the 2026-07-03 patch is the preferred review artifact because it passes git apply --check against the current upstream commit.
Additional evidence added:
official_verification_20260703.md
quantitative_metrics_20260703.md
patch_pr_ready_notes_20260703.md
final_report.md
NIGHTLY_IMPROVEMENT_REPORT.md
New logs under logs\*20260703*
Final nightly package path and SHA256 are recorded in NIGHTLY_IMPROVEMENT_REPORT.md.
Key Deliverables
New AllocationStrategyType::FRAGMENTATION_AWARE.
New FragmentationAwareAllocationStrategy.
Master startup support via --allocation_strategy=fragmentation_aware.
Unit test covering a deterministic fragmentation scenario.
Allocation benchmark matrix support for the new strategy.
Updated design, deployment, and quick-start documentation.
TCP-only / old-libibverbs build compatibility fixes needed for local
validation on Ubuntu 20.04.
Local verification results are recorded in C:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\testing.md2_Mooncake_FragmentationAware\testing.md and C:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\logs2_Mooncake_FragmentationAware\logs.
topic_aligned_store_scalability_sim_20260706.log: passed; deterministic topic-2 simulation shows primary fit success improved from 0/6 to 6/6 and fallback attempts reduced from 11 to 0 in the synthetic fragmented Store scenario.
Mooncake Fragmentation-Aware Allocation Strategy
Competition: The 8th CCF Open Source Innovation Competition, Open Source Task Challenge Track.
Task: Mooncake KVCache storage design and performance optimization.
Official Topic-2 Alignment - 2026-07-06
This package is now explicitly aligned to official Mooncake track
track2_2026Mooncake, 赛题2:优化 Mooncake Store 吞吐性能、高可用功能和可扩展性,优化 SGLang HiCache + Mooncake Store 性能.The precise positioning is:
Mooncake Store fragmentation-aware allocation for Store scalability/performance stabilityThis is not a generic KVCache proposal. The implemented patch targets Mooncake Store segment allocation for mixed-size KVCache objects. The expected competition value is fewer avoidable failed allocation attempts, lower fallback pressure, and more stable large-object placement when long-running Store memory pools become fragmented. SGLang HiCache relevance is through its Mooncake Store backend path; no real SGLang HiCache benchmark is claimed.
New topic-alignment artifacts:
OFFICIAL_TOPIC_ALIGNMENT.mdtopic_alignment_metrics_20260706.mdrepro/topic_aligned_store_scalability_sim.cpplogs/topic_aligned_store_scalability_sim_20260706.logTOPIC_ALIGNMENT_REPORT.mdWork Summary
This submission adds a new Mooncake Store allocation strategy named
fragmentation_aware. The strategy improves allocation decisions for mixed-size KV cache workloads by considering the largest contiguous free region in each candidate segment, not only the aggregate free-space ratio.The feature is designed to reduce failed allocation attempts in long-running clusters where memory becomes fragmented. It keeps Mooncake’s existing best-effort replica semantics and uses a bounded sampled candidate set to avoid full-cluster scans.
Nightly Update - 2026-07-03
This package now includes a PR-ready patch regenerated against current upstream Mooncake:
mooncake_fragmentation_aware_pr_ready_20260703.patchBaseline:
kvcache-ai/Mooncake@a325291c6baccc872ce137bd0c58d5791ac4e8c4The earlier
mooncake_fragmentation_aware.patchis retained for traceability, but the 2026-07-03 patch is the preferred review artifact because it passesgit apply --checkagainst the current upstream commit.Additional evidence added:
official_verification_20260703.mdquantitative_metrics_20260703.mdpatch_pr_ready_notes_20260703.mdfinal_report.mdNIGHTLY_IMPROVEMENT_REPORT.mdlogs\*20260703*NIGHTLY_IMPROVEMENT_REPORT.md.Key Deliverables
AllocationStrategyType::FRAGMENTATION_AWARE.FragmentationAwareAllocationStrategy.--allocation_strategy=fragmentation_aware.Repository
Current scoped working repository:
C:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\upstream\Mooncake2_Mooncake_FragmentationAware\upstream\MooncakeCurrent upstream baseline:
a325291c6baccc872ce137bd0c58d5791ac4e8c4Usage
Start Mooncake master with:
For HTTP metadata quick start:
Status
Implementation patch is prepared at:
C:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\mooncake_fragmentation_aware_pr_ready_20260703.patch2_Mooncake_FragmentationAware\mooncake_fragmentation_aware_pr_ready_20260703.patchLocal verification results are recorded in
C:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\testing.md2_Mooncake_FragmentationAware\testing.mdandC:\CCFOpenSource:\CCFOpenSource\02_Mooncake_FragmentationAware\logs2_Mooncake_FragmentationAware\logs.Primary local validation:
allocation_strategy_light_test.log: passed.fragmentation_aware_sim.log: passed.fragmentation_aware_sim_verify_20260703_0002.log: passed.fragmentation_aware_metrics_verify_20260703_0002.log: passed.topic_aligned_store_scalability_sim_20260706.log: passed; deterministic topic-2 simulation shows primary fit success improved from 0/6 to 6/6 and fallback attempts reduced from 11 to 0 in the synthetic fragmented Store scenario.git_apply_check_pr_ready_20260703_0002.log: PR-ready patch apply check passed.