From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91B9FC04EBF for ; Mon, 23 Sep 2019 12:03:41 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 093FF20820 for ; Mon, 23 Sep 2019 12:03:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=semihalf-com.20150623.gappssmtp.com header.i=@semihalf-com.20150623.gappssmtp.com header.b="2L/LGyyh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 093FF20820 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=semihalf.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C23E11BECE; Mon, 23 Sep 2019 14:03:39 +0200 (CEST) Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id 261691BECD for ; Mon, 23 Sep 2019 14:03:38 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id r134so9847154lff.12 for ; Mon, 23 Sep 2019 05:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wlh/peCbAMLUwi5/8ucZDGaOLPOd7AKGfTvGfPVnJrQ=; b=2L/LGyyhVmzeT6/3oVP1uraP1h3bg5cz1sOQWFZfzq41Z7y/uYSDDsomQUPTYypdhp iLV2Gt70LK0cBg94DBGU6AjC9B0xUCB1xqII9JR4fBUbEf2j4DyOSAU9+rBw8V00fIbr cgpkcIeCvRRYfoIsmmqFxWhxA/UH1txxBoXzi7MTlxL+O4lbublsA4BETaiHrDeoIAY8 3Kg98xWJKFAbX+hVoy4aZlkNvVAgfYs2FC76G9sxzQwf/2CwTQAO2vtr+x8zH+JuzWDu p4wwcWuh8K/20Y+B/E9OzQZehMykuyaq94MZj2m7rkyLUQB4JkrXCz5PgPAoIrIJhm+2 6L9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wlh/peCbAMLUwi5/8ucZDGaOLPOd7AKGfTvGfPVnJrQ=; b=Im81Q5GKTzf+VjB7x7EKfxHTkd9kzWiY3QYj53+IpJARR8X+Ufi5pNhl9Vama5P0iN XlRxgRTm1TVHg9FFRE2nSi3LOnTUhFBHRB7J+tOyB+fhsjzwi2UQMQ/OgSI/oLpQ8B0W o1nYZmaqauh6DUYLxM+MEq2TKbkFXEezfoSwSHHi9jnaJwFSUSc7cn7yHzmUQG94R+m6 F+g8XRYpj623PJ0/3ugsPipI6amogsd0zlVJhydm4lVquHRDoICaLov6xybHJqRZcDR0 J0YNl2J2M5mhdxAcz45roeC5gVDr+o6H9fGVU66H29xrsjnZrMA/lhknteAbNPs2UKJR 9UfQ== X-Gm-Message-State: APjAAAWWNiAU5qlMCfNBcp2R01wdSnSI9D1roevRpVd4CbKYU1RZ+Hip wnp6a+NbcDQpLeNGhMN/Ls7gpQ== X-Google-Smtp-Source: APXvYqxSpYCl74skVZpLt14kka7ReOV4QrVbjM88AqRea0KZBNp55+i4uOgPB5Fk9kyC85y4TBGi8Q== X-Received: by 2002:a19:2207:: with SMTP id i7mr16490916lfi.185.1569240217456; Mon, 23 Sep 2019 05:03:37 -0700 (PDT) Received: from [10.0.0.72] (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id 28sm2158023lfy.47.2019.09.23.05.03.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Sep 2019 05:03:36 -0700 (PDT) To: Thomas Monjalon , Ray Kinsella Cc: Bruce Richardson , dev@dpdk.org, Aaron Conole , Michael Santana , John McNamara , Marko Kovacevic , David Hunt , Vladimir Medvedkin , Robert Sanford , Erik Gabriel Carrillo , mattias.ronnblom@ericsson.com, stephen@networkplumber.org, Andrzej Ostruszka References: <20190917075754.8310-1-amo@semihalf.com> <20190919151624.GA1999@bricha3-MOBL.ger.corp.intel.com> <1873473.QF300kEeir@xps> From: Andrzej Ostruszka Message-ID: Date: Mon, 23 Sep 2019 14:03:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1873473.QF300kEeir@xps> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 01/10] build: add an option to enable LTO build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/23/19 9:23 AM, Thomas Monjalon wrote: [...] > Please can we get some numbers to understand how longer it is? Below numbers are for make based (make -j8) clean build on my system: non-LTO real: 144.56s, user:451.81s, sys:48.46s, CPU:346% LTO real: 607.20s, user:2141.71s, sys:88.36s, CPU:367% So it is similar ~5x increase as Mattias has reported. Have not measured it, but the lion share of that increase is due to linking of 'test' apps. I would vote for leaving LTO as an option - although I must admit I did not get what Ray meant by saying: 20/09/2019 09:38, Ray Kinsella: [...] > I would just like to see it in or out, not another build time option. If "in or out" means "either accept the patches with LTO on and no config option or reject them" then I disagree. Even if run time improvements are questionable I find the additional link time warnings beneficial and would like to have an easy way to turn them on when doing final touches before pushing out. Regards Andrzej