JuliaLang/julia — Issue #279: addprocs_ssh fails on > 4 addresses
Author: vtjnash
Created: 2011-12-04 08:28:18+00:00
State: open

If I give addprocs_ssh too many IP addresses at once (more than 4), it fails.

fork: Cannot allocate memory
in system_error, /home/bezanson/julia/j/error.j:12
in fork, /home/bezanson/julia/j/process.j:89
in spawn, /home/bezanson/julia/j/process.j:323
in start_remote_workers, /home/bezanson/julia/j/multi.j:1040
in addnprocs_ssh, jqueens.j:116
in run_repl, /home/bezanson/julia/j/client.j:22
in _start, /home/bezanson/julia/j/client.j:128

Here's a function I wrote for beagle to launch a bunch of copies easily and quickly:
function addnprocs_ssh(a::Ranges)
ips = Array(String,length(a))
i = 1
for x = a
ips[i] = "18.68.147." * string(100+x)
i += 1
end
print(ips)
addprocs_ssh(ips)
end