Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755182AbYFVOfv (ORCPT ); Sun, 22 Jun 2008 10:35:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752722AbYFVOfo (ORCPT ); Sun, 22 Jun 2008 10:35:44 -0400 Received: from netrider.rowland.org ([192.131.102.5]:3809 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752587AbYFVOfn (ORCPT ); Sun, 22 Jun 2008 10:35:43 -0400 Date: Sun, 22 Jun 2008 10:35:41 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Andi Kleen cc: Kernel development list , AntonioLin , David Vrabel Subject: Re: Scatter-gather list constraints In-Reply-To: <485D8829.2060901@firstfloor.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 35 On Sun, 22 Jun 2008, Andi Kleen wrote: > > >> - Is it performance critical? > > > > For people using wireless USB drives, yes. > > But only if there is a lot of 512 byte block IO? The only case I can think > of right now would be XFS log IO and perhaps some O_DIRECT/raw device > accesses. Sorry, I misunderstood your question. There probably will not be a lot of 512-byte block I/O -- not in the workloads I'm acquainted with. But there will be some. It isn't performance-critical, in the sense that slowing down the odd 512-byte block transfers won't hurt performance much. But it is critical in the sense that the transfers must work properly when they do occur. > If it's only an relative oddball just copying is fine imho. You mean, have the USB stack allocate bounce buffers and copy the data between the S-G buffers (which may be in high memory) and the bounce buffers? We're talking about a potentially fairly large amount of data, say up to 100 KB. Is that really easier than splitting up an I/O request? Alan Stern -- 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/