From owner-freebsd-current@FreeBSD.ORG Mon Jan 29 00:27:40 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 912FF16A402 for ; Mon, 29 Jan 2007 00:27:40 +0000 (UTC) (envelope-from sten.daniel.sorsdal@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id 513FA13C49D for ; Mon, 29 Jan 2007 00:27:40 +0000 (UTC) (envelope-from sten.daniel.sorsdal@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so808353wri for ; Sun, 28 Jan 2007 16:27:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=ps/iRtz7UNR1chtaQby0NvliaQdiy94/k+pSkRZE4YjbEJo5q5KsTEY3Q5EQq1zurN3uDLmfjwTa5hEsMYEwIYhy7AeKF0FUoA+sRzJUjvIvbZh2GdhQMj6HyzKbW02oJ6avj9l9/layVcbhZn72PttcNgq11REmqClfWFBHLsI= Received: by 10.90.52.18 with SMTP id z18mr5934417agz.1170028926854; Sun, 28 Jan 2007 16:02:06 -0800 (PST) Received: from ?192.168.11.5? ( [72.189.174.133]) by mx.google.com with ESMTP id 7sm7120678agd.2007.01.28.16.02.05; Sun, 28 Jan 2007 16:02:06 -0800 (PST) Message-ID: <45BD3979.908@gmail.com> Date: Sun, 28 Jan 2007 19:02:01 -0500 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Hans Petter Selasky References: <20070125.192448.-432840241.imp@bsdimp.com> <200701261341.03742.shoesoft@gmx.net> <200701261536.48893.hselasky@c2i.net> In-Reply-To: <200701261536.48893.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Sten_Daniel_S=F8rsdal?= X-Mailman-Approved-At: Mon, 29 Jan 2007 01:29:06 +0000 Cc: freebsd-current@freebsd.org, Alexey Karagodov , Stefan Ehmann 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: Mon, 29 Jan 2007 00:27:40 -0000 Hans Petter Selasky wrote: > On Friday 26 January 2007 13:41, Stefan Ehmann wrote: >> On Friday 26 January 2007 13:35, Andrew Pantyukhin wrote: >>> On 1/26/07, Stefan Ehmann wrote: >>>> On Friday 26 January 2007 11:00, Alexey Karagodov wrote: >>>>> what manufacturer says about usb speeds? >>>>> that is the question >>>> Well, "up to 56MB/s" which is pretty much full USB2 speed. >=20 > It is called high speed USB, and it can go up 53 MB/s with a payload of= 512=20 > bytes per packet according to "Table 5-10. High-speed Bulk Transaction = > Limits" in the USB 2.0 specification. The table does not say anything a= bout=20 > whether this include bit-stuffing or not. If bit stuffing is not includ= ed,=20 > then you have to divide this value by 1.20 approximately for the worst = case,=20 > all 1's. 53 MB/s div 1.20 =3D 44 MB/s. >=20 >>>> But writing it on the box doesn't mean the speed can actually be >>>> reached. >>>> >>>> Benchmarking on windows might be interesting, but I don't know how t= o >>>> measure raw disk io on windows. >>> Format the disk, copy a large file to/from it, divide >>> its size by time spent, add the word "approximately" :-) >> I'd rather not format a drive with my backups and other stuff on it :-= ) >=20 > Results with the new USB stack*: >=20 > Changing the interrupt delay from 2 microframes to 1 microframe gave me= =20 > 2MBytes more per second on the EHCI controller. >=20 > I connected two high speed "umass" capable devices to the same EHCI con= troller=20 > on my computer, and did a "dd" on both devices at the same time, with a= block=20 > size of 131072 bytes. >=20 > The one device transferred 22 MB/s. The other device transferred 16 MB/= s.=20 > Summed up this yields 38 MB/s. Used alone these devices can transfer 27= MB/s=20 > and 20 MB/s. It seems clear that the EHCI controller is saturated at 38= MB/s.=20 >=20 > %dmesg |grep ehci > ehci0: mem 0xe0100000-0xe= 01003ff=20 > irq 10 at device 29.7 on pci0 > usb3: on ehci0 > % >=20 Just FYI. I get about the same performance on my laptop running Windows XP when moving between local 100 mb 5400 rpm ATA and 250 mb 7200 rpm USB2.0 disk.= I have the same controller. --=20 Sten Daniel S=F8rsdal