You are not logged in.

#1 2011-08-15 20:04:10

frlinux
Member
Registered: 2011-08-15
Posts: 3

kernel 3.0 and very slow usb

Hello,

I have a problem with ALL USB devices on my Arch Linux installation, it used to be very fast then after Linux 3.0, all USB transfer are very very slow. I tested a few usb sticks/drives and regardless of filesystem, I get the same issue. I have timed a transfer, to transfer 160MB, it took 2m39s, it is way too slow. It used to be able to do about 30MB/s sustained.

Anyone got the same behavior?

$ time rsync -avP *pdf /mnt/flash/
sending incremental file list
voip_presentation.pdf
   109688571 100%   77.01MB/s    0:00:01 (xfer#1, to-check=1/2)
asterisk_deployment.pdf
    56921445 100%   40.24MB/s    0:00:01 (xfer#2, to-check=0/2)

sent 166630545 bytes  received 50 bytes  47608741.43 bytes/sec
total size is 166610016  speedup is 1.00

real	0m2.412s
user	0m0.913s
sys	0m0.517s

$ time sync

real	2m39.686s
user	0m0.003s
sys	0m0.000s

My options for mounting are simple: user,noauto,defaults

I am on the latest kernel: Linux darkangel 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

Offline

#2 2011-08-15 20:08:34

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: kernel 3.0 and very slow usb

Perhaps you can post the usb mode....2.0 ...or 3.0.  That should provide some guidance for troubleshooting.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2011-08-15 20:21:37

frlinux
Member
Registered: 2011-08-15
Posts: 3

Re: kernel 3.0 and very slow usb

lilsirecho wrote:

Perhaps you can post the usb mode....2.0 ...or 3.0.  That should provide some guidance for troubleshooting.

Sorry, USB 2.0

$ dmesg |grep -i usb
[    1.582867] usbcore: registered new interface driver usbfs
[    1.582887] usbcore: registered new interface driver hub
[    1.583295] usbcore: registered new device driver usb
[    1.583872] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.583944] ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
[    1.599778] ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
[    1.599885] hub 1-0:1.0: USB hub found
[    1.600161] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
[    1.616514] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    1.616604] hub 2-0:1.0: USB hub found
[    1.685048] uhci_hcd: USB Universal Host Controller Interface driver
[    1.685076] uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
[    1.685186] hub 3-0:1.0: USB hub found
[    1.685246] uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
[    1.685343] hub 4-0:1.0: USB hub found
[    1.685399] uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
[    1.685494] hub 5-0:1.0: USB hub found
[    1.685550] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 6
[    1.685641] hub 6-0:1.0: USB hub found
[    1.685695] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 7
[    1.685791] hub 7-0:1.0: USB hub found
[    1.685849] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 8
[    1.685940] hub 8-0:1.0: USB hub found
[    1.856716] hub 1-0:1.0: unable to enumerate USB device on port 5
[    2.350099] hub 1-0:1.0: unable to enumerate USB device on port 5
[    2.576462] usb 6-1: new full speed USB device number 2 using uhci_hcd
[    2.973133] usb 6-2: new low speed USB device number 3 using uhci_hcd
[    3.373056] usb 7-1: new full speed USB device number 2 using uhci_hcd
[    3.749788] usb 7-2: new low speed USB device number 3 using uhci_hcd
[    3.964744] input: Razer DeathAdder as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input0
[    3.964782] generic-usb 0003:1532:0007.0001: input,hidraw0: USB HID v1.11 Mouse [Razer DeathAdder] on usb-0000:00:1d.0-1/input0
[    3.978747] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input1
[    3.978773] generic-usb 0003:046D:C316.0002: input,hidraw1: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1d.0-2/input0
[    4.014690] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/input/input2
[    4.014729] generic-usb 0003:046D:C316.0003: input,hidraw2: USB HID v1.10 Device [Logitech Logitech USB Keyboard] on usb-0000:00:1d.0-2/input1
[    4.051870] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/input/input3
[    4.051894] generic-usb 0003:05A4:9881.0004: input,hidraw3: USB HID v1.10 Keyboard [HID 05a4:9881] on usb-0000:00:1d.1-2/input0
[    4.119939] hub 1-0:1.0: unable to enumerate USB device on port 5
[    4.180804] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.1/input/input4
[    4.180864] generic-usb 0003:05A4:9881.0005: input,hidraw4: USB HID v1.10 Mouse [HID 05a4:9881] on usb-0000:00:1d.1-2/input1
[    4.180872] usbcore: registered new interface driver usbhid
[    4.180873] usbhid: USB HID core driver
[    4.296688] hub 1-0:1.0: unable to enumerate USB device on port 5
[    4.473314] hub 1-0:1.0: unable to enumerate USB device on port 5
[    4.706498] usb 1-5: new high speed USB device number 7 using ehci_hcd
[    4.770050] hub 1-0:1.0: unable to enumerate USB device on port 5
[    5.033061] usb 5-1: new full speed USB device number 2 using uhci_hcd
[    5.165876] usb 5-1: not running at top speed; connect to a high speed hub
[    5.174921] hub 5-1:1.0: USB hub found
[    6.313943] usbcore: registered new interface driver usbserial
[    6.313953] USB Serial support registered for generic
[    6.313975] usbcore: registered new interface driver usbserial_generic
[    6.313976] usbserial: USB Serial Driver core
[    6.315385] USB Serial support registered for pl2303
[    6.327785] usb 7-1: pl2303 converter now attached to ttyUSB0
[    6.327799] usbcore: registered new interface driver pl2303
[    6.327800] pl2303: Prolific PL2303 USB to serial adaptor driver
[ 5353.291335] usb 5-1.3: new full speed USB device number 3 using uhci_hcd
[ 5353.406311] usb 5-1.3: not running at top speed; connect to a high speed hub
[ 5353.671882] usbcore: registered new interface driver uas
[ 5353.674027] Initializing USB Mass Storage driver...
[ 5353.674210] scsi8 : usb-storage 5-1.3:1.0
[ 5353.674303] usbcore: registered new interface driver usb-storage
[ 5353.674305] USB Mass Storage support registered.

