-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Running "podman images -a" is very slow #13755
Comments
Hi @Jacalz , I am not sure but I think @vrothberg has already fixed this. I'd request @vrothberg to confirm. |
Performance regressions are hard to detect but it's the first report for 4.0. @Jacalz, could you run |
Note that 3.4.4 still has this regression but a fix for Fedora 35 will arrive with Podman v3.4.5 (Cc @mheon). v4.0 has the fix. Are you positive to have tested with v4.0? I am asking since containers/toolbox#1027 was filed with Podman v3.4.4. |
Looking at the image size you have very big images. Does podman images still calculates the size on the fly? |
Yes I believe it does. |
|
Sorry. Didn’t mean to close this.
Yes, I tested with the version mentioned in the description here (v4.0.4). I installed Fedora 35 Beta just to be able to get a newer release and open this issue. |
I guess it could be that the images on the Fedora 35 machine make it slower because they aren’t the same as what I have on the laptop. I’ll try with only two smaller toolbox images and see if that makes a difference. |
Thanks for checking. There are probably two separate issues:
For 2) we need to add a --no-size option. |
Add a --size option to podman images to allow for disabling computing the size of listed images. If listing images is critical to performance, user may chose to turn off size computation to speed things up. Context: containers#13755 Signed-off-by: Valentin Rothberg <[email protected]>
There's the CPU profile for you @vrothberg. Sorry that it took some time. I was busy yesterday. podman-prof.zip |
Thanks a lot, @Jacalz! |
Yes, that confirms the suspicion. 85 percent of the time is spent calculating the size of each image in c/storage. #13810 may help |
We can always do a version check on Podman to get the optimal behaviour. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running the
podman images -a
command takes a very long time. With just two images, it takes several seconds and the time seems to scale with the amount of images on the system. I found this with containers/toolbox#1027 first and have now replicated with podman 4.0.3 on Fedora 36 beta.Steps to reproduce the issue:
time podman images -a
Describe the results you received:
On a machine with many images, it takes 35 seconds.
Describe the results you expected:
Something that is a lot faster. Definitely less than or around a second.
Additional information you deem important (e.g. issue happens only occasionally):
See containers/toolbox#1027. There is a lot of information there.
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/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
On hardware, no virtual machines. The testing in this issue was created using a desktop workstation with 16GB RAM, an i7 3770 and a spinning 1TB HDD. Testing on containers/toolbox#1027 was done on a Dell Latitude 7490 laptop with 16GB RAM, an i5 8250U and a 500GB SATA M.2 SSD (which basically says that slow drives isn't the problem here).
The text was updated successfully, but these errors were encountered: