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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 99DBD7EC41 for ; Thu, 25 Oct 2012 12:07:03 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of david.mentre@gmail.com) identity=pra; client-ip=209.85.223.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="david.mentre@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of david.mentre@gmail.com designates 209.85.223.182 as permitted sender) identity=mailfrom; client-ip=209.85.223.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="david.mentre@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ie0-f182.google.com) identity=helo; client-ip=209.85.223.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="postmaster@mail-ie0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsBAA0OiVDRVd+2m2dsb2JhbABEwhkIIwEBAQEBCAkLCRQngh8BAQQMBgIsATgBAwwBBQULOx8DEgEFARwGEyKHUAMPC54NYAkDjx6FGCcNiU4BBQySQgONLIhIgReNRRYpgViCOw X-IronPort-AV: E=Sophos;i="4.80,646,1344204000"; d="scan'208";a="160352311" Received: from mail-ie0-f182.google.com ([209.85.223.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Oct 2012 12:07:02 +0200 Received: by mail-ie0-f182.google.com with SMTP id k10so3525133iea.27 for ; Thu, 25 Oct 2012 03:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=NhXWlUxiMiBzrTY80XC/nF1poA70mPquh496kYLLyNY=; b=je/iBtMRRsAk3OfDe8ANg1AQbnrVX77Q8tKAeR+Uc8JOtXKteOqKbLYee5GJXKFqlQ 9Lmk3gIe1vPxqsFh3gVIQgtQFohp7ghVycHrkN8eAwk7MeYP1j4z0DT7m2fSYjqpW/0L Sx+Vc9EpvrZC56onZEoFg3QVwDMmkF7PoIZAK3rPG7ua9WH5QN6Bi7qUxyEX4+wam8vi 5UOOu/mFBD6XzGaQdm9w3rtX8F9JapSo+tQl9j1x48566Se89AWImEfQCFKGvvZ6Bo6i U7+5knYFE+tgkBB+ToC8AHfg8/lf9a7dBIEC6g9qFPf2wvuEwTBH90/QZxorEzV7MwXA pyag== Received: by 10.50.47.234 with SMTP id g10mr5394413ign.16.1351159621156; Thu, 25 Oct 2012 03:07:01 -0700 (PDT) MIME-Version: 1.0 Sender: david.mentre@gmail.com Received: by 10.64.147.97 with HTTP; Thu, 25 Oct 2012 03:06:30 -0700 (PDT) In-Reply-To: <5087C517.6000000@etorok.net> References: <5087C517.6000000@etorok.net> From: David MENTRE Date: Thu, 25 Oct 2012 12:06:30 +0200 X-Google-Sender-Auth: jBdc-kZ-MGQRXEXLxvsW2E9QkNM Message-ID: To: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Behaviour of an OCaml program: any possible GC improvement? Hello Edwin, 2012/10/24 T=F6r=F6k Edwin : > You can try tuning the Gc parameters: > http://caml.inria.fr/pub/docs/old-311/libref/Gc.html > > Try increasing minor_heap_size, and major_heap_increment and see if there= is any improvement. > Also look at Gc.stat() and see how many major collections and live words = you have. Olivier Andrieu made a similar suggestion and that helps! 2012/10/25 Olivier Andrieu: > Try running your program with OCAMLRUNPARAM=3Ds=3D256k ! > (A good value is about the size of the CPU L2 cache I'd say). Thanks Olivier, your suggestion brings significant improvements! On a particular example: * default: 2m14.142s * s=3D256k: 1m32.185s * s=3D1024k: 0m45.420s Thanks! Best regards, d.