caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: avv@quasar.ipa.nw.ru, caml-list@inria.fr
Subject: Re:  [Caml-list] ocaml-3.05: a performance experience
Date: Sun, 4 Aug 2002 20:06:06 +0200 (MET DST)	[thread overview]
Message-ID: <200208041806.UAA0000020032@beaune.inria.fr> (raw)

>From: "Alexander V. Voinov" <avv@quasar.ipa.nw.ru>

>Compiled with ocaml-3.04 it took 1h40m+-5m of 'user' process time and
>occupied about 340M in RAM. With 3.05 it took 2h40m+-5m and occupied
>250M. 

>Is this the consequence of the new GC strategy? Actually I'd tolerate
>large footprint for the sake of more speed.

Not really.  When debugging the problem of the compactor that would
not trigger, I stumbled on a bug in the way the GC determines its
speed (relative to the program).  In 3.04, when you ask for an
overhead of 42% (the default), the actual overhead is closer to 80%.
In 3.05 I fixed the formulas, but I didn't change the default 42%,
which results in a smaller memory footprint, but slower programs.

Of course, you can even try 100% or more.  Depending on the program,
you might gain a lot of time before you hit the point of diminishing
returns.

If you want to recover the previous behaviour, you should set
something like OCAMLRUNPARAM=o=80.  In 3.06, it will be the default.

Sorry for the inconvenience,

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


             reply	other threads:[~2002-08-04 18:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-04 18:06 Damien Doligez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-02  3:33 Alexander V. Voinov
2002-08-03 12:33 ` Gerd Stolpmann
2002-08-04  2:50   ` Alexander V. Voinov
2002-08-04 20:45     ` Gerd Stolpmann
2002-08-05 15:18       ` John Max Skaller
2002-08-05 16:24         ` Mike Lin
2002-08-05 16:53           ` Alexander V.Voinov
2002-08-06  3:22           ` John Max Skaller
2002-08-06 13:24             ` Mike Lin
2002-08-06 11:10           ` Noel Welsh
2002-08-06 12:56             ` Andreas Rossberg

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=200208041806.UAA0000020032@beaune.inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=avv@quasar.ipa.nw.ru \
    --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).