Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3 cgroupv2 support #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

elelayan
Copy link

Detect v1/v2 presence at each call to nodestats (via a single file stat). Parse the cpu.stat file and memory.current, memory.peak for cgroupv2

Fixes #3

detect v1/v2 presence at each call to nodestats (via a single file stat).
Parse the cpu.stat file and memory.current, memory.peak for cgroupv2
@elelayan
Copy link
Author

Here is the MR. It works in the cgroupv2 case but is untested with cgroupv1.
Feel free to refactor.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cgroupv2 support
1 participant