1 Jul 2005 13:39
numarray problem creating large memmap
Joost van Evert <joostvanevert <at> gmail.com>
2005-07-01 11:39:58 GMT
2005-07-01 11:39:58 GMT
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
Greetings,
Joost
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
(Continue reading)
Since this error can occur in the context of any API function, possibly
called from any sub-function within an extension function, I'm not sure
there is a soft & general way to handle it: getting it implies the
RSS Feed