From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q3OJOSv0007674 for ; Tue, 24 Apr 2012 21:24:38 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhQEAAn9lk/RVdU2imdsb2JhbABEoASIWwGIBgKBCQgiAQEBCgkNBxIGI4IJAQEBAwESAiwBGxIMAwELBgUEAQYaISIBEQEFAQoSGRIQh14BAwYFC5tFCowjgnOFOgoZJwMKV4h2AQULjA6CE4MlBIhdhTKHa4ERjU09hBE X-IronPort-AV: E=Sophos;i="4.75,474,1330902000"; d="scan'208";a="155399697" Received: from mail-yw0-f54.google.com ([209.85.213.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Apr 2012 21:24:37 +0200 Received: by yhgm50 with SMTP id m50so1038948yhg.27 for ; Tue, 24 Apr 2012 12:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CuSVMVW51UEKgr4s7eASKc01LM5pxPzXDii/9qvYAB0=; b=qvZLXe63FTxieTVbGSgyKA3hfBcGDZzFeek1ZJ7/k5PLbIXpNuE1pVpboRi5HpvQEY XLq5rj8xyA7go5Slpss0x9e23GloplKR+wCt/KtFxNn+WXinMtMybZTvDFm4+WFa/pfM tB/TigOHLcTE0/RjjLtvTC4Ctw8wEDpFjEIIufMNBFfX4nuKad4s2VJz8oLwA5d2KM6u N7Wkj5YPd7OQPZi4CScT3FXrRU6YvFUY4wpBIkauwYCT7x7N4JGPOArWlcL5VxubpqZ4 qjrcDZL1gBcODhQy85HFBlJb1GoAh3ZObBDbAoN1VUdAt+Km6bhrsZj62ip68DxsSy91 gy2w== MIME-Version: 1.0 Received: by 10.236.178.65 with SMTP id e41mr10361148yhm.130.1335295476804; Tue, 24 Apr 2012 12:24:36 -0700 (PDT) Received: by 10.236.145.36 with HTTP; Tue, 24 Apr 2012 12:24:36 -0700 (PDT) In-Reply-To: <20120421072622.GB11211@yeeloong.happyleptic.org> References: <20120421072622.GB11211@yeeloong.happyleptic.org> Date: Tue, 24 Apr 2012 23:24:36 +0400 Message-ID: From: SerP To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=20cf3040e4d090ad5804be71b41d Subject: Re: [Caml-list] Memory fragmentation --20cf3040e4d090ad5804be71b41d Content-Type: text/plain; charset=ISO-8859-1 I replaced call of 'malloc' in 'caml_alloc_for_heap' function to mmap, and 'free' in 'caml_free_for_heap' to unmap. Unused memory is freed after Gc.compaction. On Sat, Apr 21, 2012 at 11:26 AM, wrote: > There is a commit dating from a few days ago that might > be related to your problem (commit msg was : > PR#5389: compaction sometimes leaves a very large heap) > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > --20cf3040e4d090ad5804be71b41d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I replaced call of 'malloc' in 'caml= _alloc_for_heap' function to mmap, and 'free' in 'caml_free= _for_heap' to unmap. Unused memory is freed after Gc.compaction.=A0
=
On Sat, Apr 21, 2012 at 11:26 AM, <rixed@h= appyleptic.org> wrote:
There is a commit dating from a few days ago that might
be related to your problem (commit msg was :
PR#5389: compaction sometimes leaves a very large heap)


--
Caml-list mailing list. =A0Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


--20cf3040e4d090ad5804be71b41d--