View previous topic :: View next topic |
Author |
Message |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Wed Apr 21, 2004 11:16 am Post subject: A7N8X Deluxe, Kernel 2.6.5 and USB is *VERY* slow |
|
|
Hi all.
I've spent hours and hours going through posts and trying suggestions from here, USENET and nforcershq but I am still having major problems.
I have an ASUS A7N8X Deluxe Rev 2 motherboard with an Athlon XP 2800+, 512MB Corsair TwinX 3200LL memory and a WD 40GB IDE HDD. I am trying to use a WD external USB2 120GB hard disk as a backup device.
I have installed and configured kernel 2.6.5 from gentoo-sources. Nvidia's GLX, kernel stuff etc is loaded. I've also tried it with 2.6.5-mm6.
I can mount the disk, list files etc etc. However, I assume it's running over standard USB. hdparm reports transfers of about 2MB per sec. Each time I go to copy a file from the disk, it takes a few seconds for the light to come on and then I get about 5-10 seconds of sustained transfer (the light goes on) then it stops for a while, then flickers back and forth. I've tried the disk on another system running 2.6.3 and it is fine.
I've tried compiling in USB support, using modules etc etc. I am currently trying to use OHCI-HCD compiled in with EHCI-HCD as a module.
Can somebody please advise me on what is the best way to get USB2 working at proper full speed. Do I compile it all in and set some cryptic option somewhere? Both as modules, in a certain order? Surely there must be a recommended way of setting this up?!
PLEASE HELP! This is driving me nuts!
TIA.
-Nick |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Wed Apr 21, 2004 7:06 pm Post subject: |
|
|
DraconianTimes,
EHCI-HCD is your USB 2.0 driver. Use lsmod to see if its loaded and modprobe to load it.
If you need USB 1.1 for some things and USB 2.0 for others, they must be on seperate root hubs. Each root hub drives a pair of USB connectors on the motherboard.
If you don't need USB 1.1 at all, take OHCI-HCD out of the kernel while you play. All 3 root hubs (6 USB ports) can do USB2.0 or USB 1.1 but not both at the same time. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu Apr 22, 2004 12:37 am Post subject: |
|
|
Thanks for your suggestions. I'll try them out tomorrow and get back to you!
Cheers!
-Nick |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu Apr 22, 2004 5:48 pm Post subject: |
|
|
NeddySeagoon,
I have tried loading only the ehci-hcd module on its own. I recompiled, ensured that the modules was loaded with lsmod and then ran hdparm -t /dev/sda1
Code: |
/dev/sda1:
Timing buffered disk reads: 32 MB in 18.92 seconds = 1.69 MB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 32 MB in 23.91 seconds = 1.34 MB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 12 MB in 3.03 seconds = 3.96 MB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 32 MB in 21.97 seconds = 1.46 MB/sec
|
I'll recompile with ohci only and see what the results are...
-Nick |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu Apr 22, 2004 5:57 pm Post subject: |
|
|
And with ohci-hcd loaded only, I get the following results:
Code: |
/dev/sda1:
Timing buffered disk reads: 2 MB in 5.92 seconds = 346.12 kB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 4 MB in 3.97 seconds = 1.01 MB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 4 MB in 3.99 seconds = 1.00 MB/sec
bash-2.05b# hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 4 MB in 3.99 seconds = 1.00 MB/sec
|
-Nick |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Thu Apr 22, 2004 8:28 pm Post subject: |
|
|
DraconianTimes,
Thats really dire!
emerge usbview and see what it has to say about your disc device. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu Apr 22, 2004 8:58 pm Post subject: |
|
|
Hi there.
I've tried 2.6.5-mm6, 2.6.5-gentoo and and 2.6.6_rc1 - No joy whatsoever. Is there a special order in which I should be loading the modules? Can you confirm if ohci-hcd and ehci-hcd are the rights ones? I've emerged the usbview tool, plus also here is the output of 'lsusb -v'.
Many thanks for your help!
-Nick
Code: |
Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.5-gentoo ohci_hcd
iProduct 2 nVidia Corporation nForce2 USB Controller (#2)
iSerial 1 0000:00:02.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 255
Language IDs: (length=4)
0409 English(US)
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.5-gentoo ohci_hcd
iProduct 2 nVidia Corporation nForce2 USB Controller
iSerial 1 0000:00:02.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 255
Language IDs: (length=4)
0409 English(US)
Bus 001 Device 002: ID 1058:0200 Western Digital Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1058 Western Digital Technologies, Inc.
idProduct 0x0200
bcdDevice ff.ff
iManufacturer 1 Western Digital
iProduct 2 FireWire/USB2.0 Combo
iSerial 3 0063826
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Language IDs: (length=4)
0409 English(US)
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 1
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.5-gentoo ehci_hcd
iProduct 2 nVidia Corporation nForce2 USB Controller
iSerial 1 0000:00:02.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 12
Language IDs: (length=4)
0409 English(US)
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Halcy0n Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/9109206313f90bbb55cf4d.jpg)
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
Posted: Thu Apr 22, 2004 9:05 pm Post subject: |
|
|
What's the output of "hdparm /dev/sda1" ? _________________ Mark Loeser
http://www.halcy0n.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu Apr 22, 2004 9:11 pm Post subject: |
|
|
The output is as follows:
Code: |
bash-2.05b# hdparm /dev/sda1
/dev/sda1:
readonly = 0 (off)
geometry = 14593/255/63, sectors = 234436482, start = 63
|
HaLCy0n wrote: | What's the output of "hdparm /dev/sda1" ? |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Fri Apr 23, 2004 2:26 pm Post subject: |
|
|
DraconianTimes,
Your USB hubs seem to be doing USB 1.1 rather than USB 2.0.
The drivers you need are ehci-hcd for usb 2.0 and ohci-hcd for usb 1.1. The kernel will load ohci-hcd for you if you are not careful. Do you have it in /etc/modules.autoload ?
Traverse the /lib/modules/<kernel_version>/... tree and rename the ohci-hcd module so it can't possibly load, now manually load ehci-hcd. What does that do?
Your drive says it does firewire - have you tried that?
===========edit===========
Have a peek in your BIOS, you can set USB options there for USB 1.1, USB 1.1+2.0. If you have 1.1 set ... _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wizard69 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Marvel/movie_x-men_wolverine.gif)
Joined: 22 Sep 2003 Posts: 178 Location: Berlin
|
Posted: Fri Apr 23, 2004 3:23 pm Post subject: |
|
|
i have the same mobo as you do and i also use an external drive with usb2.0 hdparm shows:
Code: |
/dev/sda:
Timing buffer-cache reads: 1924 MB in 2.00 seconds = 960.71 MB/sec
Timing buffered disk reads: 62 MB in 3.05 seconds = 20.32 MB/sec
|
which seems to be okay i am currently useing the latest love-sources
2.6.6-rc2-love1 perhaps the usb section of my kernel .config can help you find the problem
Code: | #
# USB support
#
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_UHCI_HCD is not set
#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
#
# USB Bluetooth TTY can only be used with disabled Bluetooth subsystem
#
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nutterpc Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Cloud.gif)
Joined: 02 Feb 2004 Posts: 83
|
Posted: Fri Apr 23, 2004 3:34 pm Post subject: |
|
|
I too have an nForce 2 board (SL-75FRN2-L) and as I don't use any USB devices atm, I get about 55.81MB/sec
Once I get on my machine, when it finishes recompileing the kernel, I'll post in my config for you all, and also how I have my end setup
Might even suggest something like why not we start a seperate part of the forums here specifically for nForce 1/2 users, it could be an idea
Cheers
Nutterpc _________________ If it isn't broke, you ain't tweaked it right
Registered Linux User 353232 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DraconianTimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Oct 2003 Posts: 9
|
Posted: Thu May 06, 2004 10:30 pm Post subject: Now getting desperate |
|
|
OK. I think I've now tried everything. This is total misery.
I've popped a completely seperate USB2 PCI controller card into the system. Running hdparm -t /dev/sda results in the following:
Code: |
bash-2.05b# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 32 MB in 36.21 seconds = 904.96 kB/sec
bash-2.05b# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 2 MB in 23.49 seconds = 87.17 kB/sec
bash-2.05b# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 32 MB in 44.18 seconds = 741.72 kB/sec
bash-2.05b#
|
I have tried 2.6.5-mm6 now too. I have compiled in EHCI, UHCI, OHCI and also tried them as modules too. I have tried single combinations, of OHCI only, EHCI only etc.
My /etc/modules.autoload.d/kernel-2.6 currently looks like this:
Code: |
ohci-hcd
uhci-hcd
ehci-hcd
|
I have checked the BIOS. It is set to 1.1+2.0, so no problems there. Could somone PLEASE tell me exactly which files I should be editing modifying because I seem to be getting conflicting opnions from all over the place as to what I should be doing. Do I need to do any device aliasing???
I would seriously appreciate somone to tell me how specfically they got their USB2 working with this board and the 2.6 kernel series.
Many, Many thanks in advance.
-Nick |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|