victory-gpu: skip known warm-bad.txt pipelines during live compilation #412
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/412"
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?
Imported from readmet3xt-lab/foxhound. Originally posted by kwaadrat on 2026-12-01T23:33:05Z.
Summary
warm-bad.txt(written byvictory warmwhen a pipeline hangs or crashes its worker process) invictory_gpu::pipeline::library::bad, cached once in aOnceLock<HashSet<String>>.left_outinPending::new(crates/victory-gpu/src/pipeline/make.rs) so in-game worker threads never queue or stall on pipelines already known to hang or crash the driver/compiler.Problem
victory warmruns compilations in isolated child processes with a 180 s watchdog and records failing pipeline keys inwarm-bad.txt(e.g.4cb6add108d16861be59755a103be250 hung for 180 s,38 badtotal onvkd3d-proton).However, live in-game compilation in
pipeline::makeonly consultedslow-pipelines.txtand never checkedwarm-bad.txt. When a player skipswarm(or hits a cold scene), the in-game worker pool runs in-process without a watchdog — hitting any of thosewarm-bad.txtpipelines wedges worker threads indefinitely and stalls the rest of the queue.Observed before/after (RTX 3060 12 GB / i5-9600KF / Proton Experimental)
foxhound-20261202-002156.log):being madestayed frozen at1763–1764across multiple minutes while draws continued to be dropped (dropped 2346 without a host pipeline (1764 being made)).foxhound-20261202-003110.log):being madedrained steadily without wedging workers (1029 -> 917 -> 829 -> 736over 15 seconds, ~20 pipelines/s).Design Notes
slow_ones()inlibrary.rs, reading from the samepipelinesdirectory (DIR).OnceLock<HashSet<String>>so lookups inPending::neware lock-free after initialization.Pending::left_outso skipped pipelines are never queued, never waited on, and accurately accounted for intake_left_out()instead of inflatingbeing made.Verification
victory.exeonwindows-latest(cargo build --release --locked -p victory) and verified live pipeline queue progression on cold/skipped runs.Imported from readmet3xt-lab/foxhound. Originally posted by readmet3xt-lab on 2026-12-02T01:48:52Z.
Thank you, this is a real fault: a pipeline that hung
victory warmcan wedge a worker in the running game, since live compilation has no watchdog. We'd like to take it with three changes: skip only entries written by the current driver and translator (so a pipeline that hung once under an old driver gets tried again), log once at start how many are skipped and that deletingwarm-bad.txtretries them, and a switch to turn it off. If you'd like to make those changes, great; otherwise we'll port it with credit.Imported from readmet3xt-lab/foxhound. Originally posted by kwaadrat on 2026-12-02T06:51:10Z.
Updated in
3fda5aawith all three requested changes:warm-bad.txt:victory warmnow writes<fingerprint> <key> <why>(matchingwarm-done.txt), and bothwarm.rsandlibrary::badfilter entries against the currentknown::fingerprint()(so entries from an older driver/translator or the old un-tagged format are retried automatically).library::badlogs once viatracing::info!when entries are skipped (skipping pipelines listed in warm-bad.txt for this driver and translator (delete warm-bad.txt or set VICTORY_SKIP_BAD=0 to retry them)).VICTORY_SKIP_BAD=0to turn off skipping (skip_bad_on()).Also added a unit test (
parse_bad_filters_by_current_fingerprint) incrates/victory-gpu/src/pipeline/library.rs.Pull request closed