Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964830AbWA3RZg (ORCPT ); Mon, 30 Jan 2006 12:25:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964831AbWA3RZg (ORCPT ); Mon, 30 Jan 2006 12:25:36 -0500 Received: from bay108-dav12.bay108.hotmail.com ([65.54.162.84]:21235 "EHLO hotmail.com") by vger.kernel.org with ESMTP id S964830AbWA3RZf (ORCPT ); Mon, 30 Jan 2006 12:25:35 -0500 Message-ID: X-Originating-IP: [143.182.124.2] X-Originating-Email: [multisyncfe991@hotmail.com] From: "John Smith" To: Cc: References: <20060124225919.GC12566@suse.de> <20060124232142.GB6174@inferi.kami.home> <20060125090240.GA12651@suse.de> <20060125121125.GH5465@suse.de> <4807377b0601251137r7621216byc47b03a3c634557c@mail.gmail.com> <4807377b0601251628k4227dad0ld731f2c25c211b91@mail.gmail.com> <4807377b0601271404w6dbfcff6s4de1c3f785dded9f@mail.gmail.com> Subject: Can I do a regular read to simulate prefetch instruction? Date: Mon, 30 Jan 2006 10:25:34 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 30 Jan 2006 17:25:35.0228 (UTC) FILETIME=[2E001BC0:01C625C2] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 29 Hi, I find out some network card drivers (e.g. e1000 driver) use prefetch instruction to reduce memory access latency and speed up data operation. My question is: Support we want to pre-read a skb buffer into the cache, what is the difference between the following two methods, i.e. what is the different when using prefetch and using a regular read opertation? 1. use prefetch instruction to stimulate a pre-fetch of the skb address, e.g. prefetch(skb); 2. use an assignment statement to stimulate a pre-fetch of the skb address, e.g. skb1 = skb; I was told the data will be prefetched into a so-called prefetching queue only by using prefetching instruction? Is this true? Thanks, John - 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/