warm: a worker's start is not its first pipeline's time #343

Manually merged
github merged 1 commit from github-bot/gh-343 into gh-pr/343/base 2026-12-03 18:34:27 +00:00 AGit
Owner

@⁠mateozariquiey on GitHub · 2026-12-03 18:15 UTC · original
mateozariquiey:pr/warm-start → main · +58 −2 · 2 files · 1 commits · merged 2026-12-03 18:26 UTC

Probably the cause of the stall in #325 (measured on another machine, not reproduced on that one).

Cause. victory warm gives a pipeline 45 s (LONGEST), counted from the worker's last line. A worker read the catalogue and opened the card inside its first pipeline, so those 45 s also covered the worker's own start. On an i7-10700K (16 threads) with an RX 9070, ten workers started at once took 55 s each to start: the first pipeline of each was listed in warm-bad.txt as unresponsive for 45 s and the title no longer made it (389 pipelines in one run).

Change. The card is opened before the first pipeline is named (known::make), and until a worker names one it has 300 s to start (STARTING). A worker that does not start in that time is an error of the run, with no pipeline listed. Once it has named a pipeline, each has the 45 s of before.

Tested. i7-10700K, RX 9070, RADV, 10 processes, on a tree based on 842767a: 94,841 of 94,841 pipelines made, none listed as bad (389 before). New test a_slow_start_is_not_a_hung_pipeline; the warm:: tests pass on 45591b0.

Limits. Not tried on the 24-thread machine of #325: no progress at all with 14 or more workers fits a start longer than 45 s there, but I could not confirm it. It does not replace #336 (fewer workers by default).

**@⁠mateozariquiey** on GitHub · 2026-12-03 18:15 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/343) `mateozariquiey:pr/warm-start` → `main` · +58 −2 · 2 files · 1 commits · merged 2026-12-03 18:26 UTC Probably the cause of the stall in #325 (measured on another machine, not reproduced on that one). **Cause.** `victory warm` gives a pipeline 45 s (`LONGEST`), counted from the worker's last line. A worker read the catalogue and opened the card inside its first pipeline, so those 45 s also covered the worker's own start. On an i7-10700K (16 threads) with an RX 9070, ten workers started at once took 55 s each to start: the first pipeline of each was listed in `warm-bad.txt` as `unresponsive for 45 s` and the title no longer made it (389 pipelines in one run). **Change.** The card is opened before the first pipeline is named (`known::make`), and until a worker names one it has 300 s to start (`STARTING`). A worker that does not start in that time is an error of the run, with no pipeline listed. Once it has named a pipeline, each has the 45 s of before. **Tested.** i7-10700K, RX 9070, RADV, 10 processes, on a tree based on 842767a: 94,841 of 94,841 pipelines made, none listed as bad (389 before). New test `a_slow_start_is_not_a_hung_pipeline`; the `warm::` tests pass on 45591b0. **Limits.** Not tried on the 24-thread machine of #325: no progress at all with 14 or more workers fits a start longer than 45 s there, but I could not confirm it. It does not replace #336 (fewer workers by default).
A worker opened the card inside its first pipeline, and the 45 s a pipeline
may take were counted from the worker's start. Ten workers started at once
took 55 s each to start, so the first pipeline of each was listed in
warm-bad.txt and the title no longer made it (389 of them in one run).

The card is now opened before the first pipeline is named, and until a
worker names one it has 300 s to start. One that does not is an error of
the run, with no pipeline listed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 18:20:09 +00:00
github-bot changed target branch from main to gh-pr/343/base 2026-12-03 18:30:59 +00:00
github manually merged commit bf82ac5c47 into gh-pr/343/base 2026-12-03 18:34:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.