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

Speedup container startup #456

Merged
merged 4 commits into from
Jun 4, 2024
Merged

Speedup container startup #456

merged 4 commits into from
Jun 4, 2024

Conversation

danielhollas
Copy link
Contributor

@danielhollas danielhollas commented May 16, 2024

The main strategy here is to remove all unneeded verdi invocations, because each one costs at least 0.5s.

@danielhollas
Copy link
Contributor Author

@unkcpz can you test if this image from this PR starts faster? (I would expect at least 5s faster, not solving your problem, but still nice)

@unkcpz
Copy link
Member

unkcpz commented May 16, 2024

Thanks @danielhollas, I also notice the slow down of the unnecessary migration I think this is the one bring most improvement. Will give this a look!

@danielhollas danielhollas marked this pull request as ready for review May 16, 2024 20:43
@danielhollas
Copy link
Contributor Author

On my machine, I ran

time podman run --rm ghcr.io/aiidalab/full-stack:pr-456

and it took ~13s, while the latest image takes ~18s.

Copy link
Member

@unkcpz unkcpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @danielhollas, let me know when this is ready for review.

stack/base/before-notebook.d/40_prepare-aiida.sh Outdated Show resolved Hide resolved
@danielhollas danielhollas requested a review from unkcpz May 17, 2024 09:33
@danielhollas
Copy link
Contributor Author

@unkcpz ready for review. I got rid of one more verdi invocation.

@danielhollas danielhollas changed the title WIP: Speedup container startup Speedup container startup May 17, 2024
@danielhollas danielhollas force-pushed the speedup-startup branch 2 times, most recently from 06210df to 6f639aa Compare May 21, 2024 02:24
@danielhollas
Copy link
Contributor Author

@superstar54 this one is ready to go. Would be great if you could have a look when you have a bit of time. Thanks!

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@danielhollas danielhollas requested a review from unkcpz June 4, 2024 13:19
@danielhollas danielhollas merged commit 503d11b into main Jun 4, 2024
27 checks passed
@danielhollas danielhollas deleted the speedup-startup branch June 4, 2024 13:24
@danielhollas danielhollas restored the speedup-startup branch June 4, 2024 13:24
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

Successfully merging this pull request may close these issues.

None yet

3 participants