I have code that allocates SharedArray
s on a machine. this works well on the computer in front of me, i.e. the physical machine in my office. I am having trouble runnign the same code though on a virtual machine inside an opennebula cluster. I know that I have access to 16GB RAM on that VM, which is the same as my computer has, so I don’t think I’m running out of memory. Is there anything that prevents me from using SharedArrays on a VM (could it be that the memory of that VM is not inside a single physical machine?)
Here is the error I get:
julia> sm = bk.runSim();
signal (7): Bus error
signal (7): Bus error
signal (7): Bus error
signal (7): Bus error
while loading no file, in expression starting on line 0
while loading no file, in expression starting on line 0
while loading no file, in expression starting on line 0
while loading no file, in expression starting on line 0
macro expansion at ./cartesian.jl:62 [inlined]
macro expansion at ./cartesian.jl:62 [inlined]
macro expansion at ./cartesian.jl:62 [inlined]
macro expansion at ./cartesian.jl:62 [inlined]
macro expansion at ./multidimensional.jl:431 [inlined]
macro expansion at ./multidimensional.jl:431 [inlined]
_unsafe_batchsetindex! at ./multidimensional.jl:423
macro expansion at ./multidimensional.jl:431 [inlined]
macro expansion at ./multidimensional.jl:431 [inlined]
_unsafe_batchsetindex! at ./multidimensional.jl:423
_unsafe_batchsetindex! at ./multidimensional.jl:423
_unsafe_batchsetindex! at ./multidimensional.jl:423
_setindex! at ./multidimensional.jl:372 [inlined]
_setindex! at ./multidimensional.jl:372 [inlined]
setindex! at ./abstractarray.jl:840 [inlined]
setindex! at ./abstractarray.jl:840 [inlined]
#15 at /root/git/bk/bk.jl/src/model.jl:133
_setindex! at ./multidimensional.jl:372 [inlined]
#15 at /root/git/bk/bk.jl/src/model.jl:133
_setindex! at ./multidimensional.jl:372 [inlined]
unknown function (ip: 0x7fd9226016e4)
setindex! at ./abstractarray.jl:840 [inlined]
unknown function (ip: 0x7f6b466d1c84)
setindex! at ./abstractarray.jl:840 [inlined]
#15 at /root/git/bk/bk.jl/src/model.jl:133
#15 at /root/git/bk/bk.jl/src/model.jl:133
unknown function (ip: 0x7fc8f67906b4)
unknown function (ip: 0x7f7377514964)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
#649 at ./multi.jl:1428
#649 at ./multi.jl:1428
run_work_thunk at ./multi.jl:1001
run_work_thunk at ./multi.jl:1001
run_work_thunk at ./multi.jl:1010 [inlined]
run_work_thunk at ./multi.jl:1010 [inlined]
#617 at ./event.jl:68
#617 at ./event.jl:68
unknown function (ip: 0x7f6b466c3eef)
unknown function (ip: 0x7fc8f67828ff)
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
#649 at ./multi.jl:1428
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
run_work_thunk at ./multi.jl:1001
run_work_thunk at ./multi.jl:1010 [inlined]
#617 at ./event.jl:68
unknown function (ip: 0x7fd9225f394f)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:254
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:254
jl_f__apply at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:547
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
unknown function (ip: 0xffffffffffffffff)
unknown function (ip: 0xffffffffffffffff)
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:254
Allocations: 13295343 (Pool: 13293960; Big: 1383); GC: 21
Allocations: 13317134 (Pool: 13315764; Big: 1370); GC: 21
unknown function (ip: 0xffffffffffffffff)
Allocations: 13317228 (Pool: 13315857; Big: 1371); GC: 21
#649 at ./multi.jl:1428
run_work_thunk at ./multi.jl:1001
run_work_thunk at ./multi.jl:1010 [inlined]
#617 at ./event.jl:68
unknown function (ip: 0x7f7377506bbf)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:210 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1950
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
start_task at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:254
unknown function (ip: 0xffffffffffffffff)
Allocations: 13183002 (Pool: 13181624; Big: 1378); GC: 21
Worker 7 terminated.
Worker 2 terminated.ERROR (unhandled task failure): EOFError: read end of file
ERROR: ProcessExitedException()
in yieldto(::Task, ::ANY) at ./event.jl:136
in wait() at ./event.jl:169
in wait(::Condition) at ./event.jl:27
in wait(::Channel{Any}) at ./channels.jl:92
in fetch(::Channel{Any}) at ./channels.jl:63
in #remotecall_wait#631(::Array{Any,1}, ::Function, ::Function, ::Base.Worker, ::SharedArray{Float64,8}, ::Vararg{SharedArray{Float64,8},N}) at ./multi.jl:1091
in remotecall_wait(::Function, ::Base.Worker, ::SharedArray{Float64,8}, ::Vararg{SharedArray{Float64,8},N}) at ./multi.jl:1086
in #remotecall_wait#634(::Array{Any,1}, ::Function, ::Function, ::Int64, ::SharedArray{Float64,8}, ::Vararg{SharedArray{Float64,8},N}) at ./multi.jl:1105
in remotecall_wait(::Function, ::Int64, ::SharedArray{Float64,8}, ::Vararg{SharedArray{Float64,8},N}) at ./multi.jl:1105
in (::Base.##828#830{SharedArray{Float64,8},bk.##15#33})() at ./task.jl:360
...and 3 other exceptions.
in sync_end() at ./task.jl:311
in macro expansion at ./task.jl:327 [inlined]
in initialize_shared_array(::SharedArray{Float64,8}, ::Bool, ::Function, ::Array{Int64,1}) at ./sharedarray.jl:209
in #SharedArray#806(::Function, ::Array{Int64,1}, ::Type{T}, ::Type{Float64}, ::Tuple{Int64,Int64,Int64,Int64,Int64,Int64,Int64,Int64}) at ./sharedarray.jl:102
in (::Core.#kw#Type)(::Array{Any,1}, ::Type{SharedArray}, ::Type{Float64}, ::Tuple{Int64,Int64,Int64,Int64,Int64,Int64,Int64,Int64}) at ./<missing>:0
in bk.Vfun(::Tuple{Int64,Int64,Int64,Int64,Int64,Int64}, ::Int64, ::bk.Param) at /root/git/bk/bk.jl/src/model.jl:133
in bk.Model(::bk.Param) at /root/git/bk/bk.jl/src/model.jl:517
in runSim(::Dict{Any,Any}) at /root/git/bk/bk.jl/src/simulation.jl:322
in runSim() at /root/git/bk/bk.jl/src/simulation.jl:314