Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Slow GC problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Monniaux <monniaux@d...>
Subject: Re: [Caml-list] Slow GC problem
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

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

David Monniaux  
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: