caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mark Shinwell <mshinwell@janestreet.com>
To: Anthony Tavener <anthony.tavener@gmail.com>
Cc: oliver <oliver@first.in-berlin.de>,
	"caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Early GC'ing
Date: Mon, 19 Aug 2013 12:39:32 +0100	[thread overview]
Message-ID: <CAM3Ki76Jf_Y3RNEqOan_3_2sZvo3VvnDfkiS-pnJ19LDkQYrTw@mail.gmail.com> (raw)
In-Reply-To: <CAN=ouMSFSEmrnbdkfEefa0faKKoTJQqTNdgzT+5tnLADDMaU3A@mail.gmail.com>

On 19 August 2013 07:43, Anthony Tavener <anthony.tavener@gmail.com> wrote:
> What I was hinting at with Gc.full_major (), is that if you still had a
> large amount of memory allocated after calling that, I think that means your
> program is still holding on to the values somewhere.

I'm not sure that is the case.  As far as I know offhand,
[Gc.full_major] won't cause memory previously occupied by Caml heap
pages to be returned to the operating system (and so you'd still
see it allocated in top).  You would need to call [Gc.compact],
which is potentially much more expensive, to achieve that effect.

Mark

  parent reply	other threads:[~2013-08-19 11:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 20:42 oliver
2013-08-18 20:53 ` oliver
2013-08-18 21:14   ` Anthony Tavener
2013-08-18 22:40     ` oliver
2013-08-19  0:20       ` oliver
2013-08-19  6:43         ` Anthony Tavener
2013-08-19 10:34           ` oliver
2013-08-19 11:39           ` Mark Shinwell [this message]
2013-08-19 11:51 ` Adrien Nader
2013-08-19 12:36   ` oliver

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=CAM3Ki76Jf_Y3RNEqOan_3_2sZvo3VvnDfkiS-pnJ19LDkQYrTw@mail.gmail.com \
    --to=mshinwell@janestreet.com \
    --cc=anthony.tavener@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /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).