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 C6729BBCA for ; Wed, 7 May 2008 20:49:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsBAHuWIUhQRFuwiGdsb2JhbACSAgEBAQ8gm00 X-IronPort-AV: E=Sophos;i="4.27,450,1204498800"; d="scan'208";a="12361621" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 07 May 2008 20:49:59 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m47Inwk5023648 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 7 May 2008 20:49:59 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsBAHuWIUhQRFuwiGdsb2JhbACSAgEBAQ8gm00 X-IronPort-AV: E=Sophos;i="4.27,450,1204498800"; d="scan'208";a="12361620" Received: from furbychan.cocan.org ([80.68.91.176]) by mail3-smtp-sop.national.inria.fr with ESMTP; 07 May 2008 20:49:58 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1JtoiD-0006hr-VY for caml-list@inria.fr; Wed, 07 May 2008 19:49:58 +0100 Date: Wed, 7 May 2008 19:49:57 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] ocamlc.opt tries to allocate 34 GB of RAM ... and fails Message-ID: <20080507184957.GA25416@annexia.org> References: <20080507170149.GA21077@annexia.org> <04bfd9a7e0fb697f30fc7376d28b8fa5@localhost> <20080507183424.GA24624@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 4821F9D6.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlc:01 markus:01 mottl:01 aligned:01 markus:01 mottl's:01 bug:01 ocamlc:01 wrote:01 wrote:01 caml-list:01 caml:02 essentially:02 hint:04 opt:04 On Wed, May 07, 2008 at 02:46:49PM -0400, Markus Mottl wrote: > 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. 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