Replies: 2 comments 7 replies
-
|
First, I don't think anyone on the team would consider 1700 a normal amount of images. That is certainly well outside of the range anyone would test with. We don't really have performance benchmarks, at least not in that size range. I have not looked at the code but it is certainly possible that there might be some O(n^2) or worse O(2^n) performance here which could explain a big increase in command time. Without a reproducer and storage configuration there is likely not much we could tell here regardless. |
Beta Was this translation helpful? Give feedback.
-
|
The slowness with 1700 images is probably because Your observation about the prune speeding things up makes sense. The 2034 vs 1700 difference is exactly what you described — dangling/intermediate layers that share parent layers with the 1700 top-level images. When those get pruned, the storage driver has less to iterate over. With 500 images at 0.5s, that's a healthy baseline. If you want to keep more images without the slowdown, you could look into switching the VM's storage backend — but honestly, periodic pruning is probably the easiest approach. Something like a cron/launchd job running |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I had image list | wc returning 1700 which seems low/normal for me - and it took about 30s to complete - -a took a bit longer about 35s
I did a podman image prune and have 500 images now and image list is 0.5s
I saved the hash list from the prune and it was 2034
My internal explanation for the difference in numbers is that 2034 is layers deleted and 1700 was top level leaf layers which in many cases shared layers beneath. That's reasonable if true.
But why did the prune speed it up so much - why was it SO slow just listing what's there? Why is it acceptably fast now when there's still 500 there?
Wound up here in discussion instead of on an issue. Hopefully not radio silence :-)
I will wind up with hundreds more images over the coming weeks/months so I'll probably run into it again if diagnostics are useful in terms of improving things. Something somewhere seems to be wrong/doing unneeded work or something.
Beta Was this translation helpful? Give feedback.
All reactions