From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 12645BBAF for ; Wed, 11 Aug 2010 14:53:24 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEIAJw5Ykw+BBB1YGdsb2JhbACDFZ0ZHyUDH6kvkX2BJoFdCIE8cwQ X-IronPort-AV: E=Sophos;i="4.55,352,1278280800"; d="scan'208";a="55306684" Received: from smtp-117-wednesday.nerim.net (HELO maiev.nerim.net) ([62.4.16.117]) by mail3-smtp-sop.national.inria.fr with ESMTP; 11 Aug 2010 14:53:23 +0200 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by maiev.nerim.net (Postfix) with ESMTP id 12E72B8664; Wed, 11 Aug 2010 14:53:23 +0200 (CEST) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with esmtp (Exim 4.72) (envelope-from ) id 1OjAo6-0007TX-SO; Wed, 11 Aug 2010 14:53:22 +0200 Subject: Re: [Caml-list] GC hangs application From: Basile Starynkevitch Reply-To: basile@starynkevitch.net To: Paul Steckler Cc: "caml-list@yquem.inria.fr" In-Reply-To: <2EB36A07AAE8C44BBB1986425E7A22D0128715A3DE@atp-mbx1.in.nicta.com.au> References: <2EB36A07AAE8C44BBB1986425E7A22D0128715A3DE@atp-mbx1.in.nicta.com.au> Content-Type: text/plain; charset="UTF-8" Date: Wed, 11 Aug 2010 14:53:53 +0200 Message-ID: <1281531233.3358.42.camel@glinka> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; basile:01 basile:01 steckler:01 ocaml:01 ocaml:01 faiencerie:01 92340:01 reine:01 garbage:01 wrote:01 caml-list:01 functions:01 strings:01 hangs:01 hangs:01 On Wed, 2010-08-11 at 19:30 +1000, Paul Steckler wrote: > I have an OCaml application that does a lot of string manipulations, generating a > lot of garbage. After running awhile, it seems not to make any progress. The exact > point where it hangs varies. The strings aren't very large, but there a lot of them. Is your application a well behaved purely Ocaml code, or do you have Obj.magic or external functions written in C? Perhaps you are violating some GC invariant. You might still occasionally (i.e. every 1000 steps or requests, or every few seconds) call Gc.compact. > The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments. I understand you don't customize that kind of [stupid company policy] mail footer, but it is really inappropriate on a public & archived mailing list. The usual advice is to use a public email account (e.g. on gmail) to avoid that kind of nonsense. Nothing on a publicly archived list can be confidential! Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***