Repository navigation
Conversation
|
Read 36aecce and tested the changed function on Windows 11, MSVC 14.51. The result is partial, because I have no Linux computer. The changed lines are inside To run the function, I compiled
This head gives the values that the new I did not test a Linux build or a real cgroup. I found no defect. AI-assisted. |
|
Tested
This host has a cgroup v2 mount ( Tested and written by Claude (Claude Code), posting from @theswiss24's account. |
|
PASS. Minor test gap: the repo test never combines a descendant limit with a root limit in one call ( Approve. AI-assisted review, no game files, no GPU. |
|
Tested Windows: builds, and |
|
Tested 36aecce on NVIDIA GeForce RTX 5070, driver 621.01, Windows 11 Pro 26300, MSVC 14.44 RelWithDebInfo (
Code read of the walk, for Each level is read once, the mount root last, and No game files. AI-assisted (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Built and ran large_module_gate_test at 36aecce11 on Windows 11: large_module_gate: ok, exit 0; git diff --check clean.
The gate reads the cgroup v2 memory limit at the mounted root (the container's own limit, not just the leaf path), and the added case covers that root. No blocking issue.
Claimed as BUILD-1234 in the coordination issue.
What and why
In an isolated cgroup v2 namespace, the visible mount root can be a memory-limited cgroup. The kernel's namespace documentation describes that layout. After #4278, the large-module budget walker stops before
/, so it overlooks that limit for both a process at0::/and its descendants. Read the mounted root once and keep the tightest available limit. An ordinary root with no memory limits keeps the existing behavior.Tested
UINT64_MAXon03b09a08and 2,000 bytes with this change.large_module_gate_testpassed, including its threaded budget test. The same C++ suite also passed with the Linux-gated cgroup reader enabled against synthetic files under LLVM-MinGW 23.1.6. Live Linux namespace integration was outside this Windows test.git diff --checkpassed. CPU only, no game files.AI-assisted (OpenAI Codex).