Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 24 Dec 2002 13:42:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 24 Dec 2002 13:42:22 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:16402 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 24 Dec 2002 13:42:21 -0500 Date: Tue, 24 Dec 2002 10:51:11 -0800 (PST) From: Linus Torvalds To: Rogier Wolff cc: Stephen Rothwell , Petr Vandrovec , , Ingo Molnar , , , , , , , , Subject: Re: Intel P6 vs P7 system call performance In-Reply-To: <20021224090520.A19829@bitwizard.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 26 On Tue, 24 Dec 2002, Rogier Wolff wrote: > > Ehmm, Linus, > > Why do you want to align the return point? Why are jump-targets aligned? > Because they are faster. But why are they faster? Because the > cache-line fill is more efficient: the CPU might execute those > instructions, while it has a smaller chance of hitting the instructions > before the target. Actually, no. Many CPU's apparently also have issues with instruction decoding etc, where certain alignments (4 or 8-byte aligned) are better simply because they feed the decode logic more efficiently. Everything here fits in one cache-line, so clearly the cacheline issues don't matter. Linus - 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/