Skip to content
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

dive slows to a crawl with large images #288

Open
andrewzah opened this issue Mar 10, 2020 · 5 comments
Open

dive slows to a crawl with large images #288

andrewzah opened this issue Mar 10, 2020 · 5 comments

Comments

@andrewzah
Copy link

I'm trying to use dive to inspect a 6gb docker image, with one layer containing 5.3gb. Just hitting up/down has a delay, so it's painful to try to scroll through the current layer contents.

@abitrolly
Copy link
Contributor

How many files are there?

@zwn
Copy link

zwn commented Mar 20, 2021

@abitrolly
Copy link
Contributor

@zwn can you check system memory usage by dive when you open the image?

@zwn
Copy link

zwn commented Mar 21, 2021

2GB virtual, 1.4GB resident

During opening the image the CPU usage is split between dive and dockerd - both using about 150%. When scrolling through the layers after the UI loads up, it briefly spikes the CPU where the arrow has been pressed and so far has nothing happened (by briefly I mean seconds not minutes).

@abitrolly
Copy link
Contributor

When opening an image, dive (or dockerd) unpacks it, probably in /tmp. If /tmp is on tmpfs, it also uses system memory. That's why it is important to track system memory and swap usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants