podman stats
reports only the container's PID 1 information, which is not so useful for systemd containers
#12400
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
podman stats
seems to report the container's PID 1 information, and this is perhaps not as useful for systemd containers.Steps to reproduce the issue:
podman stats
Describe the results you received:
The returned stats are for the container's PID 1 only (e.g. systemd) and excludes other processes. This can be confirmed by
strace
ing podman (using memory for this example):If instead the containers' parent cgroup is inspected, a more reasonable number is obtained:
Describe the results you expected:
By default as a user I expected
podman stats
to give me numbers "for the whole container".I imagine there may be a compatibility concern where historically containers have been single-process and thus
podman stats
should continue to report only about PID 1. Perhaps then a flag could be added.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
I have not tried the latest version of podman, but I have tried with locally built
crun
from a recent commit and that made no difference.Additional environment details (AWS, VirtualBox, physical, etc.):
Base system is centos 8, but running the latest elrepo kernel. systemd configured to use the unified hierarchy. SELinux is in permissive mode.
The text was updated successfully, but these errors were encountered: