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
Memory cost of a compaction
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-04 (09:22)
From: David Baelde <david.baelde@g...>
Subject: Re: [Caml-list] Memory cost of a compaction

I actually started logging Gc compactions and a few other messages
after that mail. It showed me that many compactions happened before 10
hours of run, without any noticeable cost in memory consumption.
Besides, the OCaml heap is really small compared to the C heap.

Using mtrace() I actually found out that my bug is related to vorbis
(probably used in a wrong way in ocaml-vorbis in case of downsampling)
which after ten hours requires two 50MB PCM buffers...

Anyway, after a little thinking it seems to me that not much extra
memory is needed by compactions, you can just move things inside down
the heap without extra room, right?