Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlc.opt tries to allocate 34 GB of RAM ... and fails
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-05-07 (18:46)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails
On Wed, May 7, 2008 at 2:34 PM, Richard Jones <> wrote:
>  Also I checked the source to our caml_aligned_mmap function and it is
>  essentially the same as Markus Mottl's version in his comment in that
>  thread (this has been reported in 3.10.1 & 3.10.2).  It even includes
>  a reference to that bug, indicating that the version we are using
>  includes this patch.

Note that the patch does not guarantee anything.  The mmap system call
only considers the passed address as a hint, there is no guarantee
that it will actually use it.  This may be highly kernel-dependent.

Note, too, that the upcoming OCaml-release will (probably) feature
improved page table handling using sparse representations, thus
solving this problem generally.


Markus Mottl