warm: no sync per prepared pipeline, VICTORY_WARM_JOBS sets the processes #270
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!270
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-270"
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?
@felipebdn on GitHub · 2026-12-02 23:40 UTC · original
felipebdn:warm/jobs-and-sync→main· +27 −1 · 3 files · 1 commits · merged 2026-12-03 02:05 UTCWhat
victory warmno longer syncs each prepared pipeline's file to the disk as it writes it. The kernel's writeback handles it. A file that a power cut leaves short fails its blake3 hash on load and is made again.VICTORY_WARM_SYNC=1restores the old per-file sync.VICTORY_WARM_JOBS=<n>(1 to 64) sets the number of warm processes. The default is unchanged: two thirds of the logical processors, at most 16, limited by memory.run.conf.default(empty by default) and in the README table.Why
On btrfs over LUKS, the per-file
sync_allkept the workers waiting in the filesystem's log commit, not compiling (/proc/<pid>/wchan:btrfs_sync_log,wait_log_commit).Same machine, same 94,283 pipelines (Ryzen 7 7800X3D, 16 threads, RX 9070 XT, 30 GB RAM):
The warm resumed from its
warm-donelist across the change. Each worker used about 200–280 MB resident at 32 processes.Testing
./build.sh(release) builds without warnings../build.sh test -p victory-corepasses, including the menu tests that parserun.conf.default.VICTORY_WARM_JOBS=32, over two runs (the second resumed at 90,699). The game then started and loaded the prepared pipelines from disk ("native pipelines restored"), with 0 bad.🤖 Generated with Claude Code
@wrz1911 on GitHub · 2026-12-03 14:13 UTC · original
Related data point: on a 24-thread CPU (Core Ultra 7 270K Plus), warm hangs above 12 jobs — workers stop making progress,
unresponsive for 45 slines accumulate and warm-done stays 0. 12 jobs works (~44 pipelines/s avg). Details and environment: #325.