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

Support cgroup v2 #21

Merged
merged 12 commits into from
Jan 22, 2024
Merged

Support cgroup v2 #21

merged 12 commits into from
Jan 22, 2024

Conversation

abergeron
Copy link
Contributor

@abergeron abergeron commented Jan 22, 2024

We have to drop some stats

  • memory.max_usage_in_bytes becomes memory.peak, but this is not in any currently released kernel (torvalds/linux@8e20d4b, looks like it will be part of 6.8)
  • cpuacct.usage_percpu is exposed via eBPF in kernel 6.6+, but not though cgroupfs although it might be for a future kernel. I'm not sure I want to write BPF tooling just for that. Not to mention that our cluster is on kernel 5.15 anyway, so it wouldn't work.

@abergeron
Copy link
Contributor Author

This has now been tested on a cgroups v1 and a cgroups v2 node and appears to work as expected.

@guilbaults guilbaults merged commit 556499f into guilbaults:main Jan 22, 2024
1 check passed
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.

2 participants