caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <raffalli@univ-savoie.fr>
Cc: francois bereux <francois.bereux@fr.thalesgroup.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Garbage collector and memory fragmentation
Date: 27 May 2002 11:39:18 +0200	[thread overview]
Message-ID: <1022492358.4015.12.camel@d85.lama.univ-savoie.fr> (raw)
In-Reply-To: <20020527101912.C15615@pauillac.inria.fr>

Le lun 27/05/2002 à 10:19, Xavier Leroy a écrit :
> > <This question is not specific to OCaml, but rather to garbage
> > collection.>
> > 

> > My question is : does a garbage collector (for instance the one in
> > OCaml) deal with this kind of issues ( defragmentation of the memory )
> > in a situation similar to mine : many small lists of elements ?


Another point: the standard allocation (malloc) works in general with
pages: a page will really be freed if nothing in the page is used and
very often (always ?) malloc is bad at reusing pieces of a page that
have been deallocated.

Laguage with GC always deals with that issue (never perfectly, except
for stop&copy or other copacting GC) ! Otherwise, they will fail exactly
on the situation you describe which are very common in functionnal
programs.

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2002-05-27 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24  7:23 francois bereux
2002-05-24 10:22 ` Markus Mottl
2002-05-24 11:36   ` Martin Jambon
2002-05-27  8:19 ` Xavier Leroy
2002-05-27  9:39   ` Christophe Raffalli [this message]
2002-05-27 13:37 ` francois bereux

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=1022492358.4015.12.camel@d85.lama.univ-savoie.fr \
    --to=raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=francois.bereux@fr.thalesgroup.com \
    /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).