From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 439CEA0613 for ; Mon, 23 Sep 2019 15:02:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E6F651BEE2; Mon, 23 Sep 2019 15:02:29 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 864D51BEA4 for ; Mon, 23 Sep 2019 15:02:28 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id c195so9995549lfg.9 for ; Mon, 23 Sep 2019 06:02:28 -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=0OE+Q47tw6tJ443gsBw6+IFnusSel78Ws4ZuTCBJmO0=; b=o/pZa/lEv2+yI+Rvm0fGbahvjBMZ+x22Ye7HXsnZ829j3SFMlgOFSxfqvP+tvk9ZRt fdSvxInMxIHKo9hPsWQrBuZob/cx7GcO564qPqxUiUrbix8KMYMFSRqVStmxw2gAruA6 FXcCseAMLDJ0YAypF6uvbr+CSWPT8mVZiFuRtwikNPdbiPdH0fVP2qXzK3ygSsnWB7yB jGNmWMkz1ri93T5unaovOra9VptWLAImHyCB7m3pNpJopVxSnonCWNabf05JhKbpY6hH Mim6F7Cs+IszVTrDhdzNcAXYS3K57JEpNcY8n50cpQLK9UR108J0xRVOpqDIHaOxuh8j s7MA== 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=0OE+Q47tw6tJ443gsBw6+IFnusSel78Ws4ZuTCBJmO0=; b=VWT3rVh2DcHHRGht46XVqFZZ1RuCrmTZubDmnkVZjVHYnfDUo8zPTt8LFirl5qtBbt GD/1iesv0Yo90mXH3anZzVdhBDIuYfL5iOC8cHsKw+j5G5JuJY1jL3ltraU8IJjfpasG GUCnbs7PMSOOLsW5nuKrpuwbGOtx+mZLIQOc1wE+4fWkwwLZfHmu6pumuqiYkdV/L4Kh u0ClfSoerTSHCn4saTLPct5+HNDfdZ5AmZPhZP70xK3R7IfidRRcEHDcRsLsektQWkI5 LV7R5ykRBxvcizLN5fODpPHK2T4PyoTAcLwpfxK6gy/zzKF3Qtow01u/N5Y13qH9cADn ypiw== X-Gm-Message-State: APjAAAWyGVXJXskXDBu50jlNA3uGdFyAE08Sp4Y+r7NklXsc01XFXeer tYQxmEtpo9PamzZ93564ZVaGtQ== X-Google-Smtp-Source: APXvYqw0dAQgsZIvJFvP88Gb8U5v1GwOx9cNMNXycZpE9lqMRnVB5pl6tmf5fEUUdpOUxL2wRli9EQ== X-Received: by 2002:a19:f711:: with SMTP id z17mr16272374lfe.58.1569243747590; Mon, 23 Sep 2019 06:02:27 -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 c4sm2183068lfm.4.2019.09.23.06.02.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Sep 2019 06:02:26 -0700 (PDT) To: Bruce Richardson Cc: Thomas Monjalon , Ray Kinsella , 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> <20190923120658.GA2003@bricha3-MOBL.ger.corp.intel.com> From: Andrzej Ostruszka Message-ID: Date: Mon, 23 Sep 2019 15:02:25 +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: <20190923120658.GA2003@bricha3-MOBL.ger.corp.intel.com> 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 2:06 PM, Bruce Richardson wrote: > On Mon, Sep 23, 2019 at 02:03:35PM +0200, Andrzej Ostruszka wrote: [...] >> 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. >> > > Interesting. Do we want to explicitly not use lto for the test app? It is the linking of these apps where LTO really kicks in. During compilation of objects compiler just additionally generates internal representation (in extra sections of ELF object). Linking these objects into library does not do much - so the actual optimization is done when producing final executable. It might be so that when using dedicated user app the penalty would be much smaller since the amount of code used would be much smaller - but FWIW all the warnings that I was fixing were produced by the linking of app/test* binaries. Regards Andrzej