[Numpy-discussion] memoryerror with numpy.fromfile

Pauli Virtanen pav at iki.fi
Thu May 21 13:23:17 EDT 2009


Thu, 21 May 2009 10:31:28 -0600, Michael Hearne wrote:

> I am getting a MemoryError from a numpy.fromfile() call in an
> application I am trying to deploy.  Normally I would assume that this
> would mean that I don't have enough memory available on the system.
> However, if I run vmstat (Linux) at the same time as my process, I see
> that I have 3+ Gigabytes of memory free, and no swap space being used. 

If you are on a 32-bit platform, the maximum addressable memory for a 
single process is limited to 3 GB, and what can be allocated can be less 
than this because of memory fragmentation. Also, you should check that 
you don't have an ulimit set for virtual/RSS memory.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list