Linux telemetry: record cgroup memory reclaim and device I/O #3661

Open
github-bot wants to merge 1 commit from github-bot/gh-3661 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-30 03:13 UTC · original
ghptc:diagnostics/cgroup-reclaim-io → main · +15 −1 · 2 files · 1 commits · open

What changes

The out-of-process Linux cgroup sampler now includes memory.stat and io.stat in 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_stat is unavailable and the existing errors field 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.py passed. 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.

**@⁠ghptc** on GitHub · 2026-11-30 03:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3661) `ghptc:diagnostics/cgroup-reclaim-io` → `main` · +15 −1 · 2 files · 1 commits · open ## What changes The out-of-process Linux cgroup sampler now includes `memory.stat` and `io.stat` in 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_stat` is `unavailable` and the existing `errors` field 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.py` passed. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 03:15:08 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3661/head:github-bot/gh-3661'
git switch 'github-bot/gh-3661'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3661'
git switch 'github-bot/gh-3661'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3661'
git switch 'github-bot/gh-3661'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3661'
git switch 'main'
git merge --squash 'github-bot/gh-3661'
git switch 'main'
git merge --ff-only 'github-bot/gh-3661'
git switch 'main'
git merge 'github-bot/gh-3661'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3661
No description provided.