Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Francois Rouaix <frouaix@mail.liquidmarket.com>
To: "David McClain" <dmcclain@azstarnet.com>
Cc: caml-list@inria.fr
Subject: Re: Garbage collection in OCaml
Date: Sat, 30 Sep 2000 12:58:36 -0700	[thread overview]
Message-ID: <200009301958.MAA12271@fiji01.liquidmarket.com> (raw)
In-Reply-To: Message from "David McClain" <dmcclain@azstarnet.com>  of "Fri, 29 Sep 2000 15:50:45 PDT." <000501c02a67$c5307820$210148bf@dylan>

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

That would be typical of an application that is stable in memory
allocation (no leaks), but has a pattern of allocation that causes
fragmentation. I have that a lot in network applications that use
buffers for I/O, and I usually either call Gc.compact once in a while,
or I set max_overhead in Gc.control to something like 50.
For example, one of the servers behind shopping.nbci.com uses anywhere
from 300M to 500M, but I have to leave the compaction to avoid
swapping.

--f




  reply	other threads:[~2000-10-02  8:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-29 22:50 David McClain
2000-09-30 19:58 ` Francois Rouaix [this message]
2000-10-02  9:23 Damien Doligez
2000-10-02 17:15 David McClain

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=200009301958.MAA12271@fiji01.liquidmarket.com \
    --to=frouaix@mail.liquidmarket.com \
    --cc=caml-list@inria.fr \
    --cc=dmcclain@azstarnet.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