From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pB898Qel014011 for ; Thu, 8 Dec 2011 10:08:29 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwDAFV94E7RVdK2kWdsb2JhbABAA4ZOlB2HZAGGdIEYCCIBAQEBCQkNBxIngXIBAQEBAgESAiwBCDABAwELAQUFCw0uIhIBBQEcBhMIGodlCJoiCo5PhFIwiH4CBQyIEoMdBIgujD2NcD2BTYJN X-IronPort-AV: E=Sophos;i="4.71,319,1320620400"; d="scan'208";a="122546434" Received: from mail-iy0-f182.google.com ([209.85.210.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Dec 2011 10:08:20 +0100 Received: by iafi7 with SMTP id i7so3682366iaf.27 for ; Thu, 08 Dec 2011 01:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=UA656ZymHpjiu+6QPlJstiLUMVoCeXurh49ArsRnHZg=; b=k2G5cl5j3bUwTn3bo5OjSgtf4sXxQtkE5lXyzjvOWCdGklqdkp9lIl4zZ0pfE7R/N4 oRS75zgJOiWDiwYO/2Jfu7WsZ3bj14aTQGIEjLEeh2IJzlpa8kjZt/f89MbDxaQSplLF 6Ql6jOQaGrXfMb2Oq8M8n5nJrdLCDuDSKRwiY= Received: by 10.231.68.130 with SMTP id v2mr505134ibi.71.1323335279185; Thu, 08 Dec 2011 01:07:59 -0800 (PST) MIME-Version: 1.0 Sender: warnegia@gmail.com Received: by 10.50.79.8 with HTTP; Thu, 8 Dec 2011 01:07:38 -0800 (PST) In-Reply-To: <18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org> References: <4EE05363.8080102@glondu.net> <18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org> From: William Le Ferrand Date: Thu, 8 Dec 2011 01:07:38 -0800 X-Google-Sender-Auth: BphYsKrnJ70UIauJkaiytH_cJMY Message-ID: To: Anil Madhavapeddy Cc: =?ISO-8859-1?Q?St=E9phane_Glondu?= , caml users Content-Type: multipart/alternative; boundary=00151773d64c3c0f7b04b39101c6 Subject: Re: [Caml-list] Storing ocaml values outside ocaml's heap --00151773d64c3c0f7b04b39101c6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok thanks. I'll have a very close look at it very soon and hopefully integrate it on www.besport.com backend then :) Many thanks to all of you Best William On Thu, Dec 8, 2011 at 1:04 AM, Anil Madhavapeddy wrote: > I think Ancient is exactly what you're looking for. > > Just disable swap (which you should do anyway on a big modern server), and > it will let you keep in-memory, out-of-heap OCaml values that don't get > scanned by the GC. > > Anil > > On 8 Dec 2011, at 08:19, William Le Ferrand wrote: > > hi Stephane > > Yes, but it's not exactly what we're looking for : we plan to access the > data at a (very) high rate, so swapping/unswapping would probably kill the > performance .. > > > On Wed, Dec 7, 2011 at 10:04 PM, St=E9phane Glondu wro= te: > >> Le 08/12/2011 05:35, William Le Ferrand a =E9crit : >> > We are building a cache in ocaml and we're wondering if it would make >> > sense to store ocaml values outside the reach of the gc. (gc on a 20GB >> > cache hangs the process for a second or so). >> >> Have you heard of the ancient [1] library? >> >> [1] http://git.annexia.org/?p=3Docaml-ancient.git;a=3Dsummary >> >> >> Cheers, >> >> -- >> St=E9phane >> >> > > > -- > William Le Ferrand > > Mobile : (+1) (415) 683-1484 > Web : http://williamleferrand.github.com/ > > > > --=20 William Le Ferrand Mobile : (+1) (415) 683-1484 Web : http://williamleferrand.github.com/ --00151773d64c3c0f7b04b39101c6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok thanks. I'll have a very close look at it very soon and hopefully in= tegrate it on www.besport.com backen= d then :)

Many thanks to all of you

Best

William

On Thu, Dec 8, 2011 at 1:04 AM, Anil Madhavapeddy <<= a href=3D"mailto:anil@recoil.org">anil@recoil.org> wrote:
=
I think Ancient is exactly what you'= ;re looking for.

Just disable swap (which you should do = anyway on a big modern server), and it will let you keep in-memory, out-of-= heap OCaml values that don't get scanned by the GC.

Anil

On 8 Dec 2011, at 08:19, William Le Ferra= nd wrote:

hi Stephane

Yes, but it's not exactly what we're looking for : we plan to acces= s the data at a (very) high rate, so swapping/unswapping would probably kil= l the performance ..=A0


On Wed, Dec 7, 2011 at 10:04 PM, St=E9phane Glondu <steph@glondu.net>= ; wrote:
Le 08/12/2011 05:35, William Le Ferrand a = =E9crit :
> We are building a cache in ocaml and we're wondering if it wo= uld make
> sense to store ocaml values outside the reach of the gc. (gc on a 20GB=
> cache hangs the process for a second or so).

Have you heard of the ancient [1] library?

[1] http://git.annexia.org/?p=3Docaml-ancient.git;a=3Dsummary<= /a>


Cheers,

--
St=E9phane




--
Willi= am Le Ferrand





--
William Le Ferrand

Mob= ile :=A0(+1)=A0(415) 683-1484

--00151773d64c3c0f7b04b39101c6--