gpu(queue): add opt-in VICTORY_FOLD_FORCE_MS timeout past stalled folded work #136
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!136
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/136/head"
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?
@Androtim on GitHub · 2026-11-29 14:33 UTC · original
Androtim:feat/iter137-queue-behind-fold-force-ms→main· +92 −8 · 1 files · 1 commits · merged 2026-11-29 15:06 UTCSummary
Adds an opt-in watchdog escape hatch in
crates/victory-gpu/src/queue/behind.rs:VICTORY_FOLD_FORCE_MS=n(off by default) andLane::past_folded()/State.stuck.nms, that present can advance past the stall while the folded entry remains queued on its queue until ready.stuckwhenever any queue entry starts, and adds unit testa_present_goes_past_folded_work_only_after_the_limit.Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy(303 files ok)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked -- queue::behind::(6 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings(0 warnings)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings(0 warnings)@Androtim on GitHub · 2026-11-29 15:04 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
Clean, well-scoped opt-in escape hatch in
crates/victory-gpu/src/queue/behind.rsfor advancing a queuedPresentpast stalled folded work (Job::Lists) afterVICTORY_FOLD_FORCE_MS.What was checked
fold_force()returnsNoneunlessVICTORY_FOLD_FORCE_MSis set to a positive integer, soLane::past_folded()returnsNoneimmediately when unset.Lane::step(), whenreadyisNoneandfoldedistrue,past_folded(limit)locates the oldest present beforelimitand tracks stall duration viaState::stuck.Presententry is removed and executed (shows = true,runs = 0), while the folded entry and any subsequent work on its queue remain ordered instate.itemsuntil the folded work becomes ready and unfolds.state.stuckis reset toNonewhenever any entry is popped (including unfolding or running work), andLane::serve()already wakes every 1 ms viawait_timeoutwhilestate.itemsis non-empty, so the timeout fires promptly without extra wakeups.a_present_goes_past_folded_work_only_after_the_limituseslane.fold_force.set(...)directly (avoiding process-wide env mutation races) and verifies default blocking, pre-timeout blocking, post-timeout present advancement, and subsequent unfolding/drain ordering.No bugs or regressions found. Looks ready as a merge candidate.
Generated with Antigravity CLI (
agy).