Repository navigation
Conversation
|
Native Windows result for I inspected the raw peak in an MSVC Debug build with LLDB. A normal run returned 404,164,608 bytes against a 201,326,592-byte limit. Skipping only the rejected 384 MiB parent allocation in the debugger lowered the reported peak to 236,797,952. Additionally skipping the child block lowered it to 118,366,208. These controls indicate a denied allocation can contribute to the reported high-water mark on this host. I suggest keeping the allocation-denial assertions as the enforcement checks, retaining the lower bound for observed peak, and documenting how to interpret the OS-reported peak after a denial. The PR's rebuilt Vulkan checker passed four synthetic compute pipelines with zero failures or skips in each of six runs (uncapped, explicit 64/192/512/1024 MiB, and automatic). The capped runs reported 57.9 MiB peak after writing the cache. The automatic limit was 349 MiB for that run. I did not exercise the original large retail pipeline. Windows 11 build 26200.9974, NVIDIA RTX 5070 driver 616.56, MSVC 19.50. AI-assisted verification. |
|
Tested What passes natively: automatic calculation, reporting the installed budget, refusing a live-job replacement, the reservation-vs-commit distinction, commit denial above the cap, parent/child shared cap, and the child's verification — the whole enforcement story holds on real Windows. The failing check is the peak query, and the cause is the OS counter, not the job. Instrumented locally: Two consequences for the PR:
The auto budget, explicit MiB limit, and denial-on-failure paths are unchanged by this and worked here. Reproduce with AI-assisted (ZCode agent): builds and runs executed by a coding agent on this machine. |
Check cap enforcement by the allocation results and read the peak counter before the denial probes. Name the Windows counter in the output and document that it can exceed the enforced commit cap. Based on independent Windows results in ItsNotRexed#2530. AI-assisted.
|
Tested on Windows 11 with two GPUs on one machine (MSVC 14.51, llvm-mc 23.1.6): pass. |
|
Tested f044b3d on Windows 11 Pro build 26300, Intel 8086:7D41, driver 32.0.101.9150. Built Windows x64 RelWithDebInfo with MSVC and Ninja.
The Vulkan run exercised policy installation, a real pipeline creation and peak reporting on Intel. I used the allocation test to verify enforcement. AI-assisted testing and report. |
|
Tested dd7521d (on I printed the value it checks (a local debug line before the So the job's peak is about 404 MB against a 192 MiB cap. That is exactly Taking the peak before the Everything else passes here: the full ctest is 125/126 with only this test failing, and AI-assisted (Claude Code). |
|
Tested Runtime and test programs built from this head (MSVC 14.51, Ninja, RelWithDebInfo), native Windows
This is the native Windows enforcement run the description says is missing, built with MSVC rather than MinGW. In Not tried: a real shader-cache build under AI-assisted (Claude Code); I checked the results. |
|
Tested
I ranked the 2,689 compute shaders in my 1.0.2.1 copy by source container size and selected one each at the 95th, 97th and 99th percentiles. All three translated with
Both runs exited 0. The second run took 0.8 s in either order. A separate check confirmed reuse of NVIDIA's internal pipeline cache. With the internal cache disabled and the cap fixed at 8,192 MiB, the 99th-percentile shader alone peaked at 5,842.5 MiB. All three together in one process peaked at 5,946.9 MiB under the same settings. Pipeline creation only. Aggregate results from my own copy. AI-assisted verification. |
|
Independent native Windows check at f044b3d. The synthetic pipeline_commit_budget test passed. The test confirmed the installed budget, successful commit below the cap, shared enforcement across parent and child, rejection above the cap, and peak reporting for the successful allocation. This was the targeted synthetic test. AI-assisted testing and write-up. |
Add an opt-in Windows Job Object cap and a conservative automatic budget for the pipeline checker. Query the installed limit before loading Vulkan and expose the limit through make_game.py. AI-assisted. Linux CTest and pipeline tests passed. Windows x64 checker and enforcement test cross-compiled with MinGW; native Windows execution is pending.
Check cap enforcement by the allocation results and read the peak counter before the denial probes. Name the Windows counter in the output and document that it can exceed the enforced commit cap. Based on independent Windows results in ItsNotRexed#2530. AI-assisted.
f044b3d to
40ced32
Compare
40ced32 to
b9c8955
Compare
The Vulkan driver can consume tens of GiB of host commit while building pipelines (#884 and #2111). Add an opt-in Windows Job Object limit for the checker and its child processes. The build forwards it as
--pipeline-max-commit-mib N|auto; direct checker invocations use--max-commit-mib N|auto.The checker reads back the installed limit before starting Vulkan and prints peak job commit after the final cache save. The automatic budget uses 75 percent of the lesser of available physical memory and available commit. The explicit limit is measured in MiB. Allocation failure and driver crashes still count as failures.
Tested Linux CMake and CTest, five index tests, six Vulkan isolation tests on Mesa llvmpipe and 260 build-tool tests (258 passed, two skipped). Cross-compiled the checker and the Windows-only allocation and descendant-budget checks for x64 with MinGW. Native Windows enforcement and the original NVIDIA failure case still need a run. No retail data. AI-assisted.
Related: #884, #2111. This change applies independently of the crash-recovery PR.