Record host memory and cgroup pressure independently of GPU sampling #1162
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1162"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-28T14:36:01Z.
A GPU query can stall while a Wine service is reclaiming memory. When the same sampling loop collects both GPU and host data, the last successful GPU sample also becomes the last record of cgroup pressure or task exhaustion.
This adds a standalone Python sampler for a cgroup v2 service. Run it from a second terminal. It timestamps and flushes host available memory, host and cgroup PSI, memory usage and peak, swap, and memory and PID events. A pinned directory descriptor keeps samples associated with one unit instance through removal. A failed controller read leaves the other fields available. The Linux/Proton notes include the invocation.
Two regression tests pass with
python3 -m unittest discover -v -s tests/linux. An additional user-service control with a 24 MiB high watermark, 96 MiB hard limit and zero swap produced one high event, zero max/OOM events and a 25,382,912-byte peak. The observer retained the event and recorded unit removal. The staged asset policy passed. The control uses only synthetic anonymous memory.The Windows CI check stopped in Clippy at victory-shader/src/emit/mod.rs:2768 and victory-gpu/src/shadow.rs:1708. The base branch's CI job reports both diagnostics at the same lines. PR check · Base check