From owner-freebsd-current@FreeBSD.ORG Fri Jan 26 17:03:53 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F05E216A402; Fri, 26 Jan 2007 17:03:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1A47213C46B; Fri, 26 Jan 2007 17:03:52 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 225833407; Fri, 26 Jan 2007 18:03:50 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 26 Jan 2007 18:03:27 +0100 User-Agent: KMail/1.9.5 References: <45B9895B.9020709@freebsd.org> <45B99A59.6070902@freebsd.org> <20070126.092842.1973603551.imp@bsdimp.com> In-Reply-To: <20070126.092842.1973603551.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261803.28024.hselasky@c2i.net> Cc: cperciva@freebsd.org, "M. Warner Losh" , current@freebsd.org Subject: Re: Interesting speed benchmarks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 17:03:54 -0000 On Friday 26 January 2007 17:28, M. Warner Losh wrote: > In message: <45B99A59.6070902@freebsd.org> > > Colin Percival writes: > : M. Warner Losh wrote: > : > In message: <45B9895B.9020709@freebsd.org> > : > > : > Colin Percival writes: > : > : M. Warner Losh wrote: > : > : > Firewire does around 40MB/s, while USB 2.0 maxes out at about > : > : > 12MB/s. > : > : > : > : I get 25MB/s from my Vantec Nexstar3 > : > : USB 2.0 enclosure: > : > : > : > : http://www.daemonology.net/blog/2006-01-28-vantex-nexstar3.html > : > > : > Still, 25MB/s is no 40MB/s... > : > : Sure, but it means that the performance issues aren't simply a global > : "USB 2.0 is bad". What does `diskinfo -c` say about your firewire and > : USB interfaces? > > > I haven't tested the Hans Petter Selasky usb stack to see if it is any > better. It appears there's no scatter gather there, so that might > make the numbers even worse. But if the command queueing is better, > then it might make up for it. Yes, it has scatter and gather since August last year :-) But all USB drivers currently use copy-in/copy-out to/from the DMA buffer. With regard to "umass" there is one copy-out/copy-in per transfer. Currently all transfers are done in bulks of 131072 bytes, so there is not too much overhead. I am considering direct buffer loading. --HPS