caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Memory cost of a compaction
@ 2006-12-02 15:34 David Baelde
  2006-12-04  9:07 ` [Caml-list] " Hendrik Tews
  0 siblings, 1 reply; 3+ messages in thread
From: David Baelde @ 2006-12-02 15:34 UTC (permalink / raw)
  To: Ocaml

Hi,

I have a program which memory consumption slowly increases (say from
6M to 8M resident set size, the total size being around 67M), and then
at some point after like 10 hours, suddenly exploses to 100M (rss) and
more until it crashes because of the lack of memory.

I've been tracking the problem for days. I found some memory leaks in
C bindings, but it doesn't explain the explosion which indeed still
happens. Using ocaml-memprof I could see that the number and size of
values is normal.

But I'm now wondering if after 10 hours a compaction could be
triggered because of fragmentation. I believe that a compaction would
allocate some memory in order to move data around, could it be the
cause for my explosion ? My question is: in the worst case, how much
memory can be needed for compaction ?

Thanks for any details about compaction -- pr any idea about this explosion.
-- 
David

PS: I know that I can trigger compaction manually, and log compactions
-- heap extensions are interesting too. I'll do that in the next run.


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

end of thread, other threads:[~2006-12-04  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 15:34 Memory cost of a compaction David Baelde
2006-12-04  9:07 ` [Caml-list] " Hendrik Tews
2006-12-04  9:22   ` David Baelde

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