caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Being aware of memory overuse
@ 2010-02-05 10:34 David Rajchenbach-Teller
  2010-02-06 13:34 ` Sylvain Le Gall
  0 siblings, 1 reply; 6+ messages in thread
From: David Rajchenbach-Teller @ 2010-02-05 10:34 UTC (permalink / raw)
  To: caml-list

       Dear list,
 I'm writing some code that needs to be able to cope nicely with memory exhaustion. That is, it should be able to detect at some point if it is getting close to exhausting memory, and take the necessary course of action (e.g. bailing out nicely). I'm wondering what's the best way of doing this. I've been thinking about installing a [Gc.alarm] and checking [Gc.free_words], [Gc.free_blocks], [Gc.largest_free] just after each major cycle, but I'm wondering if it's the best technique.

Any suggestion?

Thanks in advance,
 David


-- 
David Rajchenbach-Teller
 Head of R&D
 MLstate


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

end of thread, other threads:[~2010-02-10 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 10:34 Being aware of memory overuse David Rajchenbach-Teller
2010-02-06 13:34 ` Sylvain Le Gall
2010-02-10  8:45   ` [Caml-list] " Goswin von Brederlow
2010-02-10 13:43     ` Dario Teixeira
2010-02-10 17:47       ` Sylvain Le Gall
2010-02-10 21:31       ` [Caml-list] " Goswin von Brederlow

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