[Numpy-discussion] How to limit the numpy.memmap's RAM usage?
Sat Oct 23 05:40:11 CDT 2010
I noticed the numpy.memmap using RAM to buffer data from memmap files.
If I get a 100GB array in a memmap file and process it block by block,
the RAM usage is going to increasing with the process running until
there is no available space in RAM (4GB), even though the block size is
a = numpy.memmap(‘a.bin’, dtype='float64', mode='r')
for i in range(0,len(a)/blocklen):
Is there any way to restrict the memory usage in numpy.memmap?
More information about the NumPy-Discussion