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

Feature request: collect cgroup information per process #3799

Closed
samuelkarp opened this issue Oct 4, 2024 · 2 comments
Closed

Feature request: collect cgroup information per process #3799

samuelkarp opened this issue Oct 4, 2024 · 2 comments

Comments

@samuelkarp
Copy link
Contributor

/proc/<pid>/cgroup should expose the association between processes and cgroups. It does not appear like this is currently captured. The same information can be found through the cgroup hierarchy (cgroup.procs file for cgroup v2 and tasks file for v1), but that requires traversing the entire hierarchy to find.

jcastill added a commit to jcastill/sos that referenced this issue Oct 5, 2024
Collect cgroup information for each process

Related: sosreport#3799

Signed-off-by: Jose Castillo <[email protected]>
@jcastill
Copy link
Member

jcastill commented Oct 5, 2024

Nice catch. We have a cgroups plugin where we can collect this, so it may be better to place it there.
I'll send a quick PR so we can discuss some possible implementations with the maintainers.

jcastill added a commit to jcastill/sos that referenced this issue Oct 7, 2024
Collect cgroup information for each process

Related: sosreport#3799

Signed-off-by: Jose Castillo <[email protected]>
TurboTurtle pushed a commit that referenced this issue Oct 14, 2024
Collect cgroup information for each process

Related: #3799

Signed-off-by: Jose Castillo <[email protected]>
@TurboTurtle
Copy link
Member

I believe this was satisfied by #3801. Feel free to reopen if not fully addressed.

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

3 participants