Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751223AbbDLGUV (ORCPT ); Sun, 12 Apr 2015 02:20:21 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:43493 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbbDLGUS (ORCPT ); Sun, 12 Apr 2015 02:20:18 -0400 Date: Sun, 12 Apr 2015 08:20:15 +0200 From: Markus Trippelsdorf To: Ingo Molnar Cc: Linus Torvalds , Thomas Gleixner , Jakub Jelinek , Denys Vlasenko , Borislav Petkov , Tim Chen , Andy Lutomirski , Jason Low , Brian Gerst , Aswin Chandramouleeswaran , "Paul E. McKenney" , Davidlohr Bueso , Peter Zijlstra , "H. Peter Anvin" , LKML , Peter Zijlstra Subject: Re: [PATCH] x86: Turn off GCC branch probability heuristics Message-ID: <20150412062015.GA8458@x4> References: <20150410091252.GA27630@gmail.com> <20150410092152.GA21332@gmail.com> <20150410111427.GA30477@gmail.com> <20150410112748.GB30477@gmail.com> <20150410120846.GA17101@gmail.com> <20150411092021.GA9478@gmail.com> <20150412054747.GA9062@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150412054747.GA9062@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1454 Lines: 36 On 2015.04.12 at 07:47 +0200, Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > On Sat, Apr 11, 2015 at 11:57 AM, Thomas Gleixner wrote: > > > > > > I thinks its just the no-guess one: > > > > > > text data dec patch reduction > > > 7563475 1781048 10302987 > > > 7192973 1780024 9931461 no-guess -4.8% > > > 7354819 1781048 958464 align-1 -2.7% > > > 7192973 1780024 9931461 no-guess + align-1 -4.8% > > > > Yeah, a 5% code expansion is a big deal. Sadly, it looks like > > 'no-guess' also disables our explicit likely/unlikely handling. > > So I spent some time trying to get as much code size reduction as > possible via GCC optimization options, and the total savings possible > are 10.1%: > > text data bss dec filename > 12566391 1617840 1089536 15273767 vmlinux.vanilla > 11416805 1617840 1089536 14124181 vmlinux.combo > 10532552 1596080 1089536 13218168 vmlinux.Os If you like to play with more knobs you could explore the various --param options that are listed in the gcc man page... -- Markus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/