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 BAAD37F026 for ; Thu, 10 Mar 2016 08:56:30 +0100 (CET) IronPort-PHdr: 9a23:FbSPrRCIAADvpP49pio8UyQJP3N1i/DPJgcQr6AfoPdwSP7zpMbcNUDSrc9gkEXOFd2CrakU1KyG7Ou5ADNIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niKbipNaKOloArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6zeGGCUS07ngVJBUCR4R3lX5Gyty+/seF03S2yMNHxV7c3HzKv8/E4ZgXvjXIiPjoy92XSwul5kKtfoxvp8xl6ypLdZIKcHPV7d6LZO9gdQDwSDY5qSyVdD9bkPMM0BO0bMLMd9tGlqg== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=mmatalka@gmail.com; spf=Pass smtp.mailfrom=mmatalka@gmail.com; spf=None smtp.helo=postmaster@mail-wm0-f49.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of mmatalka@gmail.com) identity=pra; client-ip=74.125.82.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="mmatalka@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of mmatalka@gmail.com designates 74.125.82.49 as permitted sender) identity=mailfrom; client-ip=74.125.82.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="mmatalka@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wm0-f49.google.com) identity=helo; client-ip=74.125.82.49; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="postmaster@mail-wm0-f49.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BtAQCcJ+FWkjFSfUpehA1tgnWsf4pxgW0jhWwCgTk6EgEBAQEBAQEBEAEBAQEHCwsJIS9BEgGBWYIUAQEBAwEMBhEEGQEUBx0BAwELBgMCCw0CAgUeAwICDwEEDxEBBQELFxMih2wBAwoIBAqQLY9BgTE+MYs2gWqCV4VLChknDVGDdAEBAQEBBQEBAQEBFQEFCgVtgxeCBYRChCQULoJUgToFlzyFZYgOgi+Gb4VgjSYvgQ8nA4IuHoFQaoM0hGWBOgEBAQ X-IPAS-Result: A0BtAQCcJ+FWkjFSfUpehA1tgnWsf4pxgW0jhWwCgTk6EgEBAQEBAQEBEAEBAQEHCwsJIS9BEgGBWYIUAQEBAwEMBhEEGQEUBx0BAwELBgMCCw0CAgUeAwICDwEEDxEBBQELFxMih2wBAwoIBAqQLY9BgTE+MYs2gWqCV4VLChknDVGDdAEBAQEBBQEBAQEBFQEFCgVtgxeCBYRChCQULoJUgToFlzyFZYgOgi+Gb4VgjSYvgQ8nA4IuHoFQaoM0hGWBOgEBAQ X-IronPort-AV: E=Sophos;i="5.24,314,1454972400"; d="scan'208";a="206952423" Received: from mail-wm0-f49.google.com ([74.125.82.49]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 10 Mar 2016 08:56:30 +0100 Received: by mail-wm0-f49.google.com with SMTP id p65so16979831wmp.0 for ; Wed, 09 Mar 2016 23:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=9sWqR4dFBmEH06rXtmL1D5SPibaN20Hgm5FwByI2aEo=; b=kMYCUKDawUYEhq9wTLRkMjP0K4azJh42H2CbGF91g8hXoJtO2Q/cM4rSVRItSf4hAr H6W/mrN9GiNmnYxHaGP5a0D55G/nF2YGz6kYDtUL0mZP5jpNy4oALUKmFNw2brT3S5pj lEuTDi2efY7soOONySpyU6CmQREG+Lxl+Kv/qUpikqfFvDgewC8X37pisc3vk93Qh/7s pjC8rrmcpyYkibMtcK38l7Igq2vLa6q9rWPosH2UHBfs2mBz3cpLQ0sDiG+Rpp2tFcr5 f6fMpkt3jyRqe4Ec1+Jc6C2DQCgY5cFNUNWdlfCnPe20AjrRje9Qyv5Tf7Ws2moLFygN I+0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=9sWqR4dFBmEH06rXtmL1D5SPibaN20Hgm5FwByI2aEo=; b=K5jkL/I2nj7UkYkqBKxnEJepghhTgOJRG/on3BL3ccOGLA3zI8WCzGB3WMRqwnH/LB IzH+UyriM7PhNnQz+3PYSIIHIVtabEYa1YB3gsbuuc7+0ev2f40bwB54Z5Qa0TqcDrgN 2VM9PYqmJdxJFYVKusKOAcoJKvTRJOdSEb0ljvYu0clSvegW+I2iYIbbeKtKU0B/0QeW 9RIujtY4exVwgDwi3b20/MhnE3MKFOycOMdNcSvjUsF/DqticoEc9G1HXbxgk41Q/VAV qkPDHmbCcWfc6QNguFmRl52r3TIp2ZLxcGPnT4XoOY5fErf5RDw/WxJd82/Up6LseHA9 lYFQ== X-Gm-Message-State: AD7BkJIGsgmapYHFo6rLnBv9qPD1HjezoEbkdtGIAU7xv0rNtlda2vF5rCV5R/1Lo5JeCQ== X-Received: by 10.194.60.100 with SMTP id g4mr2078968wjr.30.1457596589866; Wed, 09 Mar 2016 23:56:29 -0800 (PST) Received: from localhost ([37.153.108.22]) by smtp.gmail.com with ESMTPSA id z6sm2209076wme.9.2016.03.09.23.56.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Mar 2016 23:56:28 -0800 (PST) From: Malcolm Matalka To: =?utf-8?B?VMO2csO2aw==?= Edwin Cc: Kasper Janssens , caml-list@inria.fr References: <1CF03778-3645-47D9-A713-4341373801F3@HGST.com> <56E12538.6040003@etorok.net> Date: Thu, 10 Mar 2016 07:55:56 +0000 In-Reply-To: <56E12538.6040003@etorok.net> (=?utf-8?B?IlTDtnLDtms=?= Edwin"'s message of "Thu, 10 Mar 2016 09:41:44 +0200") Message-ID: <86pov2n4vn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Profiling ocaml with lwt T=C3=B6r=C3=B6k Edwin writes: > On 03/09/2016 11:57, Kasper Janssens wrote: >> Den 9 mar 2016 9:54 fm skrev "Kasper Janssens" >: >>=20 >> Hello, >>=20 >>=20 >> I=E2=80=99m trying to profile an ocaml application that has a perfor= mance degradation of about 20 %, with quite some code changes between both >> versions. I tried attaching perf and gprof to it, but to no real avail. = Sure, there are slight differences in the running time of >> functions in the gprof result, but nothing whatsoever that seems to expl= ain that kind of delay. Perf doesn=E2=80=99t seem to indicate a problem >> neither. >>=20 >>=20 >> The thing is, I think it=E2=80=99s a delay in one of the servers tha= t the application communicates with. > > Is that communication done over a TCP/UDP socket? > You could use wireshark and see if you spot anything (e.g. too many SSL h= andshakes -> application would benefit from persistent connections, etc.) > > Depending on the complexity of your application you may try to use a bran= ch of Lwt that reports more tracing information, > although this would likely require manual annotations to produce useful o= utput: > http://roscidus.com/blog/blog/2014/10/27/visualising-an-asynchronous-mona= d/ > > I usually just wrap+log calls and use strace though, as already > mentioned in this thread. And if you're on FreeBSD or OS X or Solaris you can use dtrace. > > Best regards, > --=20 > Edwin T=C3=B6r=C3=B6k | Co-founder and Lead Developer > > Skylable open-source object storage: reliable, fast, secure > http://www.skylable.com