Distinguish descriptor slot exhaustion from fragmentation #1508

Manually merged
github merged 1 commit from github-bot/gh-1508 into main 2026-11-29 08:21:57 +00:00 AGit
Owner

@⁠Nazzgy on GitHub · 2026-11-28 21:02 UTC · original
Nazzgy:codex/descriptor-miss-cause → main · +11 −3 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Distinguish descriptor heap exhaustion from fragmentation

The allocation path needs one contiguous run of dynamic descriptors for a fresh table. Its first failed allocation currently reports the requested size alone. The same warning can indicate a shortage of free slots or fragmentation even when the total number of free slots is sufficient. The two cases require different fixes, especially on capped hosts where reserving more dynamic slots reduces the title's usable slots.

Include the free count, dynamic capacity and whether the free count was sufficient at the allocation miss. Use the free count already read under the allocator lock. Keep the existing once-per-process warning and allocation behavior.

The previous live run produced 1,564 dropped table binds in one sampled interval. That run predates these fields, so its log leaves the cause unresolved. The patch applies on upstream main at 923e38cc8c. Isolated index apply and whitespace checks passed.

Overlap check

  • #1462 counts failed table binds per reporting interval. This candidate records the reason at the first allocation miss. #1462
  • #1467 releases slots at completed host fences. The existing local relay retry remains a separate topic with that dependency. #821 proposed a similar retry and was closed. #1467 #821
  • #704 already preserves its fragmentation hint after no-op releases and tests that rule. Keep local-only-overlaps-704.patch out of submission. #444 replaces the underlying scan while retaining the old warning. #1358 batches slot returns and touches the release code. #704 #444 #1358

The combined run reproduced an allocation miss and identified capacity exhaustion with n=1 free=0 capacity=262144 fragmented=false. The sampled counters still recorded 26 missed binds during loading. The focused allocator regression passed in the combined workspace.

**@⁠Nazzgy** on GitHub · 2026-11-28 21:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1508) `Nazzgy:codex/descriptor-miss-cause` → `main` · +11 −3 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC # Distinguish descriptor heap exhaustion from fragmentation The allocation path needs one contiguous run of dynamic descriptors for a fresh table. Its first failed allocation currently reports the requested size alone. The same warning can indicate a shortage of free slots or fragmentation even when the total number of free slots is sufficient. The two cases require different fixes, especially on capped hosts where reserving more dynamic slots reduces the title's usable slots. Include the free count, dynamic capacity and whether the free count was sufficient at the allocation miss. Use the free count already read under the allocator lock. Keep the existing once-per-process warning and allocation behavior. The previous live run produced 1,564 dropped table binds in one sampled interval. That run predates these fields, so its log leaves the cause unresolved. The patch applies on upstream main at 923e38cc8c92cd1c42090076382138538f2bb487. Isolated index apply and whitespace checks passed. ## Overlap check - #1462 counts failed table binds per reporting interval. This candidate records the reason at the first allocation miss. [#1462](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1462) - #1467 releases slots at completed host fences. The existing local relay retry remains a separate topic with that dependency. #821 proposed a similar retry and was closed. [#1467](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1467) [#821](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/821) - #704 already preserves its fragmentation hint after no-op releases and tests that rule. Keep local-only-overlaps-704.patch out of submission. #444 replaces the underlying scan while retaining the old warning. #1358 batches slot returns and touches the release code. [#704](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/704) [#444](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/444) [#1358](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1358) The combined run reproduced an allocation miss and identified capacity exhaustion with `n=1 free=0 capacity=262144 fragmented=false`. The sampled counters still recorded 26 missed binds during loading. The focused allocator regression passed in the combined workspace.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:02:45 +00:00
github-bot changed title from feat(gpu): distinguish descriptor slot exhaustion from fragmentation to [pr-diagnostics] Distinguish descriptor slot exhaustion from fragmentation 2026-11-28 21:13:45 +00:00
github-bot changed title from [pr-diagnostics] Distinguish descriptor slot exhaustion from fragmentation to Distinguish descriptor slot exhaustion from fragmentation 2026-11-28 21:37:39 +00:00
github manually merged commit cc249adb3f into main 2026-11-29 08:21:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1508
No description provided.