Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932110AbbBZLrK (ORCPT ); Thu, 26 Feb 2015 06:47:10 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:39593 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753475AbbBZLrI (ORCPT ); Thu, 26 Feb 2015 06:47:08 -0500 Date: Thu, 26 Feb 2015 12:47:03 +0100 From: Ingo Molnar To: Steven Rostedt Cc: Denys Vlasenko , "H. Peter Anvin" , Andy Lutomirski , Denys Vlasenko , Linus Torvalds , Borislav Petkov , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns Message-ID: <20150226114703.GA4660@gmail.com> References: <1424803895-4420-1-git-send-email-dvlasenk@redhat.com> <54ED00B5.3020203@zytor.com> <20150225092043.GB16165@gmail.com> <20150225094312.2cfff453@gandalf.local.home> <20150225110129.5d099cd8@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150225110129.5d099cd8@gandalf.local.home> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1096 Lines: 32 * Steven Rostedt wrote: > > That would require a branch insn. The whole idea of > > masking was merely to avoid that branch. If you need a > > branch, then you can as well just retain current code. > > I'm just curious, do all these micro optimizations have > any real impact on real use cases? The bona fide removal of a real instruction from a true hot path is generally always worth doing, you don't even have to 'prove' that it improves things: unless the claim is that for some really robust reason the instruction was zero cost to begin with. So the main question here is not whether it's worth doing it, the question is the cost of the removal: - the change in syscall number overflow handling behavior. (We might not want the new behavior) - the increase in the syscall table size. Thanks, Ingo -- 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/