Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev makes usb2 slow as usb1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
mathes.s
Apprentice
Apprentice


Joined: 18 Apr 2003
Posts: 279
Location: Brunswick, Germany

PostPosted: Wed Mar 09, 2005 9:26 am    Post subject: udev makes usb2 slow as usb1 Reply with quote

Hi,
I have the Problem that after I mitgrated to udev my Iriver Ihp Mp3 Player just works with an Bandwidth round 1Mb/s. Before with devfs it was around 7Mb/s. The Kernel log says that it's an Highspeed USB device and I can access it. It just doesen't have the right Speed. Has anyone an Idea?

Thanks Mathes
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Wed Mar 09, 2005 11:08 am    Post subject: Reply with quote

Needs to be fullspeed. High speed is USB 1.1
Did you measure the bandwidth with hdparm before? Or just a best guess.
If you estimated the speed, it was probably cacheing in RAM. Try mounting it with -o async

The other thing is are you sure the ehci drivers loaded? Are they modules or in the kernel.
Back to top
View user's profile Send private message
mathes.s
Apprentice
Apprentice


Joined: 18 Apr 2003
Posts: 279
Location: Brunswick, Germany

PostPosted: Wed Mar 09, 2005 2:40 pm    Post subject: Reply with quote

HI,
I measured it with the kde filetransfer Dialog. The only thing I have changed in the Kernel config was not to mount devfs at boot time. And ehci is compiled into the Kernel.

And yes your right it has to be fullspeed and not highspeed, but how do I tell it that it is a fullspeed device. Under Windows and in the past with devfs it is/was a fullspeed Device.

This is what demsg says about ehci:

Quote:

ehci_hcd 0000:00:10.4: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.4: irq 21, pci mem ffffff0000050000
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
ehci_hcd 0000:00:10.4: port 5 reset error -110


and this is what dmesg says when I plugin the Mp3Player

Quote:

usb 1-5: new high speed USB device using address 7
uba: device 7 capacity nsec 39063024 bsize 512
uba: was not changed
/dev/ub/a: p1
usb 1-5: USB disconnect, address 7
usb 1-5: new high speed USB device using address 8



this is the line in udev rules for the Player
Quote:

BUS="usb", SYSFS{product}="iRiver iHP-100 Series", NAME="iriver"



Thanks Mathes
Back to top
View user's profile Send private message
Crapo
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2004
Posts: 110

PostPosted: Wed Mar 09, 2005 5:50 pm    Post subject: Reply with quote

Hi,
I was experiencing very slow access to my USB2 hard drive until I disabled the CONFIG_BLK_DEV_UB kernel option. Maybe worth a try assuming you have a 2.6 kernel.
Hope this helps.
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Wed Mar 09, 2005 8:37 pm    Post subject: Reply with quote

Can you do a more thorough benchmark just to be sure it's not the KDE file transfer dialog? I remember someone else was having an issue with that.
from the command line do:
Code:
mount -o sync /dev/sda /mnt/usbdrive
touch /mnt/usbdrive/speedtest
time dd if=/dev/hda of=/mnt/usbdrive/speedtest bs=512k count=48

Then divide 24MB by the number of seconds and that will tell you the throughput.

Also: "ehci_hcd 0000:00:10.4: port 5 reset error -110 " <-- did you have it plugged in when you booted? Possibly it was initialized as a USB 1.1 device because the driver was loaded before EHCI at boot time and the system's remembering that?
Back to top
View user's profile Send private message
mathes.s
Apprentice
Apprentice


Joined: 18 Apr 2003
Posts: 279
Location: Brunswick, Germany

PostPosted: Thu Mar 10, 2005 9:59 am    Post subject: Reply with quote

Hi,
I found that it is recognised correctly because as an Highspeed usb device. As you can read on this Page USB.org HighSpeed is USB2.0 and the kde Informationcenter says that too. But in the moment I have the Problem that I can't mount the device because mount says that it isn't a blockorientated device. But this is already discussed in the German forum. So thanks for your help. When I get it mounted I will give you the result of your commands.

Thanks mathes
Back to top
View user's profile Send private message
mathes.s
Apprentice
Apprentice


Joined: 18 Apr 2003
Posts: 279
Location: Brunswick, Germany

PostPosted: Thu Mar 10, 2005 10:19 am    Post subject: Reply with quote

Hi,
I have but in back the CONFIG_BLK_DEV_UB option and now I can mount it again. The Result of your commands is
Quote:

48+0 Datensätze ein
48+0 Datensätze aus

real 0m26.545s
user 0m0.001s
sys 0m0.331s


an 26sec divided by 24Mb is something around 1MB/s.

Mathes
Back to top
View user's profile Send private message
mathes.s
Apprentice
Apprentice


Joined: 18 Apr 2003
Posts: 279
Location: Brunswick, Germany

PostPosted: Thu Mar 10, 2005 1:44 pm    Post subject: Reply with quote

Hi,
both Problems solved. I have now deaktivated the scsi generic support and deactivated the low perfomance usb block driver. And now everything works with the right speed:

Quote:

NBK mathes # time dd if=/dev/hda of=/mnt/iriver/speedtest bs=512k count=48
48+0 Datensätze ein
48+0 Datensätze aus

real 0m2.823s
user 0m0.003s
sys 0m0.326s

which is something around 8Mb/s.

and I can mount it without any Problem.

Thanks Mathes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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