Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails
On Wed, May 07, 2008 at 02:46:49PM -0400, Markus Mottl wrote:
> On Wed, May 7, 2008 at 2:34 PM, Richard Jones <rich@annexia.org> 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.

OK, but is there any case where ocamlc.opt should try to allocate
34 _gigabytes_ (in the 2nd [length] param of mmap(2)).

Rich.

-- 
Richard Jones
Red Hat