English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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-08 (13:40)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails
On Thu, May 8, 2008 at 6:14 AM, Richard Jones <rich@annexia.org> wrote:
>   Growing heap to 4320k bytes
>   Growing page table to 34359705221 entries
>   No room for growing page table
>   Fatal error: out of memory.

Yeah, that's an indication that you've hit the mentioned problem
(addresses of allocated memory too far apart).

>  Unfortunately I have no idea how to solve this, certainly it seems
>  there is no simple fix ...  (I tried to set vm.overcommit_memory
>  policy, but that doesn't work because the page table is initialized
>  right after allocation).

If my mmap "fix" (not guaranteed to work with all kernels) is in the
executing runtime, then, I'm afraid, there is little you can do other
than switching to a CVS-version of the upcoming OCaml-release.  Xavier
has implemented a completely new page table representation there,
which should solve this problem once and for all.


Markus Mottl http://www.ocaml.info markus.mottl@gmail.com