Skip to content

[Fix] Unify pinned host pool release on graceful shutdown - #32029

Merged
hnyls2002 merged 1 commit into
mainfrom
lsyin/release-host-pools
Jul 22, 2026
Merged

hnyls2002 merged 1 commit into
mainfrom
lsyin/release-host-pools

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #31746: route the userspace release of pinned host buffers through a single BasePrefixCache.release_host_resources() interface, covering UnifiedRadixCache / HiMambaRadixCache / HostPoolGroup-backed pools and the decode offload manager, which were previously left to slow kernel-side unpinning at process reclaim.


CI States

Latest PR Test (Base): ❌ Run #29902058044
Latest PR Test (Extra): ❌ Run #29902057831

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/rerun-test test_unified_radix_cache_kl_mamba.py test_hicache_storage.py

@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test_unified_radix_cache_kl_mamba.py test_hicache_storage.py:

🚀 4-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/radix_cache/unified_radix_tree/test_unified_radix_cache_kl_mamba.py

🚀 1-gpu-5090 (1 test): ✅ View workflow run

cd test/ && python3 registered/hicache/test_hicache_storage.py

@hnyls2002
hnyls2002 merged commit 5c6a29b into main Jul 22, 2026
105 of 121 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/release-host-pools branch July 22, 2026 19:29
Jialin added a commit to Jialin/sglang that referenced this pull request Jul 25, 2026
…eeComponents + controller

Separate the pure tree (NodeId handles) from the per-component KV logic and the
cache controller, so the tree core can move to Rust independently.

Squashed from:
- Split UnifiedRadixCache into RadixTreeCore + TreeComponents + controller
- Address second-round audit findings
- Apply pre-commit import fixes
- Fix kv_canary walker fixture against the TreeCore split
- Collect host frees during eviction walks; drain at the cache layer
- Thread host_frees through the remaining eviction arms
- Fix the fourth missed host_frees arm and harden the drains
- Fold the paired eviction drains into _drain_frees
- Address review renames
- Move the size accessors to the end of UnifiedTreeCore
- Drop the component-specific NodeId accessors from UnifiedTreeCore
- Route component device-value access through generic TreeCore APIs
- Port sgl-project#30468's eagle gating to UnifiedTreeCore
- Fix lint: re-sort renamed action imports, re-black the test file
- Fix import sort in unified_radix_cache
- Split prepare hook into prepare_load_back / prepare_prefetch, adopt finalize_load_back
- Pass req into build_load_back_spec, extract mamba_pool_idx tree-side
- Guard set_component_device_value against Full, fix stale COMPONENT_REGISTRY comments
- Port the load-back prepare/finalize hook unit tests from the mamba fix
- Port the keeps-preexisting-slot load-back abort test
- Port the abort/load-failure frees-unpublished-slot load-back tests from the mamba fix

Includes trunk cooperation ports: sgl-project#30986 review-response delta, sgl-project#31230 mamba
per-path state cap, sgl-project#32029 pinned host pool release.
Zhylkaaa pushed a commit to Zhylkaaa/sglang that referenced this pull request Jul 29, 2026
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant