Browse thread
Optimizing garbage collection
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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
something.
Do a lot of tests to find good values for those percentages.
MfG
Goswin