View previous topic :: View next topic |
Author |
Message |
tutaepaki Apprentice

Joined: 11 Nov 2003 Posts: 279 Location: New Zealand
|
Posted: Wed May 03, 2006 8:48 pm Post subject: Strange USB performance issue |
|
|
I recently installed a PCI USB2.0 card in my desktop. Mainly to try to improve the performance when putting musinc on my iPod shuffle. But it seems MUCH slower.
But not just when writing to the iPod. When the USB2 card is installed, they whole machine seems slower. It's particularly noticable with GTKPOD. It doesn't seem to matter whether I plug the iPod into the old USB1.1 ports on the Motherboard or into the new ports, when I start GTKPOD, it takes ~45secs to read the 75 tracks off the iPod, whereas, when I physically remove the new card, it takes 3-4secs. I see the same effect when I select the LOCAL music database, and the iPod is not even connected. ~100tracks per minute with the card in, ~100tracks every 5-6secs with it out. (while this is happening, GTKPOD is using 80-90% CPU)
The machine is a P3 650 with 512MB RAM Kernel 2.6.16-r2
USB DMESG output is
Code: | ehci_hcd 0000:00:0b.2: EHCI Host Controller
ehci_hcd 0000:00:0b.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0b.2: irq 10, io mem 0xdfffff00
ehci_hcd 0000:00:0b.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver libusual
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
|
Plugging the iPod in
Code: | usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 2 choices
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: Apple Model: iPod Rev: 2.70
Type: Direct-Access ANSI SCSI revision: 04
SCSI device sda: 1010432 512-byte hdwr sectors (517 MB)
sda: Write Protect is off
sda: Mode Sense: 64 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 1010432 512-byte hdwr sectors (517 MB)
sda: Write Protect is off
sda: Mode Sense: 64 00 00 08
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
|
/etc/fstab
Code: | /dev/iPod /iPod vfat user,exec,noauto,rw,gid=100,umask=0007 0 0 |
hdparm
Code: | goofy ~ # hdparm -t /dev/iPod
/dev/iPod:
Timing buffered disk reads: 10 MB in 3.44 seconds = 2.91 MB/sec
|
So, isn't USB2 supposed to be 480Mbps ? Obviously ~3MBps is not even close.
I've searched the forums an as a result tried...
changing USB support to modules
removing ohci and uhci support
removing generic SCSI support
checked low performance USB driver was disabled
enable experimental ehci ISO transfer
None of this made any difference to the problem. |
|
Back to top |
|
 |
E001754 Guru


Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Wed May 03, 2006 10:38 pm Post subject: |
|
|
perhaps trying to activate DMA using hdparm ?? (kick my ass if DMA is not available on SCSI-like chains. I don't remember for sure, but it should). |
|
Back to top |
|
 |
tutaepaki Apprentice

Joined: 11 Nov 2003 Posts: 279 Location: New Zealand
|
Posted: Wed May 03, 2006 11:59 pm Post subject: |
|
|
DMA doesn't seem to be supported "HDIO_SET_DMA failed: Invalid argument"
thanks anyway |
|
Back to top |
|
 |
E001754 Guru


Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Thu May 04, 2006 8:17 pm Post subject: |
|
|
Have you tested the performances with a standard USB 2.0 stick ??
It could help to findout whereever you should accuse your Ipod or your computer. |
|
Back to top |
|
 |
tutaepaki Apprentice

Joined: 11 Nov 2003 Posts: 279 Location: New Zealand
|
Posted: Thu May 04, 2006 8:57 pm Post subject: |
|
|
haven't tried that yet...will do tonight....but some more speed tests with the iPod...
without the USB 2.0 card (so using the built-in USB 1.1 port)
hdparm gives me speeds of 954kB/sec which seems pretty reasonable (~8Mb/sec and 1.1 has a max of 12Mb/sec so that seems OK
gtkpod takes ~1sec to load the list of tracks off the iPod
with the USB 2.0 card in
hdparm gives the same speed for the 1.1 port
and 3MB/sec for the 2.0 one (at ~24Mb/sec that's higher than the cabability of 1.1, but well short of 2.0's limit of 48Mb/sec)
gtkpod takes ~30-45secs to load the list of tracks off the iPod no matter which USB port it's connected in to
I also get the general impression that everything is slower with the 2.0 card installed. I did an emerge system last night on a couple of systems, and glibc took just as long on the 650Mhz with 512MB RAM as it did on the 350Mhz with 128MB. If I can recall the command to display the timings I'll confirm that.
So, I'm thinking maybe it's not necessarily the USB speed, but that the card itself is doing something to my processor. Maybe a BIOS upgrade needed or something?
EDIT : Erk
Code: | goofy ~ # genlop -t glibc
* sys-libs/glibc
Thu May 4 19:19:30 2006 >>> sys-libs/glibc-2.3.6-r3
merge time: 4 hours, 14 minutes and 40 seconds.
Fri May 5 10:48:16 2006 >>> sys-libs/glibc-2.3.6-r3
merge time: 1 hour, 34 minutes and 24 seconds.
|
The only difference between these 2 emerges was that for the first one, the USB 2.0 card was installed!! |
|
Back to top |
|
 |
E001754 Guru


Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Fri May 05, 2006 7:48 pm Post subject: |
|
|
I was thinking about something (yes, really ! )
With your USB 2.0 card inside your PC, you now have two USB controlers.
If I were you, I would try disabling the on-board USB, so that you are sure the USB 1.1 on-board controler can't mess up with the PCI USB 2.0 controler.
Perhaps is there some weird interactions outta there ?
Give it a try and let me know the result. |
|
Back to top |
|
 |
chrisruwe Apprentice


Joined: 17 Apr 2006 Posts: 160
|
Posted: Fri May 05, 2006 8:56 pm Post subject: |
|
|
I noticed your actual speed is pretty close to 1/2 of the theoretical one. Could this bear any significance? Maybe some jumper-setting or some bandwidth sharing with another device? |
|
Back to top |
|
 |
|