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 773A57EC41 for ; Wed, 24 Oct 2012 17:09:45 +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.216.47; 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.216.47 as permitted sender) identity=mailfrom; client-ip=209.85.216.47; 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-qa0-f47.google.com) identity=helo; client-ip=209.85.216.47; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="postmaster@mail-qa0-f47.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYCAMEDiFDRVdgvk2dsb2JhbABEwWgIIwEBAQEJCQsJFAQjgh8BAQQSAiwBOAEDDAEFBQs7HwMSAQUBHAYTIodQAw+cA2AJA48ehSMnDYlOAQUMkkIDjSuISI5YFimBWII7 X-IronPort-AV: E=Sophos;i="4.80,640,1344204000"; d="scan'208";a="160261275" Received: from mail-qa0-f47.google.com ([209.85.216.47]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Oct 2012 17:09:44 +0200 Received: by mail-qa0-f47.google.com with SMTP id i29so3479156qaf.6 for ; Wed, 24 Oct 2012 08:09:43 -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; bh=UNhLn2aN3CSb4CxwFgTgAgek64ZV4dXyu1niMsg6mAA=; b=Yo9uuXMgOVIBpF5GWyDMBbK9sO8Ywk0SSH6h5aBR3YAFBqa6Tx6pwvtPZ9pXSZ1iU6 sNjJ08YxPoYVEfXXdEQDHsUHZG11BTS11u9f0ylWx4koAbRjB3WXLyrQbK5b1hrobITw okPSsBTSR0TYRX4yM8QgVX9VAstLjIIZ8fopYwPLPc6WLQmaqJ3OZiqRvWYMWPDnX5Ns oOeQqxYb8AkXYvCOudtjLa+E1FWxKMq5nweruL79J4zjVMh2shapYeLHuy1F/XzeO6Dn 2hcaK9qG2mkQ0IfBZAT6qfzLGMxpy2lrDEl/9pjIfiXVXKMf5jA8AwIhuEggDNxKXjR4 BuZg== Received: by 10.49.132.40 with SMTP id or8mr121009qeb.27.1351091383158; Wed, 24 Oct 2012 08:09:43 -0700 (PDT) MIME-Version: 1.0 Sender: david.mentre@gmail.com Received: by 10.49.120.225 with HTTP; Wed, 24 Oct 2012 08:09:12 -0700 (PDT) In-Reply-To: References: <5087C409.3030203@coherentgraphics.co.uk> <5087E16C.8020503@coherentgraphics.co.uk> <46CAD019-77F8-4134-9A96-94A593AB7BC0@first.in-berlin.de> From: David MENTRE Date: Wed, 24 Oct 2012 17:09:12 +0200 X-Google-Sender-Auth: ELleYUCt4jQ6SdY9aj5mxH4uWw0 Message-ID: To: Oliver Bandel Cc: caml users Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Behaviour of an OCaml program: any possible GC improvement? Hello, 2012/10/24 David MENTRE : > But, after recompiling everything from scratch and redoing my tests > (taking care of erasing old gmon.out file), I have the same result > (with calling caml_call_gc). :-( For the sake of completeness, I installed latest OCaml 4.00.1 (for the recall, Linux x86_64 platform), recompiled everything from scratch and re-did my tests. I obtain roughly the same results and the same calling caml_call_gc. :-( There should be something obvious that I missed. """ Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls s/call s/call name 32.54 155.97 155.97 35791 0.00 0.01 mark_slice 19.87 251.24 95.26 58230 0.00 0.00 sweep_slice 12.35 310.42 59.18 88113 0.00 0.00 camlMap__map_1150 6.66 342.34 31.92 94021 0.00 0.00 caml_oldify_mopup 6.57 373.81 31.47 1986040761 0.00 0.00 caml_page_table_lookup 4.66 396.17 22.36 3792214394 0.00 0.00 caml_fl_allocate 4.33 416.94 20.77 3799622226 0.00 0.00 caml_oldify_one 3.39 433.18 16.24 3873315118 0.00 0.00 caml_fl_merge_block 2.51 445.20 12.03 3792214239 0.00 0.00 caml_alloc_shr 1.38 451.83 6.63 3882908903 0.00 0.00 camlData_typing__apply_1255 1.26 457.88 6.05 3792214239 0.00 0.00 allocate_block 1.20 463.62 5.74 1 5.74 5.74 caml_realloc_ref_table 0.49 465.99 2.37 188042 0.00 0.00 clear_table 0.44 468.09 2.10 3881730105 0.00 0.00 camlData_typing__fun_1445 0.42 470.08 1.99 caml_fl_reset 0.31 471.57 1.50 caml_set_allocation_policy 0.28 472.90 1.33 896098 0.00 0.00 caml_gc_message 0.24 474.06 1.16 74 0.02 0.02 camlMap__iter_1144 0.22 475.12 1.06 155 0.01 0.01 caml_add_to_heap 0.11 475.64 0.53 camlData_typing__fun_1430 0.07 475.98 0.34 camlData_typing__print_vset_1115 0.06 476.29 0.31 94021 0.00 0.00 caml_oldify_local_roots 0.04 476.46 0.17 10355866 0.00 0.00 camlFormat__doprn_1525 0.03 476.61 0.15 95566109 0.00 0.00 caml_modify 0.03 476.74 0.13 5946696 0.00 0.00 camlFormat__kpr_1514 0.03 476.86 0.12 10179867 0.00 0.00 camlFormat__advance_loop_1173 0.02 476.97 0.11 16452591 0.00 0.00 camlFormat__format_pp_token_1134 0.02 477.05 0.08 15459066 0.00 0.00 caml_putblock 0.02 477.13 0.08 16452612 0.00 0.00 camlFormat__add_queue_1087 [...] granularity: each sample hit covers 2 byte(s) for 0.00% of 479.32 seconds index % time self children called name 0.00 0.11 25/94021 caml_alloc_small [75] 0.00 0.56 133/94021 caml_alloc_string [51] 0.02 394.48 93863/94021 caml_garbage_collection [3] [1] 82.4 0.02 395.15 94021 caml_minor_collection [1] 0.02 297.93 94021/94021 caml_major_collection_slice [4] 0.01 97.19 188042/188042 caml_empty_minor_heap [7] 0.00 0.00 94021/94021 caml_final_do_calls [353] ----------------------------------------------- [2] 82.3 0.04 394.50 caml_call_gc [2] 0.00 394.50 93863/93863 caml_garbage_collection [3] ----------------------------------------------- 0.00 394.50 93863/93863 caml_call_gc [2] [3] 82.3 0.00 394.50 93863 caml_garbage_collection [3] 0.02 394.48 93863/94021 caml_minor_collection [1] 0.00 0.00 93863/97401 caml_process_pending_signals [352] ----------------------------------------------- 0.02 297.93 94021/94021 caml_minor_collection [1] [4] 62.2 0.02 297.93 94021 caml_major_collection_slice [4] 155.97 29.41 35791/35791 mark_slice [5] 95.26 16.33 58230/58230 sweep_slice [6] 0.84 0.00 564126/896098 caml_gc_message [43] 0.00 0.10 4652/4652 start_cycle [76] 0.00 0.01 4651/4651 caml_compact_heap_maybe [135] ----------------------------------------------- 155.97 29.41 35791/35791 caml_major_collection_slice [4] [5] 38.7 155.97 29.41 35791 mark_slice [5] 29.31 0.00 1849494323/1986040761 caml_page_table_lookup [16] 0.11 0.00 71582/896098 caml_gc_message [43] 0.00 0.00 1/1 realloc_gray_vals [269] 0.00 0.00 4652/4652 caml_final_update [377] 0.00 0.00 4652/4653 caml_fl_init_merge [375] ----------------------------------------------- 95.26 16.33 58230/58230 caml_major_collection_slice [4] [6] 23.3 95.26 16.33 58230 sweep_slice [6] 16.24 0.00 3873315117/3873315118 caml_fl_merge_block [18] 0.09 0.00 58230/896098 caml_gc_message [43] 0.00 0.00 1/1 caml_finalize_channel [477] ----------------------------------------------- 0.01 97.19 188042/188042 caml_minor_collection [1] [7] 20.3 0.01 97.19 188042 caml_empty_minor_heap [7] 31.92 62.08 94021/94021 caml_oldify_mopup [8] 2.37 0.00 188042/188042 clear_table [29] 0.31 0.07 94021/94021 caml_oldify_local_roots [58] 0.28 0.00 188042/896098 caml_gc_message [43] 0.05 0.10 9383144/3799622226 caml_oldify_one [14] 0.00 0.00 188042/188042 caml_final_empty_young [344] ----------------------------------------------- 31.92 62.08 94021/94021 caml_empty_minor_heap [7] [8] 19.6 31.92 62.08 94021 caml_oldify_mopup [8] 20.71 41.37 3787931806/3799622226 caml_oldify_one [14] ----------------------------------------------- [...] """ Best regards, david