caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anil Madhavapeddy <anil@recoil.org>
To: William Le Ferrand <William.Le-Ferrand@polytechnique.edu>
Cc: "Stéphane Glondu" <steph@glondu.net>, "caml users" <caml-list@inria.fr>
Subject: Re: [Caml-list] Storing ocaml values outside ocaml's heap
Date: Thu, 8 Dec 2011 09:04:50 +0000	[thread overview]
Message-ID: <18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org> (raw)
In-Reply-To: <CAGS5m-=jWf=Y=17qc3mCD4=qAT-U5bqqDoP4g4ABkiRx=6SJ8w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

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éphane Glondu <steph@glondu.net> wrote:
> Le 08/12/2011 05:35, William Le Ferrand a écrit :
> > 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=ocaml-ancient.git;a=summary
> 
> 
> Cheers,
> 
> --
> Stéphane
> 
> 
> 
> 
> -- 
> William Le Ferrand
> 
> Mobile : (+1) (415) 683-1484
> Web : http://williamleferrand.github.com/
> 


[-- Attachment #2: Type: text/html, Size: 2303 bytes --]

  reply	other threads:[~2011-12-08  9:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08  4:35 William Le Ferrand
2011-12-08  6:04 ` Stéphane Glondu
2011-12-08  8:19   ` William Le Ferrand
2011-12-08  9:04     ` Anil Madhavapeddy [this message]
2011-12-08  9:07       ` William Le Ferrand
2011-12-08 11:03       ` oliver
2011-12-08 17:02         ` Goswin von Brederlow
2011-12-08  9:40   ` Gaius Hammond
2011-12-08  8:49 ` Anders Fugmann
2011-12-08  8:56   ` William Le Ferrand
2011-12-08  9:29     ` Anders Fugmann
2011-12-08  9:12 ` Gerd Stolpmann
2011-12-08 10:33 ` Goswin von Brederlow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org \
    --to=anil@recoil.org \
    --cc=William.Le-Ferrand@polytechnique.edu \
    --cc=caml-list@inria.fr \
    --cc=steph@glondu.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).