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

New Pluto Package manager makes everything run VERY slowly on clusters. #1341

Closed
natgeo-wong opened this issue Jul 29, 2021 · 3 comments
Closed

Comments

@natgeo-wong
Copy link

Due to the nature of HPC/clusters and their storage management, Julia package management is often very slow on clusters (because clusters don't do well handling a large number of small files). Therefore, the new Pluto Package manager makes the creation of new notebooks extremely slow on clusters. Out of necessity, I would like to request that we be allowed to disable PlutoPkg on startup of a Pluto session, rather than doing it simply in notebooks.

It takes me like 5 minutes or something (i.e. the creation of this entire issue) to create a new notebook, whereas in old versions I could do it in seconds.

@j-fu
Copy link
Contributor

j-fu commented Dec 26, 2021

This would also help with developing a Pluto notebook as part of package documentation in parallel with the development of the package itself.

In the moment I do weird things like this: https://github.com/j-fu/VoronoiFVM.jl/blob/25dc8d20606091c4cc45fd470082786085834a70/pluto-examples/nbproto.jl#L7 to disable PlutoPkg when working in the dev'ed package directory (EDIT: essentially this seems to implement something like the behavior initially proposed in #1281 )

Probably something like Pluto.run(project=... ) would be sufficient here. Also, for batch generating html docs from Pluto notebooks using a not registered yet version of the package, a similar option to PlutoSliderServer would be nice.

@fonsp
Copy link
Owner

fonsp commented Dec 27, 2021

Hi @j-fu ! Can you open a new discussion or issue about this? I think the other pluto contributors might have some ideas.

@fonsp
Copy link
Owner

fonsp commented Dec 27, 2021

The original issue has been solved by Julia 1.7! See https://julialang.org/blog/2021/11/julia-1.7-highlights/#improved_performance_for_handling_registries_on_windows_and_distributed_file_systems

After upgrading Julia, you might need to remove the old registry to be able to take advantage of the performance boost:

julia> general_path = joinpath(DEPOT_PATH[1], "registries", "General")
"/Users/fons/.julia/registries/General"

julia> rm(general_path; recursive=true)

@fonsp fonsp closed this as completed Dec 27, 2021
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