Skip to content

startup: let run.ps1 and run.sh turn off the hook thread holding - #3332

Merged
JohnConnorNPC merged 1 commit into
R0Y00:mainfrom
lukaslw-lab:startup/run-suspend-others
Nov 28, 2026
Merged

JohnConnorNPC merged 1 commit into
R0Y00:mainfrom
lukaslw-lab:startup/run-suspend-others

Conversation

@lukaslw-lab

Copy link
Copy Markdown
Contributor

Change

Fixes #3331. run.ps1 -SuspendOthers 0 and run.sh --suspend-others 0 pass --suspend-others 0 to
debug_launch.py (#1408's option). The default stays 1 (hold). run.sh refuses values other than 0 and 1 with exit 64.
The docs say when to use it (timing runs vs complete files.txt).

Verification

main 3f780716, Windows 10 + WSL Ubuntu:

Check Result
tests/startup_run_ps1_check.py (powershell, pwsh) 0 failed; without the pass-through it fails
tests/startup_run_sh_check.py (WSL) 0 failed; without the 0/1 check, 3 fail

AI-assisted (Claude Code).

🤖 Generated with Claude Code

R0Y00#1408 holds every other thread while the debugger steps one over a hooked
function. In a long title run that is tens of thousands of windows with about
100 threads alive, and it slows the load after the first-run pages 3-4x.
debug_launch.py already has --suspend-others 0; the launchers now pass it
(run.ps1 -SuspendOthers 0, run.sh --suspend-others 0, default 1 = hold).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JohnConnorNPC
JohnConnorNPC merged commit aec2e08 into R0Y00:main Nov 28, 2026
5 checks passed
@lukaslw-lab
lukaslw-lab deleted the startup/run-suspend-others branch November 28, 2026 16:36
JohnConnorNPC pushed a commit that referenced this pull request Nov 29, 2026
tools/startup/run_preset.py takes three choices (--console x|s, --gpu nvidia|amd, --os win11|win10|linux,
default this host) and reads every other setting from tools/startup/run_presets.json: a base layer, then
one layer per choice, each entry with the reason it is there. The launcher stages the executable's PE files
(hard links, else copies) so the package is never written, gives every run an empty storage folder, maps the
package on its drive letter with subst for the run, starts run.ps1 or run.sh, and runs triage_run.py.

The base layer turns off #1408's thread holding (run.ps1 -SuspendOthers 0, #3332) and uses subst rather
than run.ps1 -MapDrive; the measurements behind both, and behind the D3D12 switches it sets, are in the
preset's "why" text and docs/startup-runtime.md.

tests/startup_run_preset_check.py checks all 12 choices against the switches run.ps1 and run.sh define,
the layer rules, drive mapping through a fake subst, and staging on a synthetic package, with refusal
controls. Registered in CTest and the python-linux check list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

startup: #1408's thread holding slows the post-confirm load 3–4x

2 participants