Repository navigation
perf: coalesce physical growth retries and signal released capacity - #488
Draft
shipiyouniao wants to merge 3 commits into
Draft
shipiyouniao wants to merge 3 commits into
shipiyouniao wants to merge 3 commits into
Conversation
This was referenced Sep 14, 2026
shipiyouniao
force-pushed
the
feature/physical-growth-capacity-retry
branch
from
September 14, 2026 16:55
fa38962 to
5de0990
Compare
This was referenced Sep 22, 2026
shipiyouniao
force-pushed
the
feature/physical-growth-capacity-retry
branch
from
September 24, 2026 11:26
5de0990 to
06dcc3d
Compare
Closed
11 of 20 tasks
shipiyouniao
force-pushed
the
feature/physical-growth-capacity-retry
branch
from
October 19, 2026 05:33
e65d369 to
713ed22
Compare
Co-authored-by: 石皮幼鸟 <2960474346@qq.com>
shipiyouniao
force-pushed
the
feature/physical-growth-capacity-retry
branch
from
October 19, 2026 07:32
713ed22 to
635c03c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Inherits #574's tests through #455; the tests are not duplicated in this PR's own commit.
After a confirmed physical-capacity rejection, repeating the same growth transaction adds IPC without creating memory. This optional layer over #455 delays repeated single-page growth and wakes it after a successful physical release changes a per-GPU token.
Mapped free blocks and resident reservations remain usable during backoff. Tokens are best-effort hints, not capacity grants; missing signals fall back to timer probes. Notifications are published only after ordered unmap succeeds. The native ledger remains the authority for each new grant.
Rebased onto the refreshed #455, preserving main's lifecycle, resize/reclaim and counter implementation. A rejected multi-page background preallocation no longer suppresses smaller foreground growth: failure to reserve several pages does not prove one page is unavailable. This narrows the existing retry gate without adding an RPC or lock to successful allocation.
Dependency: #455; #489 is an independent sibling. Review this PR's own change against 2cc3240, rather than its cumulative main diff.
Private validation at the final head: Python 3.11 CPU 1,553 passed / 15 skipped; rebuilt native extension on one GPU 98 passed / 3 two-GPU tests skipped. C++ checks, all-file pre-commit and strict MyPy targets 3.10-3.13 passed. Dedicated Codex review found no actionable regressions; its local platform limitations are covered by the private Linux runs. The updated head will run the Python 3.10-3.13 PR CI matrix.
No new serving-throughput or multi-GPU claim. Draft state remains unchanged.