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

Sometimes "validate cache" takes a very long time #2325

Open
certik opened this issue Oct 21, 2024 · 4 comments
Open

Sometimes "validate cache" takes a very long time #2325

certik opened this issue Oct 21, 2024 · 4 comments

Comments

@certik
Copy link
Contributor

certik commented Oct 21, 2024

Here is an example of 10 minutes and going:

Image

I am guessing it is downloading something from the internet? Maybe the download is slow for some reason, hard to tell from the output.

To fix this issue, let's add the download speed and how much is left to download in MB, and adjust the progress bar to not be stuck at 99%.

@wolfv
Copy link
Member

wolfv commented Oct 21, 2024

It is finishing, though?

@certik
Copy link
Contributor Author

certik commented Oct 21, 2024

Yes, it finished in about 12 minutes. As a user I would expect this to finish in about 5s or so. The .pixi directory is about 1GB. I am pretty sure it should be possible to unpack 1GB of data under 12 minutes. :)

@wolfv
Copy link
Member

wolfv commented Oct 21, 2024

I was just wondering if it is a "deadlock" situation and would resolve more quickly if you restart the process.

It can sometimes take long(ish) to validate lots of small files.
I think we could think of an option to turn off the SHA validation of the cache.

@certik
Copy link
Contributor Author

certik commented Oct 21, 2024

I think the main thing to fix is the progress bar: it takes about 2 minutes to progress to 99%, and then 10 minutes for the last 1%. Rather, if there is a job for 12 minutes, the the progress bar should go at a uniform rate, so that the user can make a coffee and finish it. I was glued to the screen ready to work, since 1% should finish anytime. :)

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

2 participants