Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262668AbTIQCoV (ORCPT ); Tue, 16 Sep 2003 22:44:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262669AbTIQCoU (ORCPT ); Tue, 16 Sep 2003 22:44:20 -0400 Received: from fw.osdl.org ([65.172.181.6]:51681 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262668AbTIQCoQ (ORCPT ); Tue, 16 Sep 2003 22:44:16 -0400 Date: Tue, 16 Sep 2003 19:44:46 -0700 From: Andrew Morton To: Andi Kleen Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org, richard.brunner@amd.com Subject: Re: [PATCH] Athlon/Opteron Prefetch Fix for 2.6.0test5 + numbers Message-Id: <20030916194446.030d8e70.akpm@osdl.org> In-Reply-To: <20030917022256.GA17624@wotan.suse.de> References: <20030917022256.GA17624@wotan.suse.de> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 34 Andi Kleen wrote: > > > This is much more efficient than the previous workaround used in the kernel, > which checked for AMD CPUs in every prefetch(). This can be seen > in the size of the vmlinux: That is hardly a serious comparison: the workaround is just to stop the oopses while this gets sorted out. It makes no pretense at either efficiency or permanence. > Without patch: > text data bss dec hex filename > 4020232 665956 169092 4855280 4a15f0 vmlinux > With patch: > 4011578 665973 169092 4846643 49f433 hrm. Why did data grow? > With prefetch check: 3.7268 microseconds > Without prefetch check: 3.65945 microseconds We don't know how much of this difference is due to removing the branch and how much is due to reenabling prefetch. It would be interesting to see comparative benchmarking between prefetch and no prefetch at all, see whether this feature is worth its icache footprint. - 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/