Skip to content

2GB limit to sysimage size? #1019

Open
JuliaLang/julia
#57366
@dgleich

Description

@dgleich

is there a limit of sysimage files to 2GB?

When I compile a number of packages that increases the sysimage size to over 2GB, then it fails when I try to use it with this error message.

Testing sysimage: /Users/dgleich/.julia/sysimages/FullJuliaSysimage.so of size 2240882280

[56623] signal 11 (1): Segmentation fault: 11
in expression starting at none:0
jfptr___init___118647 at /Users/dgleich/.julia/sysimages/FullJuliaSysimage.so (unknown line)
jl_apply at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-4.0/build/default-macmini-x64-4-0/julialang/julia-master/src/./julia.h:2157 [inlined]
jl_module_run_initializer at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-4.0/build/default-macmini-x64-4-0/julialang/julia-master/src/toplevel.c:76
_finish_julia_init at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-4.0/build/default-macmini-x64-4-0/julialang/julia-master/src/init.c:902
julia_init at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-4.0/build/default-macmini-x64-4-0/julialang/julia-master/src/init.c:843
jl_repl_entrypoint at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-4.0/build/default-macmini-x64-4-0/julialang/julia-master/src/jlapi.c:1053
Allocations: 1 (Pool: 1; Big: 0); GC: 0

System info:


julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin24.0.0)
  CPU: 16 × Intel(R) Xeon(R) W-2140B CPU @ 3.20GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake-avx512)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

I'm continuing to look for other sources of where the issue may be, but there seems to be a success/failure threshold at 2GB regardless of what packages I'm adding.

These sysimages were constructed with PackageCompiler.create_sysimage(pkgs; sysimage_path="FullJuliaSysimage.so). (The list of packages is at the bottom, although I don't think this is so relevant... (but it may be!)

Full list of packages that I had to trigger the error.

pkgs = ["MultiFloats",  
       "Polynomials",
       "SpecialFunctions",
       "Roots", 
       "FastTransforms",
       "Interpolations", 
       "Graphs",
       "SimpleWeightedGraphs",
       "Metis",
       "Combinatorics",
       "JuMP",
       "Ipopt",
       "GLPK",
       "Clp",
       "HiGHS",
       "Convex",
       "SCS",
       "OptimTestProblems",
       "Optim",
       "NonlinearSolve",
       "LsqFit", 
       "Tulip",
       "ForwardDiff", 
       "Symbolics",
       "DifferentialEquations",
       "ParserCombinator",
       "MemoryViews",
       "ApproxFun",
       "NaNMath",
       "LineSearches",
       "Meshes",
       "Gridap",
       "GenericLinearAlgebra", 
       "GLMakie",
       "UnicodePlots",
       "PGFPlotsX",
       "Luxor",
       "AlgebraOfGraphics",  
       "ReinforcementLearning",
       "NMF",
       "RDatasets" ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions