So I get the error when I call mmap_array() as follows:
s = open("matrixfile.bin")
m = read(s, Float64)
weight = mmap_array(Float64, (int64(m),int64(m)), s)
close(s)
When my "matrixfile.bin" is small everything works fine, but when I get to a stage where the file size is similar to the amount of RAM available I get the following error:
ERROR: memory mapping failed: Cannot allocate memory
in mmap at mmap.jl:35
in mmap_array at mmap.jl:110
in readinfile at none:4
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 191971
max locked memory (kbytes, -l) 137435659880
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 191971
virtual memory (kbytes, -v) 4194304
file locks (-x) unlimited
Thanks