From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id DC01ABBAF for ; Wed, 24 Nov 2010 23:36:01 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoCAJci7UzZSMDqgmdsb2JhbACjCRUBAQsLCAcTAx++OoVHBI1vgnA X-IronPort-AV: E=Sophos;i="4.59,250,1288566000"; d="scan'208";a="80153034" Received: from fmmailgate03.web.de ([217.72.192.234]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Nov 2010 23:35:49 +0100 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate03.web.de (Postfix) with ESMTP id 95D711775AA8C; Wed, 24 Nov 2010 23:35:27 +0100 (CET) Received: from [78.43.204.177] (helo=frosties.localdomain) by smtp02.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #24) id 1PLNvz-0005Ha-00; Wed, 24 Nov 2010 23:35:27 +0100 Received: from mrvn by frosties.localdomain with local (Exim 4.72) (envelope-from ) id 1PLNvz-0005VS-5C; Wed, 24 Nov 2010 23:35:27 +0100 From: Goswin von Brederlow To: Eray Ozkural Cc: Jon Harrop , Sylvain Le Gall , caml-list@inria.fr Subject: Re: [Caml-list] Re: Optimizing garbage collection References: <4CE68FAB.6020102@elehack.net> <577267187.967802.1290367612809.JavaMail.root@zmbs1.inria.fr> <05dd01cb8a8a$49360cb0$dba22610$@com> Date: Wed, 24 Nov 2010 23:35:27 +0100 In-Reply-To: (Eray Ozkural's message of "Tue, 23 Nov 2010 01:13:50 +0200") Message-ID: <87r5eapcy8.fsf@frosties.localnet> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX18PBAHxM2JMkkwfT8bdQxLc72SgpePCm01F6KXE EfeCrxJk6bU1dfBMADzNrqmlNY2qBDnzskG2o0tS3pCthrUUdI UpknWC0nA= X-Spam: no; 0.00; eray:01 ozkural:01 cheers:01 mfg:98 garbage:01 wrote:01 heap:01 heap:01 caml-list:01 minor:01 writes:01 optimizing:03 depends:04 size:95 size:95 Eray Ozkural writes: > On Mon, Nov 22, 2010 at 11:14 PM, Jon Harrop > 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