From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 1D723BBCA for ; Thu, 8 May 2008 11:14:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8DADdhIkjAXQImiGdsb2JhbACSAQEBAQ8gmW0 X-IronPort-AV: E=Sophos;i="4.27,453,1204498800"; d="scan'208";a="12376491" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 08 May 2008 11:14:55 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m489EtiN011427 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 8 May 2008 11:14:55 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8DAHlhIkhQRFuwiGdsb2JhbACSAQEBAQ8gmWw X-IronPort-AV: E=Sophos;i="4.27,453,1204498800"; d="scan'208";a="10506035" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 May 2008 11:14:55 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1Ju2DB-0004K4-Q5 for caml-list@inria.fr; Thu, 08 May 2008 10:14:49 +0100 Date: Thu, 8 May 2008 10:14:49 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails Message-ID: <20080508091449.GA16556@annexia.org> References: <20080507170149.GA21077@annexia.org> <04bfd9a7e0fb697f30fc7376d28b8fa5@localhost> <20080507183424.GA24624@annexia.org> <20080507184957.GA25416@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Miltered: at discorde with ID 4822C48F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlc:01 markus:01 mottl:01 ocamlc:01 gcc:01 wrote:01 wrote:01 caml-list:01 overly:02 seems:03 seems:03 reproduce:03 opt:04 opt:04 problem:05 On Wed, May 07, 2008 at 03:24:07PM -0400, Markus Mottl wrote: > On Wed, May 7, 2008 at 2:49 PM, Richard Jones wrote: > > OK, but is there any case where ocamlc.opt should try to allocate > > 34 _gigabytes_ (in the 2nd [length] param of mmap(2)). > > Hm, this seems overly excessive. I haven't been able to reproduce the > problem on our Fedora 5 boxes (32 and 64bit) using any (including > older) OCaml-compiler. It only seems to happen in Fedora 9, where coincidentally we switched to using gcc 4.3. Anyway, I'm still looking at the code ... Rich. -- Richard Jones Red Hat