From: oliver <oliver@first.in-berlin.de>
To: Anthony Tavener <anthony.tavener@gmail.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Early GC'ing
Date: Mon, 19 Aug 2013 00:40:24 +0200 [thread overview]
Message-ID: <20130818224024.GA10193@siouxsie> (raw)
In-Reply-To: <CAN=ouMQKr10L87_xWzR5j+YNH63Vzw+RiWciEEOhA9BQDzrUPw@mail.gmail.com>
Hi,
thanks for your hints.
On Sun, Aug 18, 2013 at 03:14:26PM -0600, Anthony Tavener wrote:
> I run tight loops (game engine -- 60fps with a lot of memory activity and
> allocations each frame), and the GC works remarkably well at keeping things
> sane. I did have a problem with runaway allocations once, and tracked it
> down to a source of allocations which was effectively never
> un-referenced... so a legitimate leak.
>
> If you do a Gc.full_major (), is your memory returned? If not, then I think
> that's evidence that there's still some handle on it -- be sure the
> appropriate values have fallen out of scope and aren't referenced in some
> other way!
[...]
It did not helped much.
Not sure if it's a Gc-issue at all, or overhead of the data structures.
I used my full dataset now and top showed me mem usage above 50% (about 50...55).
From 1.9 GB free mem and a resulting file of 254 MB, it means
1000 MB mem usage for 254 MB output data.
Maybe thats just the normal overhead I have to accept. (?)
The input data was 1.4 GB.
(It seemed, the Gc-invokation did made the program run faster. But I'm not sure
if it's an artifact (caching stuff by the kernel or so or my unprecise measurment).
It's about 9 minutes vs. 10.5 minutes, but rather unprecise measured with "top" and eye.)
>
> On the other hand, if this is just the GC not cleaning up quick enough for
> your case... I'm sorry I have no help for tuning the GC. The documentation
> in gc.mli seemed pretty sensible when I looked at it (a while ago) though!
I had no problem with fast cleaning; rather my limited mem on my machine
was an issue. Looks like I need a new / bigger machine...
The expected worst case of swapping did not occur at all.
Ciao,
Oliver
next prev parent reply other threads:[~2013-08-18 22:40 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 [this message]
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
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=20130818224024.GA10193@siouxsie \
--to=oliver@first.in-berlin.de \
--cc=anthony.tavener@gmail.com \
--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