Article View: fa.caml
Article #135Re: [Caml-list] Memory fragmentation
From: SerP
Date: Tue, 24 Apr 2012 19:24
Date: Tue, 24 Apr 2012 19:24
24 lines
4028 bytes
4028 bytes
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, <rixed@happyleptic.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. 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 > > -- 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
Technical Details
Message-ID:
<fa.UokY8M4xIv80IJL0cOjhPzu3OyE@ifi.uio.no>Path:
arc1-ca.pugleaf.net!r9ni94107pbh.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailReferences:
<fa.BQPDkp4GTICgezqMipjyzfGHFCk@ifi.uio.no> <fa./QhU1susg5I2sxeCxgPZFPt/8n0@ifi.uio.no> <fa.Zq8tbHs0R/N4pDglavj9DQ/5E68@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: ff861,73392fc8a24639f4
X-Google-NewGroupId: yes
X-Google-Attributes: gidc0fe4b917e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.227.230 with SMTP id sd6mr139716pbc.8.1335295495111;
Tue, 24 Apr 2012 12:24:55 -0700 (PDT)
Path: arc1-ca.pugleaf.net!r9ni94107pbh.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: SerP <serp256@gmail.com>
Newsgroups: fa.caml
Subject: Re: [Caml-list] Memory fragmentation
Date: Tue, 24 Apr 2012 19:24:54 UTC
Organization: Internet mailing list
Lines: 32
Message-ID: <fa.UokY8M4xIv80IJL0cOjhPzu3OyE@ifi.uio.no>
References: <fa.BQPDkp4GTICgezqMipjyzfGHFCk@ifi.uio.no> <fa./QhU1susg5I2sxeCxgPZFPt/8n0@ifi.uio.no> <fa.Zq8tbHs0R/N4pDglavj9DQ/5E68@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1335295494 14874 129.240.7.9 (24 Apr 2012 19:24:54 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Tue, 24 Apr 2012 19:24:54 +0000 (UTC)
To: caml-list@inria.fr
X-IronPort-AV: E=Sophos;i="4.75,474,1330902000";
d="scan'208";a="155399764"
X-Authentication-Warning: walapai.inria.fr: sympa set sender to caml-list-owner@inria.fr using -f
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"
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==
In-Reply-To: <20120421072622.GB11211@yeeloong.happyleptic.org>
X-Sequence: 3964
List-Id: <caml-list.inria.fr>
List-Archive: <https://sympa-roc.inria.fr/wws/arc/caml-list>
List-Help: <mailto:sympa@inria.fr?subject=help>
List-Owner: <mailto:caml-list-request@inria.fr>
List-Post: <mailto:caml-list@inria.fr>
List-Subscribe: <mailto:sympa@inria.fr?subject=subscribe%20caml-list>
List-Unsubscribe: <mailto:sympa@inria.fr?subject=unsubscribe%20caml-list>
X-FA-Processed: Removed HTML alternative
Original-Date: Tue, 24 Apr 2012 23:24:36 +0400
Original-Message-Id: <CAHgca+-N84yVi5JEOKh2X0OBSFVOZWpOA9oa7JKQ-pj9C=+VtQ@mail.gmail.com>
Original-References: <CAHgca+9-K71NynNVzS0Stnb2v5Tc6n5ecCnJHZorhuB8y8EdTw@mail.gmail.com>
<CAHgca+_OD0twkZ6WPc2bkQtEAS6Qnj1ogTDLE-S4esw6GKAV9A@mail.gmail.com>
<20120421072622.GB11211@yeeloong.happyleptic.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit