Skip to content

A lane's test window is the machine's width, a critical-path lane's included: it ran 32 compilers at once on a 4-core, 16 GiB runner (#3031) - #3363

Merged
ehartford merged 1 commit into
mainfrom
test-window
Nov 16, 2026
Merged

ehartford merged 1 commit into
mainfrom
test-window

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Measured on the win10 VM (16 GiB) with the CI's job settings: during :test, 27 with.exe processes alive at once, 27.6 GiB committed. One compiler-importing test alone commits about 1.3 GiB.

Exact line. src/BuildGraphTests.w: let jobs_limit = if use_js: 32 else: build_graph_test_jobs(). With a jobserver every test past a lane's first holds a slot, except in a lane the driver lists as on the critical path, which takes none; its window was the fixed 32. macOS and Linux overcommit; Windows refuses the allocation in whichever process asks next (lld-link: out of memory, or the runner: "lost communication with the server").

Fix. build_graph_test_window_for(asked, cores, memory): what WITH_BUILD_TEST_JOBS asks for, else the machine's width (cores bounded by memory at two gibibytes a process, as the lane pool is, #2603). Every lane's window is that. build_pool_width_test covers it (a 4-core, 16 GiB machine: 4).

Seed-bound stand-in. The windows are opened by the build driver, in CI the pinned seed. Until a seed carrying this is pinned, the Windows workflow hands the driver a 6-slot jobserver: a driver that did not create the jobserver names no critical lane (owns_js), so every lane stays inside the slots. Marked in the workflow for deletion with the pin.

Battery: GREEN.

…ncluded: it ran 32 compilers at once on a 4-core, 16 GiB runner (#3031)
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.

1 participant