From owner-freebsd-current@FreeBSD.ORG Fri Jan 26 16:55:56 2007 Return-Path: X-Original-To: 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 0B00716A401 for ; Fri, 26 Jan 2007 16:55:56 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id B9E0D13C4A8 for ; Fri, 26 Jan 2007 16:55:55 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 26 Jan 2007 11:27:14 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MVG01775; Fri, 26 Jan 2007 11:27:08 -0500 (EST) Received: from 209-6-203-219.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.219]) by smtp01.lnh.mail.rcn.net with ESMTP; 26 Jan 2007 11:27:02 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17850.11127.944124.276290@jerusalem.litteratus.org> Date: Fri, 26 Jan 2007 11:25:27 -0500 To: current@freebsd.org In-Reply-To: <20070125.192448.-432840241.imp@bsdimp.com> References: <20070125.192448.-432840241.imp@bsdimp.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Status: score=10/50, host=mr02.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090203.45BA2BE0.00A9,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 Cc: Subject: 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 16:55:56 -0000 M. Warner Losh writes: > On a lark, I just got a combo USB/Firewire external disk drive. > I ran some crude benchmarks, and I was surprised by what I found. > This is on a fairly stock -current kernel. > > Firewire does around 40MB/s, while USB 2.0 maxes out at about 12MB/s. As long as we're on the subject: I'm testing a USB-connected external hard drive (PATA-133) as a replacement for SCSI-I/DLT in a dump-driven backup arrangement for a P4/2.25 ghz+80 mbyte/sec SCSI box. Hardware specs as reported by the boot probe are appended. "diskinfo -tc" returns: 512 # sectorsize 100256284672 # mediasize in bytes (93G) 195813056 # mediasize in sectors 12188 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. I/O command overhead: time to read 10MB block 0.590932 sec = 0.029 msec/sector time to read 20480 sectors 16.156980 sec = 0.789 msec/sector calculated command overhead = 0.760 msec/sector Seek times: Full stroke: 250 iter in 5.276618 sec = 21.106 msec Half stroke: 250 iter in 4.144696 sec = 16.579 msec Quarter stroke: 500 iter in 6.929293 sec = 13.859 msec Short forward: 400 iter in 2.341049 sec = 5.853 msec Short backward: 400 iter in 3.632142 sec = 9.080 msec Seq outer: 2048 iter in 1.645352 sec = 0.803 msec Seq inner: 2048 iter in 1.598203 sec = 0.780 msec Transfer rates: outside: 102400 kbytes in 5.938111 sec = 17245 kbytes/sec middle: 102400 kbytes in 6.076508 sec = 16852 kbytes/sec inside: 102400 kbytes in 5.807954 sec = 17631 kbytes/sec Performance, so far, has been better than the old set-up but far less than thrilling and I'd like to understand why. Dump, using these options: $DUMP_LEVEL -D $DUMPDATES_FILE -Lau -f gets me 2 +/- 0.2 mbytes/sec. Is this a reasonable value? (I.e. is dump the limiting factor?) Do I need to reconfigure something, or is my hardware just lame? I'm not expecting to get the full 40 mbyte/sec of USB 2.0 spec; 20 or even 10 would be fine. But 2? Ouch. Respectfully, Robert Huff jerusalem kernel: ehci0: mem 0xf0000000-0xf0000 0ff irq 15 at device 10.3 on pci0 jerusalem kernel: ehci0: [GIANT-LOCKED] jerusalem kernel: usb3: on ehci0 huff@jerusalem>> jerusalem kernel: usb3: EHCI version 1.0 jerusalem kernel: usb3: companion controller, 2 ports each: usb2 jerusalem kernel: usb3: on ehci0 jerusalem kernel: usb3: USB revision 2.0 jerusalem kernel: uhub3: on usb3 jerusalem kernel: uhub3: 6 ports with 6 removable, self powered jerusalem kernel: umass0: on uhub3 jerusalem kernel: (probe15:umass-sim0:0:0:0): Uninitialized Transport 5:0? jerusalem kernel: da2 at umass-sim0 bus 0 target 0 lun 0 jerusalem kernel: da2: Fixed Direct Acces s SCSI-0 device jerusalem kernel: da2: 40.000MB/s transfers jerusalem kernel: da2: 95611MB (195813072 512 byte sectors: 255H 63S/T 12188C)