From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <5CDA842C020000F900065867@prv1-mh.provo.novell.com> Date: Tue, 14 May 2019 03:02:36 -0600 From: "Gang He" References: <5CD4E950020000F900064DCE@prv1-mh.provo.novell.com> <5CDA5F6E020000F9000657F6@prv1-mh.provo.novell.com> <59ef89f8-9642-4455-cef0-450816eace0d@redhat.com> In-Reply-To: <59ef89f8-9642-4455-cef0-450816eace0d@redhat.com> Mime-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: Re: [linux-lvm] Does LVM2 support building with LTO enablement? Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-lvm@redhat.com, zkabelac@redhat.com Hi Zdenek, The main motivation is to build the most opensuse rpms with LTO enablement, LVM2 is in the list. I will try to compile the package with LTO enablement too. Of course, if LVM2 does not support building with LTO enablement thoroughly, I think we need not to try. Thanks Gang >>> On 2019/5/14 at 16:00, in message <59ef89f8-9642-4455-cef0-450816eace0d@redhat.com>, Zdenek Kabelac wrote: > Dne 14. 05. 19 v 8:25 Gang He napsal(a): >> Hello Guys, >> >> Anybody touched this area? >> >> Thanks >> Gang > > > Hi > > I'll take a look - although it looks like the problem is possibly with libaio > ? > > Is libaio usable with -flto ? > > ATM libaio is mandatory for building lvm2. > > BTW - why do you need to use this option - lvm2 isn't really CPU cycle bounded > > - if there is something slow it's typically some design issue - -flto will > not > really improve things here... > > Zdenek