OCI: "podman ps –s" Consumes CPU and Takes Several Minutes to Complete
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86_64
Symptoms:
In Oracle Linux 8 instance with several active containers, running command:
$ podman ps
Returns immediately, but running command:
$ podman ps -s
Can take several minutes to return results and during that time a 100% usage of 1 CPU core by podman, with ~80% of that use in %SYS.
Cause:
Using option “-s” in podman ps, returns the current size of each container.
To obtain that usage, podman needs to sweep the entire overlay filesystem of each container to compute the storage usage.
This is a CPU and I/O intensive process that takes time and the effective time it takes will increase with the number of containers and their overlay filesystem size.
Tagged:
0