Speed up USB-Harddisks
Speed up USB-Harddisks
I just bought a 200 Gig- USB 2.0 Harddisk (Trekstor Datastation maxi y.uh ;140 Euro).
As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).
Plugged it in, attached the harddisk.
Startet MUT, and the harddisk was visible and could be mounted (great, Mandrake-Linux 9.2 does not recognize the USB 2.0-Port).
Then I copied a large file: awfull slow.
So I ran the "usbview"-Tool.
It tells me something about ohci and 12 MBit.
Well, USB 2.0 supports 480 MBit.
Watching the booklet, in the specifications it sais:
"the device consists of two openhost Controller Interfaces (ohci), and one Enhanced Host Controller Interface (ehci)".
So I looked for a module:
ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz
Ah great, right what I need.
modprobe ehci-hcd
and *whoooosch* it is fast as hell
You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0
Mark
As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).
Plugged it in, attached the harddisk.
Startet MUT, and the harddisk was visible and could be mounted (great, Mandrake-Linux 9.2 does not recognize the USB 2.0-Port).
Then I copied a large file: awfull slow.
So I ran the "usbview"-Tool.
It tells me something about ohci and 12 MBit.
Well, USB 2.0 supports 480 MBit.
Watching the booklet, in the specifications it sais:
"the device consists of two openhost Controller Interfaces (ohci), and one Enhanced Host Controller Interface (ehci)".
So I looked for a module:
ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz
Ah great, right what I need.
modprobe ehci-hcd
and *whoooosch* it is fast as hell
You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0
Mark
DoneMU wrote: You should add that to the "suggestions"-board.
http://www.murga.org/%7Epuppy/viewtopic.php?t=3361&highlight=
I'll take a look, but DSL at 50MB boots much faster than Puppy does from the same pen drive.aahhaaa wrote: don't know if this applies to your VIA Board, but mine has USB options in the BIOS...
ok, this is strange.
it is mentioned in /lib/libhardware/usb
1033|0035|usb-ohci|NEC Corp|USB
1033|00e0|ehci-hcd|NEC Corp|PCI to USB Enhanced Host Controller
The following shows, that it is detected as USB-2 EHCI Device, but with slow speed. just when I run modprobe manually, it uses fullspeed.
first the results, when I do not run modprobe ehci-hcd
------------
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) detected.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.
--------
USB-View:
--------
USB2.0 Hub
Speed: 12Mb/s (full)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 255ms
----------------
----------------
Now the result when I do run modprobe ehci-hcd
-----
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.
--------
USB-View:
--------
USB2.0 Hub
Speed: 480Mb/s (high)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 256ms
it is mentioned in /lib/libhardware/usb
1033|0035|usb-ohci|NEC Corp|USB
1033|00e0|ehci-hcd|NEC Corp|PCI to USB Enhanced Host Controller
The following shows, that it is detected as USB-2 EHCI Device, but with slow speed. just when I run modprobe manually, it uses fullspeed.
first the results, when I do not run modprobe ehci-hcd
------------
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) detected.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.
--------
USB-View:
--------
USB2.0 Hub
Speed: 12Mb/s (full)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 255ms
----------------
----------------
Now the result when I do run modprobe ehci-hcd
-----
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.
--------
USB-View:
--------
USB2.0 Hub
Speed: 480Mb/s (high)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 256ms
I made the last posting with the Harddisk attached.
The Harddisk has an integrated USB-Hub.
If i unattach it, I get the same results, but usbview shows something different.
Without the modprobe, the USB-2 Adapter is not visible.
After modprobe, it is visible as
PCI device 1033:00e0
(in the former message it was named USB2.0 Hub)
Maybe the bootscripts check for ehci first, before they check for pcmcia?
So it has no effect?
----
PCI device 1033:00e0
Manufacturer: Linux 2.4.29 ehci_hcd
Serial Number: 02:00.2
Speed: 480Mb/s (high)
Number of Ports: 3
Bandwidth allocated: 0 / 800 (0%)
Total number of interrupt requests: 0
Total number of isochronous requests: 0
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Config Number: 1
Number of Interfaces: 1
Attributes: 40
MaxPower Needed: 0mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 2
Interval: 256ms
The Harddisk has an integrated USB-Hub.
If i unattach it, I get the same results, but usbview shows something different.
Without the modprobe, the USB-2 Adapter is not visible.
After modprobe, it is visible as
PCI device 1033:00e0
(in the former message it was named USB2.0 Hub)
Maybe the bootscripts check for ehci first, before they check for pcmcia?
So it has no effect?
----
PCI device 1033:00e0
Manufacturer: Linux 2.4.29 ehci_hcd
Serial Number: 02:00.2
Speed: 480Mb/s (high)
Number of Ports: 3
Bandwidth allocated: 0 / 800 (0%)
Total number of interrupt requests: 0
Total number of isochronous requests: 0
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Config Number: 1
Number of Interfaces: 1
Attributes: 40
MaxPower Needed: 0mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 2
Interval: 256ms
- BlackAdder
- Posts: 385
- Joined: Sun 22 May 2005, 23:29
USB 2.0 Speedup
I Can confirm Mark's results, at least in terms of the speedup happening after a manual modprobe ehci-hcd.
Was pondering a hacked version of /etc/rc.d/rc.modules, just before the comment:
adding something like:
Really hackish I guess, but right at the limit of my script ability.
Was pondering a hacked version of /etc/rc.d/rc.modules, just before the comment:
Code: Select all
#reckon we will always want to access usb memory devices...
#modprobe usb-storage
Code: Select all
scanmodule | grep "ehci" > /dev/null
if [ $? -eq 0 ]; then
modprobe ehci-hcd
fi
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
I'm wary of playing with the detection code right now, just before
releasing 1.0.6...
dmesg | grep "ehci"
might also do it.
we need to remaster the CD with a code modification that does detect the
ehci.
I'm puzzled though, scanmodule is supposed to identify that chipset then
load the ehci driver. I don't know why the chip is unavailable to scanmodule
before ehci is loaded.
releasing 1.0.6...
dmesg | grep "ehci"
might also do it.
we need to remaster the CD with a code modification that does detect the
ehci.
I'm puzzled though, scanmodule is supposed to identify that chipset then
load the ehci driver. I don't know why the chip is unavailable to scanmodule
before ehci is loaded.
- ChechenPuppy
- Posts: 19
- Joined: Tue 16 May 2006, 01:47
BarryK wrote:Guys,
the capability is there in Puppy, it is up to you to provide information.
Look at:
/lib/libhardware/usb.db
You need to provide chip numbers and what module is required.
You can get the chip numbers from "Control panel -> Hardware probe".
May the proper additions to this file also help to enable booting from the external USB CDROM.
How can I find the "chip number" then?
- ChechenPuppy
- Posts: 19
- Joined: Tue 16 May 2006, 01:47
Re: Speed up USB-Harddisks
It's interesting. Would you please tell how fast it is now, and how many rpm-s has your external disk?MU wrote:
modprobe ehci-hcd
and *whoooosch* it is fast as hell
-
- Posts: 10
- Joined: Mon 03 Jul 2006, 14:55
- Location: Netherlands
Re: Speed up USB-Harddisks
Thanks Mark, very good idea, I'll look for cheap pcmcia-usb2.0. Hans
[As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).
ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz
Ah great, right what I need: modprobe ehci-hcd and *whoooosch* it is fast as hell You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0 Mark]
[As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).
ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz
Ah great, right what I need: modprobe ehci-hcd and *whoooosch* it is fast as hell You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0 Mark]
-
- Posts: 10
- Joined: Mon 03 Jul 2006, 14:55
- Location: Netherlands
Re: Speed up USB-Harddisks
[MU: As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).]
Funny, found the same one. It doesn't fit well in the pcmcia-slot, now it's OK. And the ehci-hcd-module does the job.
I looked for a filesystem-benchmark, found some source code, but I don't compile yet, tiny computer.
Anyone know where to download a nice fs-benchmark-dotpup?
Funny, found the same one. It doesn't fit well in the pcmcia-slot, now it's OK. And the ehci-hcd-module does the job.
I looked for a filesystem-benchmark, found some source code, but I don't compile yet, tiny computer.
Anyone know where to download a nice fs-benchmark-dotpup?
-
- Posts: 10
- Joined: Mon 03 Jul 2006, 14:55
- Location: Netherlands