Re: using mmap on large (> 2 Gig) files
- From: "Martin v. Löwis" <martin@xxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 01:09:56 +0200
myeates@xxxxxxxxxxxx schrieb:
Anyone ever done this? It looks like Python2.4 won't take a length arg
2 Gig since its not seen as an int.
What architecture are you on? On a 32-bit architecture, it's likely
impossible to map in 2GiB, anyway (since it likely won't fit into the
available address space).
On a 64-bit architecture, this is a known limitation of Python 2.4:
you can't have containers with more than 2Gi items. This limitation
was removed in Python 2.5, so I recommend to upgrade. Notice that
the code has seen little testing, due to lack of proper hardware,
so I shall suggest that you review the mmap code first before using
it (or just test it out and report bugs as you find them).
Regards,
Martin
.
- Follow-Ups:
- Re: using mmap on large (> 2 Gig) files
- From: myeates
- Re: using mmap on large (> 2 Gig) files
- From: sturlamolden
- Re: using mmap on large (> 2 Gig) files
- From: Travis E. Oliphant
- Re: using mmap on large (> 2 Gig) files
- References:
- using mmap on large (> 2 Gig) files
- From: myeates
- using mmap on large (> 2 Gig) files
- Prev by Date: Re: encoding of sys.argv ?
- Next by Date: Re: How to get each pixel value from a picture file!
- Previous by thread: using mmap on large (> 2 Gig) files
- Next by thread: Re: using mmap on large (> 2 Gig) files
- Index(es):
Relevant Pages
|