mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1201] [CLOSED] verify batch: service the doorbell graph per-window (ar_on), not per-… #3305
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3305
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/Niko1221/Strata/pull/1201
Author: @wOvAN
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix-batch-loan-service📝 Commits (1)
0be6a89verify batch: service the doorbell graph per-window (ar_on), not per-process📊 Changes
1 file changed (+10 additions, -5 deletions)
View changed files
📝
src/core/verify.cpp(+10 -5)📄 Description
A stage that was 100% resident at init hangs once a prompt loan/shrink/swap puts it on the doorbell graph: run_slot_rows, batch_poll and service() key the all-resident service skip off the init-time all_resident_ flag instead of the per-window ar_on(). The GPU then waits on host doorbells nobody raises (one GPU at 100%, pool idle) while the host sits in cudaStreamSynchronize, until the watchdog fires with the previous stage's stale label (the CPU experts of layer 7 — always stage 0's last serviced layer, 0 ticks).
Evidence: host backtrace of a stuck engine shows the main thread in cuStreamSynchronize called directly from run_slot_rows (post-loop sync, verified by disassembly); pool trace shows layers of stages 1+ never serviced; nvidia-smi shows the loan stage's GPU spinning while the others are idle. The token path run() already uses ar_on() — this extends the same rule to the three batch paths.
Fix: 4 one-word changes, all_resident_ → ar_on(). Verified with a loan repro (parallel 80k-token prefills in borrow mode): 11 watchdog kills before, 0 after, no content regression.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.