Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Markus Mottl" <markus.mottl@gmail.com>
To: "Richard Jones" <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails
Date: Thu, 8 May 2008 09:40:12 -0400	[thread overview]
Message-ID: <f8560b80805080640g24a5502di359734a49b926d44@mail.gmail.com> (raw)
In-Reply-To: <20080508101413.GA18974@annexia.org>

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.

Regards,
Markus

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


  reply	other threads:[~2008-05-08 13:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 17:01 Richard Jones
2008-05-07 17:35 ` [Caml-list] " Romain Beauxis
2008-05-07 18:34   ` Richard Jones
2008-05-07 18:46     ` Markus Mottl
2008-05-07 18:49       ` Richard Jones
2008-05-07 19:24         ` Markus Mottl
2008-05-07 19:29           ` Brian Hurt
2008-05-08  9:14           ` Richard Jones
2008-05-08 10:14             ` Richard Jones
2008-05-08 13:40               ` Markus Mottl [this message]
2008-05-08 13:55                 ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8560b80805080640g24a5502di359734a49b926d44@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox