Serialize launcher pipeline warmup #20

Closed
github-bot wants to merge 4 commits from gh-pr/20/head into gh-pr/20/base
Owner

@⁠BottyIvan on GitHub · 2026-11-29 15:27 UTC · original
BottyIvan:pr/serial-pipeline-warmup → main · +90 −8 · 3 files · 4 commits · closed without merging

Summary

  • Run the launcher Prepare pipeline warmup with one worker to avoid concurrent access to the VKD3D-Proton pipeline cache.
  • Retry previously made pipelines with --again, use a 60-second silent-worker timeout, and report VKD3D cache sizes.

Validation

  • After merging upstream main 1afad58, the launcher self-test and 8 warm tests passed under Proton; the diagnostic build succeeded.
  • Manual Prepare on RX 7800 XT / Fedora / Proton: 19 recorded pipelines remade with one process in 1 s; no missing host pipelines or worker failures. The reported VKD3D cache size was 0.01 MiB before and after, and no exclusive cache-write errors appeared in that run.
  • The shader scan reported 195 unsupported shader containers and skipped 16 files above its size limit; these are separate from the pipeline warmup results.
  • An earlier local run made 2,651 pipelines; see the comment for the separate one-versus-four-worker comparison and its limitations.
  • Draft pending review and CI.
**@⁠BottyIvan** on GitHub · 2026-11-29 15:27 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20) `BottyIvan:pr/serial-pipeline-warmup` → `main` · +90 −8 · 3 files · 4 commits · closed without merging ## Summary - Run the launcher Prepare pipeline warmup with one worker to avoid concurrent access to the VKD3D-Proton pipeline cache. - Retry previously made pipelines with `--again`, use a 60-second silent-worker timeout, and report VKD3D cache sizes. ## Validation - After merging upstream main `1afad58`, the launcher self-test and 8 warm tests passed under Proton; the diagnostic build succeeded. - Manual Prepare on RX 7800 XT / Fedora / Proton: 19 recorded pipelines remade with one process in 1 s; no missing host pipelines or worker failures. The reported VKD3D cache size was 0.01 MiB before and after, and no exclusive cache-write errors appeared in that run. - The shader scan reported 195 unsupported shader containers and skipped 16 files above its size limit; these are separate from the pipeline warmup results. - An earlier local run made 2,651 pipelines; see the comment for the separate one-versus-four-worker comparison and its limitations. - Draft pending review and CI.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 03:06:29 +00:00
github-bot closed this pull request 2026-12-01 03:06:29 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-29 22:01 UTC · original

Thank you for finding this. I see the same thing: one of my Prepare logs with 10 processes has 111 of these write errors. I want to compare the time and the number of saved entries with one process and with many before deciding. Two things I noticed: pipelines already marked as made are skipped, so people who prepared before get nothing new without --again, and a pipeline that hangs holds the single worker for 180 s. If you have times or cache sizes from before and after, they would help.

**@⁠Slaktarn700** on GitHub · 2026-11-29 22:01 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20#issuecomment-7263335769) Thank you for finding this. I see the same thing: one of my Prepare logs with 10 processes has 111 of these write errors. I want to compare the time and the number of saved entries with one process and with many before deciding. Two things I noticed: pipelines already marked as made are skipped, so people who prepared before get nothing new without `--again`, and a pipeline that hangs holds the single worker for 180 s. If you have times or cache sizes from before and after, they would help.
Author
Owner

@⁠BottyIvan on GitHub · 2026-11-30 23:39 UTC · original

I tested the updated Prepare flow: --used --jobs 1 --again completed all 19 recorded pipelines without worker failures.

I also compared 1 and 4 jobs on the same 160 pipelines, starting from separate copies of the existing cache:

Jobs Wall time Cache size before → after
1 3.84 s 6,560 → 53,088 bytes
4 1.87 s 6,560 → 18,288 bytes

Both runs reported 160 pipelines made, but VKD3D logged three exclusive write-file errors with 4 jobs. The smaller cache is concerning, although I haven't verified the saved entry counts. This was a single warm-cache comparison on an RX 7800 XT, so it isn't a conclusive performance benchmark.

