On Tue, 19 Jan 2010, T. Tofus von Blisstein wrote:

> Hello,
>
> this is an example. Attached is a 1GB (fat!) usb memory stick. It took
> 40 minutes to copy 285M.
>
> This one was
>
> Jan 19 21:18:04 hux /bsd: umass0: using SCSI over Bulk-Only
> Jan 19 21:18:04 hux /bsd: scsibus1 at umass0: 2 targets, initiator 0
> Jan 19 21:18:04 hux /bsd: sd1 at scsibus1 targ 1 lun 0: <-Pretec,
> 01GB, 2.00> SCSI2 0/direct removable
> Jan 19 21:18:04 hux /bsd: sd1: 983MB, 512 bytes/sec, 2015231 sec total
>
> I will repeat the test with all other ports now.

There shouldn't be any difference among individual USB ports.

First, try this:

# dd if=/dev/rsd1c bs=64k count=1k of=/dev/null

(or just hit ^C if it takes too long) and see what the reading speed of 
the _device_ is. If you don't have any data on the device and if you are 
willing to recreate the MBR and filesystem there, you can also test the 
writing speed:

# dd if=/dev/zero bs=64k count=1k of=/dev/rsd1c

Otherewise you are also measuring the filesystem performance and such. For 
some reason (which is unknown to me), "foreign" filesystems, such as 
ext2fs and msdos, are quite slow on OpenBSD, both for reading and for 
writing. The CPU is not the bottleneck in operations on these filesystems.

Regards,
David

Reply via email to