Slow USB in Suse 12.1

Hi there

I am experiancing slow (unusable) USB2 in Suse 12.1, I am using a USB2 card reader and 45MB/s CF card and getting read speeds of 900KB/s with dolphin. USB, reader and card all work at expected speed in windows. What can I do to fix this?

Not sure if this helps -

jonny@linux-6ava:~> dmesg | grep EHCI
    1.750334] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    1.750432] ehci_hcd 0000:00:12.2: EHCI Host Controller
    1.750465] ehci_hcd 0000:00:12.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
    1.756091] ehci_hcd 0000:00:12.2: USB 2.0 started, EHCI 1.00
    1.756116] usb usb1: Product: EHCI Host Controller
    1.756394] ehci_hcd 0000:00:13.2: EHCI Host Controller
    1.756407] ehci_hcd 0000:00:13.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
    1.762083] ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00
    1.762109] usb usb2: Product: EHCI Host Controller
    1.762386] ehci_hcd 0000:00:16.2: EHCI Host Controller
    1.762400] ehci_hcd 0000:00:16.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
    1.768084] ehci_hcd 0000:00:16.2: USB 2.0 started, EHCI 1.00
    1.768108] usb usb3: Product: EHCI Host Controller

linux-6ava:/home/jonny # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 002: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader

Here Bus 007 is shown as a USB1.1 hub? Is this correct because it is actually a USB 2 port on the front of an Antec Case?

Thanks
Jonny

Here Bus 007 is shown as a USB1.1 hub? Is this correct because it is actually a USB 2 port on the front of an Antec Case?

Thanks
Jonny

Any USB connection on the front of a case has to connect to your motherboard some where. What motherboard is in your computer case and where on the motherboard does this front panel USB port connect to?

Thank You,

Hi Jonny, As far as I know usb 1.1 and 2.0 connectors are physically the same. There shouldn’t be any dedicated 1.1 connectors on a modern mb. When you plug in a device the speed is measured and a connection is made to the appropriate bus.
Something appears to be dropping the connection to usb 1.1. It doesn’t look like you are using an external hub (would be a problem if it was usb 1.1) If you are using a cable extension try plugging the reader into the usb port directly. I’m guessing you’ve already tried plugging the reader into different usb ports. What about running lsusb -t, it will give you a bit more info on how usb devices are connected and the speeds they’re running at.
You say read speed but do you mean write? As in you are copying a file from the CF card to your hd using dolphin and monitoring the transfer speed from dolphin?

Hi

The motherboard is an Asus M4A88TD-V/EVO USB3 (it was new last year, AM3 board) the USB on the case runs from a header on the board which is where the instructions in the manual tell you to connect, I believe there is another USB header and a firewire header next to it for more front ports. And when I say “read speed” I mean reading from the USB port and writing the data to the local HDD. Just to confirm the speed Windows can copy the whole card to HDD in around 15mins while linux is taking up to 8x that time. Will run the “lsusb -t” command when my camera is home

Cheers
Jonny

Hi Jonny,
I just want to be sure you’re comparing apples to apples. When you do the transfer on windows it’s the same data as opensuse? The number of files and file size can make a difference to the transfer speed.
I don’t currently have a opensuse box but I did some testing on a vectorlinux laptop. It uses thunar which doesn’t display transfer speed so I used rsync from the command line.
I used two types of media, a 16G usb thumb drive and a 4G cf card in a camera. The thumb drive was formatted ext4 and connected as a usb2 device. The cf card was formatted fat and connected as usb1.1.
Here are the results
hd to thumbdrive : 15 MB/s
thumbdrive to hd : 18 MB/s
hd to cf card : .5 MB/s
cf card to hd : 12 Mb/s
Heres my lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 2: Dev 2, If 0, Class=vend., Driver=, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 2, If 0, Class=stor., Driver=usb-storage, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
|__ Port 2: Dev 3, If 0, Class=stor., Driver=usb-storage, 480M

These are results I would expect to see. What I suggest you try is rsync (it will take dolphin out of the mix). If it’s still running slow and you’ve reviewed all the physical connections and can’t find a problem you should file a bug with opensuse.

I did pull up the manual on your motherboard and it shows four double USB ports, all USB 2.0 rated.

http://paste.opensuse.org/images/9211858.png

So what ever is going on is not related to the motherboard unless a BIOS update might be needed for some reason.

Thank You,

Sorry, I should have mentioned this previously. If you’re going to test by copying folders of photos back and forth. To get a real measure of speed you should dump the cache between operations. You can do it as root with this command: sync; echo 3 > /proc/sys/vm/drop_caches. Sudo didn’t do it for me I had to su to root.

Same here. Asus M2N-E, nforce 500 series chipset, suse 12.1: only dist with 3.1 kernel. Win7 and a range of ubuntus and debian with 2.6, 3.0 and 3.2 kernel work ok.
hwinfo --usb lists the device (a Samsung 2.5" disk) as 480MBps in SuSE, still read/write ops (large files like ISO images) to the disk’s vfat fs only do 1.5MB/s.

this is an old thread … We discussed USB speeds in this thread: http://forums.opensuse.org/forums/english/get-technical-help-here/hardware/475403-usb-drives-bad-performance-low-speed.html

What kernel version are you using ? The 3.1.10 kernel on openSUSE-12.1 did fix some USB issues, where we discussed that kernel release here: http://forums.opensuse.org/forums/english/other-forums/community-fun/general-chit-chat/474637-new-kernel-3-1-10-1-9-1-a.html

I noted some marginal improvements with my USB-3.0 device with that kernel release and the closest I could find to one that might explain the improved performance I have observed with USB-3.0 is this one Bug 719416 - writing to usb flashdisk uses too much cpu and makes system unresponsive. I note that is NOT focused at USB-3.0 and it also does not appear to describe the sort of transfer speeds I am work with, but still possibly if you do not have that kernel version on your openSUSE-12.1 you could update to it (as it is a nominal openSUSE-12.1 update).

I assume, of course, that you are copying to a GNU/Linux file system or to an NTFS system (and not to a FAT32 which of course will have difficulties with large files).