Skip to content

container names are not parsed when using v2 cgroups #121

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

Open
absolution1 opened this issue Mar 1, 2025 · 0 comments
Open

container names are not parsed when using v2 cgroups #121

absolution1 opened this issue Mar 1, 2025 · 0 comments

Comments

@absolution1
Copy link

Hi there.

Container names do not seem to be parsed when using v2 cgroups, despite mounting /var/lib/docker/containers. Here is an example line of printout from the hwpc sensor log
I: 25-03-01 23:14:22 perf</system.slice/docker-3307fee8ff7898da36a4030d6c64ad91a84e45bd4fcc581d073613910d263fc5.scope>: monitoring actor started

A brief glance at

#define CONTAINER_ID_REGEX "perf_event/docker/([a-f0-9]{64})$"

and
if (strstr(cgroup_path, "perf_event/docker"))

suggests powerapi is expecting perf_event to always exist. For my v2 cgroups setup, all of the docker folders are containeed in /sys/fs/cgroup/system.slice

Is this a genuine bug or have I got something ganked in my setup?

PowerAPI rocks by the way!

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

No branches or pull requests

1 participant