caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: Paul Steckler <Paul.Steckler@nicta.com.au>
Cc: "caml-list@yquem.inria.fr" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] GC hangs application
Date: Wed, 11 Aug 2010 14:53:53 +0200	[thread overview]
Message-ID: <1281531233.3358.42.camel@glinka> (raw)
In-Reply-To: <2EB36A07AAE8C44BBB1986425E7A22D0128715A3DE@atp-mbx1.in.nicta.com.au>

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: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***


  parent reply	other threads:[~2010-08-11 12:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11  9:30 Paul Steckler
2010-08-11 12:21 ` [Caml-list] " Goswin von Brederlow
2010-08-11 12:53 ` Basile Starynkevitch [this message]
2010-08-11 14:21 ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281531233.3358.42.camel@glinka \
    --to=basile@starynkevitch.net \
    --cc=Paul.Steckler@nicta.com.au \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).