caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Manually triggering garbage collection
@ 2008-07-26 19:15 Jean Krivine
       [not found] ` <08F66ABF-5C25-4D49-8B0B-77B2F757C1DD@inria.fr>
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Krivine @ 2008-07-26 19:15 UTC (permalink / raw)
  To: caml-list

Dear list,

I am running a memory intensive stochastic simulator written in ocaml.
After initialization of the data structure (which eats up a lot of
memory but that's normal) I observe a memory leak during the
simulation which should not be there.
I noticed that if I run Gc.major() every n computation events after
initialization (I can make n vary), then there is no more memory leak
(the memory the process is using is constant).

So my question is the following:
Is there a rational way to detect I should call for Gc.Major()? (for
the moment I am triggering it every n events which is arbitrary)

Thank you very much

Jean


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-29 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-26 19:15 Manually triggering garbage collection Jean Krivine
     [not found] ` <08F66ABF-5C25-4D49-8B0B-77B2F757C1DD@inria.fr>
2008-07-29 13:39   ` [Caml-list] " Jean Krivine

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