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

pkg/discovery: Support cgroupv2 #178

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

derekparker
Copy link
Contributor

With cgroup v2 the perf_events controller is implicitly enabled so we
don't have to do anything manually from the perspective of the
parca-agent.

Fixes #23

With cgroup v2 the perf_events controller is implicitly enabled so we
don't have to do anything manually from the perspective of the
parca-agent.

Fixes parca-dev#23
@derekparker
Copy link
Contributor Author

derekparker commented Dec 20, 2021

We should also handle hybrid mode in a follow up PR. I think we can see if /sys/fs/cgroup/perf_event exists in which case we ignore the unified directory since it's not recommended to mix and match cgroup v1 and v2.

@brancz brancz merged commit afa2d0c into parca-dev:main Dec 21, 2021
@brancz
Copy link
Member

brancz commented Dec 21, 2021

Nice!

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.

Add support for cgroup v2
2 participants