Record host memory and cgroup pressure independently of GPU sampling #1162
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1162
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ghptc on GitHub · 2026-11-28 14:36 UTC · original
ghptc:diag/linux-cgroup-sampler→main· +167 −0 · 3 files · 1 commits · merged 2026-11-29 08:16 UTCA 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
2e3d81973cto0822119d1b