Hi I'm getting an error calling msync, it seems to be, because the memory address is not page aligned. (I'm on linux.)
julia> M = mmap_array(Float32, (3,4), open("tmp.vec", "w+"), 3) #Offset of 3 is the only important thing. 3x4 Array{Float32,2}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 julia> msync(M) ERROR: Invalid argument in error at error.jl:21 in msync at mmap.jl:80 in msync at mmap.jl:6 This succeeds without error: msync(pointer(M)-3, sizeof(Float32)*length(M) + 3) Is there a better way than keeping track of the pagesize and the offsets?