Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very slow USB transfer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Wed Apr 25, 2007 7:56 pm    Post subject: Very slow USB transfer Reply with quote

Transfer is extremely slow on my new USB key (8KB/s). What can be the cause of this? I've got this problem on my 2 computers, I think I've misconfigured something, because it can do ~3MB/s on my friend's machine.

fstab:
Code:
/dev/sdb1       /mnt/usb        vfat        rw,gid=1009,noauto,sync,users,umask=0007    0 0


dmesg on plug-in:
Code:
usb 2-4: USB disconnect, address 3
usb 2-4: new high speed USB device using ehci_hcd and address 4
usb 2-4: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Apr 25, 2007 8:10 pm    Post subject: Reply with quote

Did you have an fstab line for it in your friend's computer? I don't have fstab entries for CD/DVDRW drives or any removable storage, as hal, dbus and your desktop environment should do the trick of configuring it for you.

Also, make double sure that your kernel configurations for USB is proper and that you have the proper SCSI support options (SCSI disk if I remember correctly).
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Wed Apr 25, 2007 8:37 pm    Post subject: Reply with quote

I think the configuration is ok, I've compared it to gentoo usb guide, one of my machines have these options in modules and the second has them built into the kernel. My friend's fstab line is almost exactly the same as mine:), the only difference is that he's got 'gid=plugdev' instead of my gid. Removing the configuration from fstab gives me this stupid async writing :/
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Mon May 28, 2007 1:37 pm    Post subject: Reply with quote

Hmm I have some more questions: the drive I bought was initially not formatted and had no partitions created; so is it wise to format or create any other filesystems on it?
Back to top
View user's profile Send private message
qwert667
n00b
n00b


Joined: 26 Jun 2006
Posts: 6

PostPosted: Sat Jun 02, 2007 11:17 pm    Post subject: Reply with quote

http://lkml.org/lkml/2005/5/13/144
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Jun 03, 2007 10:59 am    Post subject: Reply with quote

I'd go along with quert667's comment, and remove the sync option from the fstab line.
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Wed Jul 04, 2007 7:02 pm    Post subject: Reply with quote

I understand, but it doesn't speed up the transfer.
Back to top
View user's profile Send private message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Wed Jul 04, 2007 7:10 pm    Post subject: Reply with quote

Add 'noatime' to your fstab entry for the usb key, it will speed up access to it a bit by not recording the last access time on each file in the filesystem.

Based on the speeds your reporting, it sounds like maybe you're plugging your key into a USB 1.1 port? Your friend has a USB 2.0 port. There is a *big* difference in bandwidth between the two types of USB ports.

http://en.wikipedia.org/wiki/USB#USB_signaling
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Fri Jul 06, 2007 3:56 pm    Post subject: Reply with quote

No, it's 2.0 port (look at my first post). Now something has changed and the drive appears to be faster; the worst thing is that I don't even know how to mesure it's speed :? I've copied a 749MB file and it took 578 sec, so it's ~1.30MB/s, which still is too slow for an USB 2.0 key.
Back to top
View user's profile Send private message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Fri Jul 06, 2007 6:36 pm    Post subject: Reply with quote

I wish someone would make a firewire thumb drive. They're big enough these days (multi-GB) that being able to count on an isochronous transfer would be nice.
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Fri Jul 06, 2007 8:25 pm    Post subject: Reply with quote

Firewire is still not popular enough, I think. Besides, I doubt there would be a significant increase of performance. So why bother?:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum