From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 209E282355 for ; Mon, 11 Dec 2017 22:05:04 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.45,392,1508796000"; d="scan'208";a="304995136" Received: from dmz01.dagstuhl.de (HELO hadrien.local) ([192.76.146.22]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2017 22:05:03 +0100 Date: Mon, 11 Dec 2017 22:05:03 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Gabriel Scherer cc: Yawar Amin , caml users In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-944493392-1513026304=:4077" Subject: Re: [Caml-list] gc overhead --8323329-944493392-1513026304=:4077 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Mon, 11 Dec 2017, Gabriel Scherer wrote: > There is an instrumentation mode for the OCaml GC whose usage I have described in a blog post and on the caml-list: > >   http://prl.ccs.neu.edu/blog/2016/05/24/measuring-gc-latencies-in-haskell-ocaml-racket/ >   https://sympa.inria.fr/sympa/arc/caml-list/2016-05/msg00219.html > > (I am realizing that the simple change I proposed, of building the instrumented runtime by default, was forgotten, and will submit a pull request shortly -- hopefully it will be present in 4.07... In the meantime, people have to > build the compiler with the -with-instrumented-runtime flag explicitly set.) Thanks for the pointer. julia > > On Mon, Dec 11, 2017 at 7:53 PM, Julia Lawall wrote: > > > On Tue, 28 Nov 2017, Yawar Amin wrote: > > > Hi Juli, you can take a lookat https://realworldocaml.org/v1/en/html/understanding-the-garbage-collecto > > r.html for some explanations of the various knobs. Specifically, the in-text > > note sections (marked with the icon of two pages) give some helpful hints. > > The first one on the page is 'Setting the Size of the Minor Heap'. > > Is it possible to know when a major GC starts, to be able to measure the > time spent?  I saw the verbose flag in the control structure, but that > just prints a message.  I don't see how to get the time. > > thanks, > julia > > > Regards, > > > > Yawar > > > > On Tue, Nov 28, 2017 at 1:11 PM, Julia Lawall wrote: > >       Hello, > > > >       Is there any reasonable way to reduce the amount of garbage > >       collection > >       activity in an OCaml program?  I see various knobs in the > >       control > >       structure, but I don't know what the impact of changing the > >       values would > >       be. > > > >       thanks, > >       juli > > > >       -- > >       Caml-list mailing list.  Subscription management and archives: > >       https://sympa.inria.fr/sympa/arc/caml-list > >       Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > >       Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > > > > > > > -- > Caml-list mailing list.  Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > --8323329-944493392-1513026304=:4077--