[Numpy-discussion] numarray problem creating large memmap
Todd Miller
jmiller at stsci.edu
Fri Jul 1 09:52:26 CDT 2005
On Fri, 2005-07-01 at 07:39, Joost van Evert wrote:
> Hello,
>
> does anyone know why it is not possible to create a memmap beyond a
> certain length. For example: m =
> MM.open('/tmp/test','write',len=500000000) works, while the same command
> using a length of 600000000 gives the following error message:
>
> /shannon/joost/lib/python/numarray/memmap.py in __init__(self, filename,
> mode, len)
> 299 else:
> 300 acc = mmap.ACCESS_WRITE
> --> 301 self._mmap = mmap.mmap(file.fileno(), len,
> access=acc)
> 302 else:
> 303 self._mmap = None
>
> EnvironmentError: [Errno 22] Invalid argument
>
> I am using:
> - numarray version 1.3.1
> - python 2.4.1
> - linux
I'm not sure it matters, but how much RAM and swap do you have? How
much free space do you have on /tmp?
Regards,
Todd
More information about the Numpy-discussion
mailing list