Skip to content
Advertisement

Tag: memory-mapped-files

numpy.memmap: bogus memory allocation

I have a python3 script that operates with numpy.memmap arrays. It writes an array to newly generated temporary file that is located in /tmp: The size of the HDD is only 250G. Nevertheless, it can somehow generate 10T large files in /tmp, and the corresponding array still seems to be accessible. The output of the script is following: The file

Advertisement