From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA15428; Tue, 16 Apr 2002 19:06:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA14532 for ; Tue, 16 Apr 2002 19:06:04 +0200 (MET DST) Received: from audi.ibcp.fr (audi.ibcp.fr [193.51.160.127]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3GH63b01519 for ; Tue, 16 Apr 2002 19:06:03 +0200 (MET DST) Received: from pc-bioinfo1.ibcp.fr (pc-bioinfo1.ibcp.fr [193.51.160.63]) by audi.ibcp.fr (Postfix) with ESMTP id 52766FC4D for ; Tue, 16 Apr 2002 19:06:03 +0200 (CEST) Date: Tue, 16 Apr 2002 18:52:15 +0200 (CEST) From: Martin Jambon X-X-Sender: To: Subject: Re: [Caml-list] Memory leak In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 15 Apr 2002, Martin Jambon wrote: > Hello, > > Is it possible that non-negligible amounts of unreachable data are never > freed by the GC? > > My program seems to waste memory, even with Gc.max_overhead set to 50 (or > even 0). > What should I do? It appears finally that explicit calls to Gc.compact solve the problem (or at least one of my problems). Setting Gc.max_overhead to a given value (e.g. 50%) didn't work in this case. Symptom: compactions are performed until a certain point (in my case, 67 compactions), and then no compaction is triggered anymore for a very long (infinite?) time, resulting in a linear increase of the memory. Thanks to all those that sent me their suggestions. Au passage, un grand merci à l'équipe Caml pour son travail de très haute qualité. Martin Jambon ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners