Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Jan 2002 05:19:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Jan 2002 05:19:37 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:2579 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Tue, 1 Jan 2002 05:19:21 -0500 Subject: Re: [patch] Prefetching file_read_actor() To: davej@suse.de (Dave Jones) Date: Tue, 1 Jan 2002 10:29:20 +0000 (GMT) Cc: akpm@zip.com.au (Andrew Morton), manfred@colorfullife.com (Manfred Spraul), linux-kernel@vger.kernel.org (Linux Kernel) In-Reply-To: from "Dave Jones" at Dec 31, 2001 08:47:43 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > My initial guess is that some of the callers of copy_to_user are > doing something that is harmed the prefetching. > (Maybe they are doing additional prefetch() calls) Most callers are dealing with cached data, and unless you checked the length in advance to make a sensible decision it will just make things ugly. If you aren't copying 512 bytes+ its probably not worth it. - 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/