From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 3374CD45F for ; Sat, 5 Nov 2005 13:11:17 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA5CBG9d005656 for ; Sat, 5 Nov 2005 13:11:16 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA18456 for ; Sat, 5 Nov 2005 13:11:16 +0100 (MET) Received: from smtp11.wanadoo.fr (smtp11.wanadoo.fr [193.252.22.31]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA5CBFEf005653 for ; Sat, 5 Nov 2005 13:11:16 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1101.wanadoo.fr (SMTP Server) with ESMTP id D2D511C00046 for ; Sat, 5 Nov 2005 13:11:15 +0100 (CET) Received: from pegasos (AStrasbourg-251-1-60-161.w82-126.abo.wanadoo.fr [82.126.128.161]) by mwinf1101.wanadoo.fr (SMTP Server) with ESMTP id B50511C000B7 for ; Sat, 5 Nov 2005 13:11:15 +0100 (CET) X-ME-UUID: 20051105121115741.B50511C000B7@mwinf1101.wanadoo.fr Received: from sven by pegasos with local (Exim 4.50) id 1EYMpn-0004WN-44; Sat, 05 Nov 2005 13:07:47 +0100 Date: Sat, 5 Nov 2005 13:07:42 +0100 To: Sarah DJEBALI Cc: caml-list@inria.fr Subject: Re: [Caml-list] Fatal error: out of memory Message-ID: <20051105120741.GA17371@localhost.localdomain> References: <436C9DE5.2000602@ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436C9DE5.2000602@ens.fr> User-Agent: Mutt/1.5.9i From: Sven Luther X-Miltered: at nez-perce with ID 436CA164.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 436CA163.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sven:01 luther:01 sven:01 luther:01 ocaml:01 ocamlrun:01 heap:01 heap:01 recursive:01 ...:98 wrote:01 experimental:01 functions:01 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Sat, Nov 05, 2005 at 12:56:21PM +0100, Sarah DJEBALI wrote: > Hi, > > I am using ocaml 3.08, and when running my executable on certain kind of > data I get the message : > Fatal error: out of memory. Can you please try with 3.09 in experimental ? > To diagnose the problem and as adviced in the user manual, I have run > ocamlrun with the option -v. > It displays lots of "growing heap..." messages with the heap size > growing slowly. > In such situations the user manual says there is an attempt to construct > a data structure with too many cells. Well, usually you get this behavior because your application is not written optimally, especially with recursive functions. > I know this may look a very naive question, > but is is possible to increase the heap size? Probably, but not sure it will solve your problem. There is an ocaml-beginner mailing list somewhere which would be more appropriate though, as here we usually deal with packaging issues mostly. Friendly, Sven Luther