$ 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:0001 Linux Foundation 1.1 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 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 1532:0007 Razer USA, Ltd DeathAdder Mouse
Bus 006 Device 003: ID 046d:c316 Logitech, Inc. HID-Compliant Keyboard
Bus 007 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 007 Device 003: ID 05a4:9881 Ortek Technology, Inc. 
Bus 005 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 005 Device 003: ID 1b1c:1a90  

As you can see, it says not running at top speed, this is connected to the front of the machine, where I always connected my drives. Windows gets full speed, only Linux is affected.

Connecting to the back of the machine works, but my point is that it used to work at the front as well, and full speed. Here is an output of the device connected on the back;


[ 6713.479138] usb 2-5: new high speed USB device number 6 using ehci_hcd
[ 6713.605578] scsi9 : usb-storage 2-5:1.0
[ 6715.639212] scsi 9:0:0:0: Direct-Access     Corsair  VoyagerGT        1100 PQ: 0 ANSI: 0 CCS
[ 6715.639359] sd 9:0:0:0: Attached scsi generic sg7 type 0
[ 6715.640923] sd 9:0:0:0: [sdf] 31326208 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 6715.641697] sd 9:0:0:0: [sdf] Write Protect is off
[ 6715.641700] sd 9:0:0:0: [sdf] Mode Sense: 43 00 00 00
[ 6715.642592] sd 9:0:0:0: [sdf] No Caching mode page present
[ 6715.642596] sd 9:0:0:0: [sdf] Assuming drive cache: write through
[ 6715.645879] sd 9:0:0:0: [sdf] No Caching mode page present
[ 6715.645882] sd 9:0:0:0: [sdf] Assuming drive cache: write through
[ 6715.646711]  sdf: sdf1
[ 6715.648840] sd 9:0:0:0: [sdf] No Caching mode page present
[ 6715.648842] sd 9:0:0:0: [sdf] Assuming drive cache: write through
[ 6715.648844] sd 9:0:0:0: [sdf] Attached SCSI removable disk

Board is a P6T from Asus

# dmidecode 2.11
SMBIOS 2.5 present.
81 structures occupying 3016 bytes.
Table at 0x000F0700.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: 1003   
	Release Date: 03/08/2010
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 2048 kB
	Characteristics:
		ISA is supported
		PCI is supported
		PNP is supported
		APM is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		LS-120 boot is supported
		ATAPI Zip drive boot is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
	BIOS Revision: 8.15

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: System manufacturer
	Product Name: System Product Name
	Version: System Version
	Serial Number: System Serial Number
	UUID: xxxxxxx
	Wake-up Type: Power Switch
	SKU Number: To Be Filled By O.E.M.
	Family: To Be Filled By O.E.M.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: ASUSTeK Computer INC.
	Product Name: P6T DELUXE V2
	Version: Rev 1.xx
	Serial Number: MS1C94BAE101076
	Asset Tag: To Be Filled By O.E.M.
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: To Be Filled By O.E.M.
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB12
	Internal Connector Type: None
	External Reference Designator: USB12
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB34
	Internal Connector Type: None
	External Reference Designator: USB34
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB56
	Internal Connector Type: None
	External Reference Designator: USB56
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB78
	Internal Connector Type: None
	External Reference Designator: USB78
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x0029, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB910
	Internal Connector Type: Access Bus (USB)
	External Reference Designator: Not Specified
	External Connector Type: None
	Port Type: USB

Handle 0x002A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB1112
	Internal Connector Type: Access Bus (USB)
	External Reference Designator: Not Specified
	External Connector Type: None
	Port Type: USB

Handle 0x002B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: USB1314
	Internal Connector Type: Access Bus (USB)
	External Reference Designator: Not Specified
	External Connector Type: None
	Port Type: USB


Handle 0x0050, DMI type 127, 4 bytes
End Of Table

Offline

#4 2011-08-15 20:30:10

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: kernel 3.0 and very slow usb

The info you provided is indeed most helpful since it defines the specific problem introduce by Linux 3.0 kernel.

The possibility exists in the kernel config arrangement such that modprobe might be of use to you.

If you have the previous kernel26 kernel config you might find a difference with the Linux 3.0 in the usb arena.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2011-08-15 21:21:01

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: kernel 3.0 and very slow usb

Perhaps ls usb and/or lsmod will give some clues.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#6 2011-08-15 22:43:47

frlinux
Member
Registered: 2011-08-15
Posts: 3

Re: kernel 3.0 and very slow usb

Arch uninstalled 2.6.x so I cannot compare, I am not using a custom kernel.

Offline

Board footer

Powered by FluxBB