caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re:  [Caml-list] ocaml-3.05: a performance experience
@ 2002-08-04 18:06 Damien Doligez
  0 siblings, 0 replies; 12+ messages in thread
From: Damien Doligez @ 2002-08-04 18:06 UTC (permalink / raw)
  To: avv, caml-list

>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


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] ocaml-3.05: a performance experience
@ 2002-08-02  3:33 Alexander V. Voinov
  2002-08-03 12:33 ` Gerd Stolpmann
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander V. Voinov @ 2002-08-02  3:33 UTC (permalink / raw)
  To: caml-list

Hi All,

I have an application, which parses a huge XML file and stores resulting
records to a database.

The file is parsed using PXP, but in a 'pulldom' manner, by extracting
(to a Buffer) first level tags manually with pcre, then an array insert
of 30000 recognized and accumulated records is performed. DB access
takes a small fraction of the run time.

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.

It's also interesting to note, than in the case of 3.04 the footprint of
the application starts from 330M and slowly expands to 350M. With 3.05
it starts with 250M and then almost does not expand till the end.

Sparc Solaris 2.7, gcc 3.0.4.

A previous version of this app, written in Python with PyXML, runs 3-4
times slower than the 3.04 version and takes 20M in RAM.

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-08-06 13:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-04 18:06 [Caml-list] ocaml-3.05: a performance experience Damien Doligez
  -- 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

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