My local changes also add --again, reduce the silent-worker timeout to 60 seconds and report cache size before and after.

**@⁠BottyIvan** on GitHub · 2026-11-30 23:39 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20#issuecomment-7295373848) I tested the updated Prepare flow: `--used --jobs 1 --again` completed all 19 recorded pipelines without worker failures. I also compared 1 and 4 jobs on the same 160 pipelines, starting from separate copies of the existing cache: | Jobs | Wall time | Cache size before → after | |---|---:|---:| | 1 | 3.84 s | 6,560 → 53,088 bytes | | 4 | 1.87 s | 6,560 → 18,288 bytes | Both runs reported 160 pipelines made, but VKD3D logged three exclusive write-file errors with 4 jobs. The smaller cache is concerning, although I haven't verified the saved entry counts. This was a single warm-cache comparison on an RX 7800 XT, so it isn't a conclusive performance benchmark. My local changes also add `--again`, reduce the silent-worker timeout to 60 seconds and report cache size before and after.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-30 23:57 UTC · original

Thank you for the measurements; the lost cache entries with several jobs are the kind of proof I was missing. Could you put your local changes (--again, the 60 s limit, the cache sizes) into this pull request? It still holds only the commits from 29 November, and it conflicts with main now (1afad58), so it needs a rebase as well. If a rebase is a nuisance, a new pull request against main is just as good.

**@⁠Slaktarn700** on GitHub · 2026-11-30 23:57 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20#issuecomment-7295727439) Thank you for the measurements; the lost cache entries with several jobs are the kind of proof I was missing. Could you put your local changes (`--again`, the 60 s limit, the cache sizes) into this pull request? It still holds only the commits from 29 November, and it conflicts with main now (1afad58), so it needs a rebase as well. If a rebase is a nuisance, a new pull request against main is just as good.
Author
Owner

@⁠BottyIvan on GitHub · 2026-12-01 00:23 UTC · original

I pushed the requested changes and merged main at 1afad58 into this branch (rather than rebasing).

I retested Prepare on Fedora / Proton with an RX 7800 XT: --used --jobs 1 --again remade all 19 recorded pipelines in 1 s, with no worker failures or exclusive cache-write errors. The reported VKD3D cache size was 0.01 MiB both before and after; this was a small run on an existing cache, not a new benchmark.

The preceding shader scan separately reported 195 unsupported containers and skipped 16 files above its size limit. The earlier 1-versus-4-worker comparison remains in my previous comment. The launcher self-test and 8 warm tests also passed after the merge.

**@⁠BottyIvan** on GitHub · 2026-12-01 00:23 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20#issuecomment-7296279579) I pushed the requested changes and merged main at `1afad58` into this branch (rather than rebasing). I retested Prepare on Fedora / Proton with an RX 7800 XT: `--used --jobs 1 --again` remade all 19 recorded pipelines in 1 s, with no worker failures or exclusive cache-write errors. The reported VKD3D cache size was 0.01 MiB both before and after; this was a small run on an existing cache, not a new benchmark. The preceding shader scan separately reported 195 unsupported containers and skipped 16 files above its size limit. The earlier 1-versus-4-worker comparison remains in my previous comment. The launcher self-test and 8 warm tests also passed after the merge.
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-01 02:18 UTC · original

I measured it: 600 recorded pipelines on empty caches take 204 s with one worker and 52 s with ten here, and loading them afterwards takes 38 and 37 s, so the lost cache writes cost nothing I can measure; pipelines of up to 34 s would also be marked bad by the 60 s limit on slower PCs. So I will not take it, but the finding and the tests were good work.

**@⁠Slaktarn700** on GitHub · 2026-12-01 02:18 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/20#issuecomment-7298461404) I measured it: 600 recorded pipelines on empty caches take 204 s with one worker and 52 s with ten here, and loading them afterwards takes 38 and 37 s, so the lost cache writes cost nothing I can measure; pipelines of up to 34 s would also be marked bad by the 60 s limit on slower PCs. So I will not take it, but the finding and the tests were good work.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.