Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753112AbbDCSgT (ORCPT ); Fri, 3 Apr 2015 14:36:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:50807 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbbDCSgP (ORCPT ); Fri, 3 Apr 2015 14:36:15 -0400 Message-ID: <551EDD7E.3050505@zytor.com> Date: Fri, 03 Apr 2015 11:35:42 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Linus Torvalds , Denys Vlasenko CC: Ingo Molnar , Steven Rostedt , Borislav Petkov , Andy Lutomirski , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86/asm/entry/64: pack interrupt dispatch table tighter References: <1428059634-11782-1-git-send-email-dvlasenk@redhat.com> <20150403140336.GA16422@gmail.com> <551EC5CD.3050901@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1195 Lines: 34 On 04/03/2015 11:08 AM, Linus Torvalds wrote: > On Fri, Apr 3, 2015 at 9:54 AM, Denys Vlasenko wrote: >> >> How about this version? >> It's still isn't a star of readability, >> but the structure of the 32-byte code block is more visible now... > > Do we really even want to be this clever in the first place? > > The thing is, when we take an interrupt: > > (a) the L1 I$ is always cold > > (b) the instruction decoder has never had time to run ahead > > (c) there are usually not that many different interrupts anyway, even > under load (ie you'd have maybe disk and networking) > > (d) we intentionally spread out the different interrupt vector numbers > > (e) the 32-byte block thing is questionable, most older > micro-architectures fetch in 16-byte blocks iirc. > For the record, I actually measured the impact of the jump-to-jump when I wrote it. It has a small, *but measurable*, positive impact. -hpa -- 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/