3 ms·
A better way to ensure non-contiguous memory is allocating 2, maybe 3x the memory you need by repeatedly calling mmap(), then picking random points in that memo
by lionkor 3y ago
A better way to ensure non-contiguous memory is allocating 2, maybe 3x the memory you need by repeatedly calling mmap(), then picking random points in that memory, and using those. Otherwise chances are your memory is still contiguous