On Wed, Jun 10, 2009 at 6:54 PM, Donald Allen <donaldcal...@gmail.com>wrote:

>
>
> On Wed, Jun 10, 2009 at 5:21 PM, Thomas Pfaff <tpf...@tp76.info> wrote:
>
>> On Sun, 7 Jun 2009 15:58:56 +0200
>> Thomas Pfaff <tpf...@tp76.info> wrote:
>>
>> > Getting really slow performance on umass(4) devices.  It takes about
>> > 20 minutes to write 1.4G, while the same job takes about 2.5 minutes
>> > on Ubuntu and Windows (on the same hardware).
>> >
>> > The device attaches to an EHCI hub but, with regards to performance,
>> > it acts like it's attached to an UHCI hub.  Please see script below.
>>
>> Is anyone else experiencing this?  Is the problem on my side, or does
>> OpenBSD not yet support High Speed USB transfers?
>
>
> umass0 at uhub8 port 6 configuration 1 interface 0 "Sunplus Technology Inc.
> USB to Serial-ATA bridge" rev 2.00/c6.83 addr 7
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd1 at scsibus2 targ 1 lun 0: <ST332062, 0NS, > SCSI2 0/direct fixed
> sd1: 305245MB, 512 bytes/sec, 625142448 sec total
> umass1 at uhub8 port 5 configuration 1 interface 0 "Sunplus Technology Inc.
> USB to Serial-ATA bridge" rev 2.00/c6.83 addr 8
> umass1: using SCSI over Bulk-Only
> scsibus3 at umass1: 2 targets, initiator 0
> sd2 at scsibus3 targ 1 lun 0: <ST332062, 0NS, > SCSI2 0/direct fixed
> sd2: 305245MB, 512 bytes/sec, 625142448 sec total
>
> sd1 and sd2 are both Seagate 300 Gb 7200 rpm sata drives in usb shoeboxes.
>
> sd1a is an ffs filesystem mounted on ~/Backups/Primary, no soft updates, no
> noatime.
> sd2i is an ext2 filesystem mounted on ~/Backups/Secondary, no noatime.
>
> So, after Aaron's dd experiment, I got filesystems involved:
>
> d...@sophie:~/Backups$ time (cp ~/temp/usr-bare-metal.tar.bz2
> ~/Backups/Primary ; sync)
>
> real    1m2.535s
> user    0m0.010s
> sys    0m2.430s
>
> d...@sophie:~/Backups$ time (cp ~/temp/usr-bare-metal.tar.bz2
> ~/Backups/Secondary ; sync)
>
> real    2m30.944s
> user    0m0.000s
> sys    0m3.200s
>
> -rw-r--r--  1 dca  allen   771M Jun 10 18:19 usr-bare-metal.tar.bz2
>
> So this is an order-of-magnitude faster than what you are seeing.
>
> It's also interesting that writing to the ffs filesystem is more than twice
> as fast as writing to the ext2 filesystem, especially given that I've got
> the ffs filesystem mounted fully synchronous.
>

I'm sorry -- I forgot to mention that this is running on a Thinkpad X61, 2
Gb memory, 100 Gb 7200 rpm internal drive, OpenBSD 4.5 (amd64). The
processor is Core 2 Duo, ~ 2 Ghz. ~/temp lives on the internal drive.

/Don

Reply via email to