2002-02-19 21:28:37

by Mihail Ionescu

[permalink] [raw]
Subject: mmap for more than 2GB

Hi,

I am currently working on the porting of some programs from Solaris to
Linux. The main problem I have is that the original programs heavily use
mmap in order to access very big files (more than 4GB) (since it is a
64 bits operating system), but on Linux mmap will fail. Is there any clean
way to solve this problem? Please CC me the response at this e-mail
address: [email protected].

Thank you very much,

Mihail Ionescu



2002-02-19 22:34:32

by Rik van Riel

[permalink] [raw]
Subject: Re: mmap for more than 2GB

On Tue, 19 Feb 2002, Mihail Ionescu wrote:

> I am currently working on the porting of some programs from Solaris to
> Linux. The main problem I have is that the original programs heavily use
> mmap in order to access very big files (more than 4GB) (since it is a
> 64 bits operating system), but on Linux mmap will fail. Is there any clean
> way to solve this problem?

You could use a machine with 64 bits of address space.

Linux on Intel hardware cannot mmap() more than about
2 GB per process since the hardware doesn't support
more.

regards,

Rik
--
"Linux holds advantages over the single-vendor commercial OS"
-- Microsoft's "Competing with Linux" document

http://www.surriel.com/ http://distro.conectiva.com/