Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: ratio of heap size to live data in Caml GC?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: ratio of heap size to live data in Caml GC?
>From: Norman Ramsey <nr@eecs.harvard.edu>

>Can anybody tell me what ratio of heap size to live data the OCaml collector
>needs to perform well?  The default ratio appears to be 2.4.  I assume
>this means the collector is a mark-and-sweep collector?

The collector is generational, with the young generation managed by a
stop-and-copy collector, and the old generation by a mark-and-sweep.

The default ratio of heap size to live data for the old heap is
supposed to be about 1.42, assuming that your program uses a constant
amount of live data.

-- Damien