Replies: 1 comment 9 replies
-
The |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to be able to extract accounting information from a running or stopped rootless container (e.g., memory usage, CPU time/cycles used). The
podman inspect
does not give any of this information;podman stats
gives only information about memory (in human-readable units) but no information about consumed CPU cycles. Is there any other podman command that can give me this information?Since I wasn't able to get the accounting information from podman commands, I tried to inspect the group mounted in the container under
/sys/fs/cgroup
. When I examine these files from the container, they give me the information I want. However, I am struggling with an effective way of reading them outside container. Thepodman cp
reports files under/sys
as missing. I could in theory usepodman exec <cId> cat /sys/fs/cgroup/cpu.stats
but that affects the statistics (probably negligible, but still). What is a nice and clean way to read out the accounting information from groups?Beta Was this translation helpful? Give feedback.
All reactions