caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <m.jambon@ibcp.fr>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] Memory leak
Date: Tue, 16 Apr 2002 18:52:15 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.33L2.0204161802020.2358-100000@pc-bioinfo1.ibcp.fr> (raw)
In-Reply-To: <Pine.LNX.4.33L2.0204151905050.5606-100000@pc-bioinfo1.ibcp.fr>

On Mon, 15 Apr 2002, Martin Jambon wrote:

> Hello,
>
> Is it possible that non-negligible amounts of unreachable data are never
> freed by the GC?
>
> My program seems to waste memory, even with Gc.max_overhead set to 50 (or
> even 0).
> What should I do?

It appears finally that explicit calls to Gc.compact solve the problem (or
at least one of my problems).

Setting Gc.max_overhead to a given value (e.g. 50%) didn't work in this
case.
Symptom: compactions are performed until a certain point
(in my case, 67 compactions), and then no compaction is triggered anymore
for a very long (infinite?) time, resulting in a linear increase of the
memory.



Thanks to all those that sent me their suggestions.

Au passage, un grand merci à l'équipe Caml pour son travail de très haute
qualité.


Martin Jambon

-------------------
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


      parent reply	other threads:[~2002-04-16 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-15 19:24 Martin Jambon
2002-04-16 13:22 ` Brian Rogoff
2002-04-16 22:41   ` Scott Cyphers
2002-04-17  9:22     ` Markus Mottl
2002-04-17 14:53       ` Brian Rogoff
2002-04-16 16:52 ` Martin Jambon [this message]

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=Pine.LNX.4.33L2.0204161802020.2358-100000@pc-bioinfo1.ibcp.fr \
    --to=m.jambon@ibcp.fr \
    --cc=caml-list@inria.fr \
    /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).