From: "David McClain" <dmcclain@azstarnet.com>
To: <caml-list@inria.fr>
Subject: Fw: Garbage collection in OCaml
Date: Fri, 29 Sep 2000 16:09:48 -0700 [thread overview]
Message-ID: <003001c02a6a$5df967e0$210148bf@dylan> (raw)
Sorry... I should have mentioned that these trials were running on Win/NT
4.0 SP3 platforms. OCaml version 3.00, with MASM 6.11.
Cheers!
- DM
-----Original Message-----
From: David McClain <dmcclain@azstarnet.com>
To: caml-list@inria.fr <caml-list@inria.fr>
Date: Friday, September 29, 2000 3:50 PM
Subject: Garbage collection in OCaml
>Hi,
>
>I have a long running analysis program written in compiled OCaml
(ocamlopt).
>If I let it run without interference it gradually allocates more and more
>memory until the system swap space is exhausted. At that point the program
>bombs off with an "out of memory" errror - probably generated by the OCaml
>array management routines.
>
>OTOH, I found by tinkering that placing a Gc.compact() in a periodically
>performed place, I manage to keep the entire system running within about 70
>MBytes. (My machines all have 256 MB RAM or more).
>
>I have found that placing a Gc.full_major() does virtually nothing to
>prevent the exhaustion of memory, although it slows it down ever so
>slightly.
>
>The program was compiled to run with the default GC settings (whatever
those
>are). That is to say, I did nothing to configure the GC system at program
>startup.
>
>Is this behavior normal? Must I plant strategic Gc.compact() in my code? I
>would have thought the GC would be more self monitoring. Your comments are
>most welcome, even if they are critical!
>
>Cheers,
>
>David McClain, Sr. Scientist
>Raytheon Missile Systems Co.
>Tucson, AZ
>
>
reply other threads:[~2000-09-30 12:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='003001c02a6a$5df967e0$210148bf@dylan' \
--to=dmcclain@azstarnet.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