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.8 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr 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 353FDBBAF for ; Fri, 5 Jun 2009 17:39:35 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsDALjYKEpQRFuwgWdsb2JhbACYJQEBFiO5JYQKBQ X-IronPort-AV: E=Sophos;i="4.41,312,1241388000"; d="scan'208";a="41164582" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 05 Jun 2009 17:39:34 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1MCbW1-0006WD-Qz; Fri, 05 Jun 2009 16:39:33 +0100 Date: Fri, 5 Jun 2009 16:39:33 +0100 To: Dawid Toton Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Memory leak & slowdown Message-ID: <20090605153933.GA24767@annexia.org> References: <4A2924E1.50307@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A2924E1.50307@wp.pl> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; 0200,:01 ocaml:01 gtk:01 lablgtk:01 2009:98 51.:98 instrument:98 threads:01 wrote:01 caml-list:01 caml-list:01 caml:02 caml:02 root:04 root:04 On Fri, Jun 05, 2009 at 04:00:01PM +0200, Dawid Toton wrote: > I have an OCaml program using GTK running on Windows, using multiple > threads. > > The overall memory usage grows significantly over time, but I don't know > why. After it consumes several MB extra, it slows considerably and > becomes unusable, so I have to fix this. Could this be the GtkListView / register_global_root problem in lablgtk? http://caml.inria.fr/pub/ml-archives/caml-list/2005/08/7468da0a1e9d9891bc4cdf13eb725a51.en.html You might want to instrument the [caml_]register_global_root function and see how often it gets called. Rich. -- Richard Jones Red Hat