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=none autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 3DC1EBBAF for ; Fri, 11 Jul 2008 23:49:57 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcBAPBxd0hKfS4dd2dsb2JhbACRZEMBDAMEBAkRA5F1hh8 X-IronPort-AV: E=Sophos;i="4.30,347,1212357600"; d="scan'208";a="27251860" Received: from yw-out-2324.google.com ([74.125.46.29]) by mail4-smtp-sop.national.inria.fr with ESMTP; 11 Jul 2008 23:49:56 +0200 Received: by yw-out-2324.google.com with SMTP id 5so1757613ywb.3 for ; Fri, 11 Jul 2008 14:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lgxMrRj2P8GnOWGpMknz1WzTJxQHIgxMO0j3Gg87KTw=; b=MrJzIuEn+MVDs2KSmqP/Cv7X7Z3L/iOEuuYPxTsOIiziIuJpYv6/QZbGdqrfc+wxlr aiU4iqh9lIDUsNauqNiSrHmxjq+SJ99maDyJAQhGGwDMNhbsQB2w0mnhOSjoR72yx8bs Nvth5PAPKcZcSzlkED9dubwpeE7t976p5reA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MBD2qTPaWtcqiHiykt3OATGycFu6TZRSakYN+knD+BBca2AHmEmJCPxa0VCxpNRMH4 p17TNZmf0mCVLkEESfnDK1mDjvXIAx7g4AxIH2r+Y97KvZ5xZlrh60yUsHFFmJ7ShxS4 t1FsAY2tfFFw0NpLXiKpqXV9nYVk48M/TLs/c= Received: by 10.150.121.3 with SMTP id t3mr16546156ybc.179.1215812988119; Fri, 11 Jul 2008 14:49:48 -0700 (PDT) Received: by 10.151.82.11 with HTTP; Fri, 11 Jul 2008 14:49:48 -0700 (PDT) Message-ID: <9d3ec8300807111449t2eb83f8cm39f45c0ce347deac@mail.gmail.com> Date: Fri, 11 Jul 2008 22:49:48 +0100 From: "Till Varoquaux" To: "Jean Krivine" Subject: Re: [Caml-list] memory usage Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Spam: no; 0.00; ocaml:01 ocaml:01 bigarray:01 krivine:01 krivine:01 malloc:01 malloc:01 beginner's:01 bug:01 personality:98 hms:98 garbage:01 beginners:01 wrote:01 caml-list:01 It is hard to tell without any more informations but sometimes the garbage collector needs some gentle proding: OCaml handles it's own memory but can be a bad citizen when it comes to making room for others. Unfortunately ocaml also has a bit of a double personality: it doesn't know much about resources used in external libraries or even in some of its own library (e.g. on a 32 bits machine running out of addressable space because of Bigarray.map_file is not unheard of). If this is your problem, you can either sprinkle your source code with calls to Gc.major or tweak it using Gc.set. Till On Fri, Jul 11, 2008 at 8:49 PM, Jean Krivine wrote: > Dear list members, > > I am trying to run a stochastic simulator (written in ocaml) on a huge > data set and I have the following error message: > > sim(9595) malloc: *** mmap(size=1048576) failed (error code=12) > *** error: can't allocate region > *** set a breakpoint in malloc_error_break to debug > Fatal error: out of memory. > > My system: > > Mac Pro running OS X 10.5.4 > Processor: 2 x 2.8 GHz Quad-Core Intel Xeon > Memory: 10 GB 800 MHz DDR2 FB-DIMM > > Does someone know what happened? Do you have any idea of any parameter > I could tune in order to avoid that? > > Thank you very much! > > Jean > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- http://till-varoquaux.blogspot.com/