caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Monniaux <monniaux@dmi.ens.fr>
To: Chris Hecker <checker@d6.com>
Cc: Shivkumar Chandrasekaran <shiv@ece.ucsb.edu>, caml-list@inria.fr
Subject: Re: [Caml-list] Slow GC problem
Date: Tue, 8 Apr 2003 09:15:45 +0200 (MEST)	[thread overview]
Message-ID: <Pine.GSO.4.03.10304080910300.16396-100000@basilic.ens.fr> (raw)
In-Reply-To: <4.3.2.7.2.20030407110109.0376f888@localhost>

On Mon, 7 Apr 2003, Chris Hecker wrote:

> >I am concluding that gc is to blame.
> Did you profile to check this assumption?  What's the profile look like?

A little bit of experience here: I have done such profiles with the
following tools:

* gprof (compile with ocamlopt -p and gcc -pg);

* oprofile (hardware-based, supports only certain platforms including
  Linux/x86; can profile not only clock ticks, but also events such as
  cache faults).

My (somehow unsurprising) experience was that:
* GC generates 15-20% of cache faults
* GC takes about 15% of time.
A conjecture on my part is that using a lot of unboxed floats is partly
responsible.

My conclusion: you should definitely profile your code before starting
to incriminate the GC or any other module.


David Monniaux            http://www.di.ens.fr/~monniaux
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

-------------------
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


  reply	other threads:[~2003-04-08  9:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04 19:40 Shivkumar Chandrasekaran
2003-04-03 21:07 ` Christophe Raffalli
2003-04-07 17:53 ` Shivkumar Chandrasekaran
2003-04-07 19:08   ` Chris Hecker
2003-04-08  7:15     ` David Monniaux [this message]
2003-04-08 10:28   ` Damien Doligez
2003-04-08 23:03     ` Shivkumar Chandrasekaran
2003-04-08 10:23 ` Damien Doligez
2003-04-10 21:21   ` Shivkumar Chandrasekaran
2003-04-10 21:51     ` Brian Hurt
2003-04-11  7:10     ` Chris Hecker
2003-04-11  7:58       ` Christophe Raffalli
2003-04-11 16:35         ` Shivkumar Chandrasekaran
2003-04-14 16:37 Shivkumar Chandrasekaran
2003-10-23  8:17 Chris Hecker

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=Pine.GSO.4.03.10304080910300.16396-100000@basilic.ens.fr \
    --to=monniaux@dmi.ens.fr \
    --cc=caml-list@inria.fr \
    --cc=checker@d6.com \
    --cc=shiv@ece.ucsb.edu \
    /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).