RAM usage of building a system image

My script that is building a system image needs about 50 GB of RAM. This is very expensive. I am trying to use a swap file, but this is getting very slow.
See for example: Install KiteModels#main · OpenSourceAWE/AWEMeta.jl@2a4ca15 · GitHub

Did not finish in 4h, now trying 6h.

Any ideas how to reduce the RAM usage? I switched from ControlPlots.jl to MakieControlPlots.jl. Before it was kind of OK.

You can find the script that builds the system image here:

Do you think using JULIA_HEAP_SIZE_HINT could help?

1 Like