Linux telemetry: record cgroup memory reclaim and device I/O #3661
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3661"
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-30T03:13:47Z.
What changes
The out-of-process Linux cgroup sampler now includes
memory.statandio.statin each CSV sample. This makes it possible to compare memory classes, refaults and writeback with per-device I/O in the same sampling interval. The fields preserve the kernel's keys and units and use the sampler's existing|separator for multi-line values.If the I/O controller is absent,
io_statisunavailableand the existingerrorsfield continues to describe failures of the required reads. The sampler still opens the controller files read-only relative to the pinned cgroup directory. Credit #1162 for the sampler and #1426 for the separate retention probe's use of memory-class and refault counters.Validation
Both tests in
test_cgroup_sample.pypassed. They cover missing I/O with partial controller reads, decoding multiple I/O device lines in the CSV, and removal and replacement of the observed cgroup.A read-only smoke test sampled a real cgroup v2 without the I/O controller and its nearest ancestor with block I/O records. Both produced a sample and a final row with the expected memory keys and no collection errors. The child reported
unavailable; the ancestor emitted per-device counters.This is host telemetry. Runtime behavior, cgroup settings and game performance were outside the scope of the change and tests.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.