English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Optimizing garbage collection
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-24 (22:36)
From: Goswin von Brederlow <goswin-v-b@w...>
Subject: Re: [Caml-list] Re: Optimizing garbage collection
Eray Ozkural <examachine@gmail.com> writes:

> On Mon, Nov 22, 2010 at 11:14 PM, Jon Harrop <jonathandeanharrop@googlemail.com
>> wrote:
>     What happens if you just increase the default size?
> Well we don't want to be a memory hog like Java do we? It's something that kind
> of depends on the app, what would you set it to?
> Cheers,

I would start below the cache size. If that works that is really great.

Limit it by the size of the major heap (at most 10% of the major heap
size?). And grow/shrink it by amount of copying to the major heap that
is required. If less than 10% of the minor heap are still alive on a
sweep then shrink it, if more than 50% are alive then grow it or

Do a lot of tests to find good values for those percentages.