caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David MENTRE <david.mentre@gmail.com>
To: Jean-Marie Gaillourdet <jmg@gaillourdet.net>
Cc: jtbryant@valdosta.edu, caml-list@inria.fr
Subject: Re: [Caml-list] How INRIA people envision OCaml's parallel future?
Date: Fri, 24 Jun 2005 11:36:16 +0200	[thread overview]
Message-ID: <3d13dcfc050624023670d3aed2@mail.gmail.com> (raw)
In-Reply-To: <1119603126.8485.4.camel@localhost.localdomain>

Hello,

2005/6/24, Jean-Marie Gaillourdet <jmg@gaillourdet.net>:
> I am not a garbage collector specialist, too. But I guess it is much
> harder than this. Your idea implies that every allocation requires to
> obtain a lock. How often do you allocate memory in a functional
> programming language? Quite often, I guess. Every simple tuple, every
> constructor application and so on. So you would synchronize all threads
> very often. Additionally, during every collection phase, all other cpus
> have to wait for the garbage collector. I am pretty sure, that this
> would not scale very far. Sorry ;-)

One simple solution to this issue would be to have a per thread minor
allocation zone, with a global, lock-protected, major zone. For newly
allocated objects and minor collection phase, the code is lock-free.

But I suspect that interleaving between minor and major phases makes
things much more difficult. Maybe dedicating a thread to major
collection could be useful (major collection would be blocked by
access to minor zone, with priority given to minor zone).

Anyway, INRIA people have already worked on those issues and had
proposals. It is just that they feel it was not worth the trouble, *at
that time*:
http://groups.google.com/groups?q=doligez+parallel+GC+caml-list&hl=fr&lr=&selm=fa.dlqoshv.1a66ho7%40ifi.uio.no&rnum=2

Yours,
d.


  reply	other threads:[~2005-06-24  9:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-23  7:21 David MENTRE
2005-06-23  8:33 ` [Caml-list] " Frédéric Gava
2005-06-23  9:28   ` David MENTRE
2005-06-23 17:20 ` Jonathan_T_Bryant
2005-06-24  8:52   ` Jean-Marie Gaillourdet
2005-06-24  9:36     ` David MENTRE [this message]
2005-06-24 12:50       ` David MENTRE
2005-06-24 16:14         ` Jonathan_T_Bryant
     [not found]           ` <1119630886.18424.1.camel@calaf.rn.informatics.scitech.susx.ac.uk>
2005-06-24 17:02             ` Jonathan_T_Bryant
2005-06-24 16:59         ` Eric Stokes
2005-06-24 18:25           ` XDR and ASN.1 (was: Re: [Caml-list] How INRIA people envision OCaml's parallel future?) David MENTRE
2005-06-24 22:46           ` [Caml-list] How INRIA people envision OCaml's parallel future? Erik de Castro Lopo

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=3d13dcfc050624023670d3aed2@mail.gmail.com \
    --to=david.mentre@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=jmg@gaillourdet.net \
    --cc=jtbryant@valdosta.edu \
    /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).