From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 04:09:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B812F16A401 for ; Wed, 14 Mar 2007 04:09:31 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from omta05sl.mx.bigpond.com (omta05sl.mx.bigpond.com [144.140.93.195]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2EE13C44B for ; Wed, 14 Mar 2007 04:09:31 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from oaamta07sl.mx.bigpond.com ([144.132.228.157]) by omta05sl.mx.bigpond.com with ESMTP id <20070314040929.EGQE25724.omta05sl.mx.bigpond.com@oaamta07sl.mx.bigpond.com> for ; Wed, 14 Mar 2007 04:09:29 +0000 Received: from areilly.bpa.nu ([144.132.228.157]) by oaamta07sl.mx.bigpond.com with ESMTP id <20070314040929.IAXH21236.oaamta07sl.mx.bigpond.com@areilly.bpa.nu> for ; Wed, 14 Mar 2007 04:09:29 +0000 Received: (qmail 48338 invoked from network); 14 Mar 2007 04:09:28 -0000 Received: from localhost (HELO duncan.reilly.home) (127.0.0.1) by localhost with SMTP; 14 Mar 2007 04:09:28 -0000 Date: Wed, 14 Mar 2007 15:09:28 +1100 From: Andrew Reilly To: freebsd-questions@freebsd.org Message-ID: <20070314150928.2004950b@duncan.reilly.home> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.9; amd64-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Expected speed of firewire-attached drive? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 04:09:31 -0000 Hi there, I don't do a whole lot of benchmarking: mostly my computer's speed is "perfectly adequate", and working reliably is key. At the moment, though, I'm curious. I'm sitting here while I attempt to restore a file from a level-0 dump, and it's taking a while. The backup medium is one of those firewire-attached Maxtor 300G drives, but to make it interesting I compress the backup image with bzip2 (which keeps the file size down to about 16G). Dmesg.boot says that the drive is capable of 50MB/s, the firewire driver says nothing obvious about speed, except "invalid speed 7 (fixed to 3)." (details below). The motherboard is a relatively shiny Athlon X2-4400 NVidia-4 based system, so there ought to be oodles of compute grunt for this exercise, surely? Anyway, systat -vmstat says that da0 is doing about 40 128KB transfers per second, or about 5MB/s (actually a bit under), or 12% busy. One of the CPUs is pegged. Hmm, it's pegged running bzcat. That would be the bottleneck, then. OK, so I've answered my own question. Please consider this post informative or noise at your discretion: I'm going to post it anyway on the grounds that it might provoke some interesting discussion, and perhaps a suggestion for a less cpu-hungry compression algorithm (I guess I could try gzip for the next backup...) Cheers, from dmesg.boot: fwohci0: mem 0xf0004000-0xf00047ff,0xf0000000-0xf00 03fff irq 18 at device 10.0 on pci1 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:14:85:56:00:e6:80:b0 fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:14:85:e6:80:b0 fwe0: Ethernet address: 02:14:85:e6:80:b0 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc1, gen=1, CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) fwohci0: phy int ... da0 at sbp0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 50.000MB/s transfers da0: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C) -- Andrew