mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1391] vk_pipeline_check: cap Windows isolation job commit #1422
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1422
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1391
Author: @WaltrBlackington
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:RT-PIPELINE-MEMORY-GUARD📝 Commits (1)
cd4894bvk_pipeline_check: cap Windows isolation job commit (RT-PIPELINE-MEMORY-GUARD)📊 Changes
8 files changed (+655 additions, -33 deletions)
View changed files
📝
docs/pipeline_check.md(+45 -1)📝
runtime/CMakeLists.txt(+9 -0)📝
runtime/test/check_vk_pipeline_cli.cmake(+55 -2)➕
runtime/test/pipeline_child_job.h(+159 -0)➕
runtime/test/pipeline_child_job_test.cpp(+249 -0)➕
runtime/test/pipeline_isolation_retry.h(+47 -0)📝
runtime/test/vk_pipeline_check.cpp(+77 -30)📝
tests/test_vk_pipeline_check_isolate.py(+14 -0)📄 Description
Claimed in the coordination issue as: RT-PIPELINE-MEMORY-GUARD
Related issue: #636
Potential overlap: #1209 proposes a complementary Linux address-space limit. This PR does not depend on it, but both changes may touch the same CLI and documentation sections.
What and why
Isolated shader compilation can consume enough host memory to make the machine unresponsive.
This PR adds
--isolate --memory-limit-mib N, an opt-in Windows Job Object limit on committed memory for each isolated child attempt.Windows memory-limit notifications are best-effort. Without a notification, limit involvement remains unconfirmed.
The limit applies to job-accounted host commit, not physical RAM, GPU memory, or system-wide commit. Allocation denial does not necessarily terminate a child or prevent a compiler hang.
An abrupt parent exit between suspended process creation and job assignment can leave a suspended child. After assignment, closing the job terminates its remaining processes.
Usage
This example sets an 8 GiB committed-memory limit for each isolated child job.
--isolateand is currently supported only on Windows.--memory-limit-mibis omitted, existing behavior remains unchanged.Choose a limit that leaves sufficient memory headroom for the parent process, operating system, and other applications.
Additional details are available in
docs/pipeline_check.md.Tested
Verified commit
cd4894b9875fe15e799f5771828974afe239099bon upstream base0f98d193c5eaac6495d48c273a5db7194aab30d6.Environment: Windows 11 Pro x64, build 26200, MSVC 19.44.35230.0, Windows SDK 10.0.26100.0.
pipeline_child_job,pipeline_child_job_nested,vk_pipeline_check_cli,vk_pipeline_check_stack,large_module_gate,pipeline_summary,pipeline_cache_seed).All 34 focused regression tests passed.
With a 512 MiB limit, all five synthetic Vulkan pipelines compiled successfully across three protected child attempts.
Native Job Object tests exercised synthetic allocation denial. The Vulkan tests verified successful compilation under the configured limit but did not reproduce the original NVIDIA compiler failure or establish its cause.
Linux, macOS, MinGW, and Wine were not tested.
GPUs tested: NVIDIA GeForce RTX 2080 Ti, NVIDIA driver 621.35, Windows 11 Pro x64.
AI-assisted: Yes — OpenAI ChatGPT (GPT-6.2) and Codex CLI.
Checklist
mainand rebased cleanly.docs/design.md— not applicable to this checker-only change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.