This is a discussion on reading from a usb2 hd gets interupted within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Hi, I just bought a usb2.0 pci card. Looks like it's called uhub in dmesg and an external usb ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I just bought a usb2.0 pci card. Looks like it's called uhub in dmesg and an external usb hdcase in which you can insert normal ide HD's Then I put my 80 GB HD wd1 which always worked fine in the USB-drive so now it's sd0. And I put a new 160 GB HD in it's former place which is now wd1. I wanted to copy all data over to the new HD. After about 10 seconds of excelent speed copying the datatransfer got stuck for over 30 seconds. top showed the process got stuck in ``getblk'' Then I tried copying a large file to sd0 and that goes fine. Reading mp3's from it with xmms also goes fine. Reading a large file via nfs gives the same problematic behaviour. OpenBSD 3.6-current (GENERIC) #3: Fri Jan 28 21:54:42 MST 2005 pvalchev@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 412 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,MMX,FXSR real mem = 200908800 (196200K) avail mem = 176750592 (172608K) using 2478 buffers containing 10149888 bytes (9912K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(a3) BIOS, date 06/28/00, BIOS32 rev. 0 @ 0xfb380 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb808 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf00/144 (7 entries) pcibios0: PCI Exclusive IRQs: 10 11 12 pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc0000/0x8800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03 ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "Nvidia Riva TNT" rev 0x04 wsdisplay0 at vga1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02 pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <ST38410A> wd0: 32-sector PIO, LBA, 8223MB, 16841664 sectors wd1 at pciide0 channel 0 drive 1: <Maxtor 6Y160P0> wd1: 16-sector PIO, LBA48, 156334MB, 320173056 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 disabled (no drives) uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered "Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not configured re0 at pci0 dev 9 function 0 "Realtek 8169" rev 0x10: irq 10, address 00:08:a1:3c:34:79 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0 uhci1 at pci0 dev 11 function 0 "VIA VT83C572 USB" rev 0x50: irq 12 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 11 function 1 "VIA VT83C572 USB" rev 0x50: irq 10 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0 at pci0 dev 11 function 2 "VIA VT6202 USB" rev 0x51: irq 11 ehci0: EHCI version 0.95 ehci0: companion controllers, 2 ports each: uhci1 uhci2 usb3 at ehci0: USB revision 2.0 uhub3 at usb3 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 4 ports with 4 removable, self powered isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0 ne1: irq 10 already in use pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port 0x290/8: LM79 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 isapnp0 at isa0 port 0x279: read port 0x203 ne3 at isapnp0 "Plug & Play Ethernet Card, @@@1980, PNP80D6, " port 0x220/32 irq 5 ne3: NE2000 (RTL8019) Ethernet ne3: address 00:c0:26:18:00:02 biomask ff45 netmask ff65 ttymask ffe7 pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support umass0 at uhub3 port 1 configuration 1 interface 0 umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets sd0 at scsibus0 targ 1 lun 0: <Maxtor 6, Y080L0, 0 0> SCSI0 0/direct fixed sd0: 78167MB, 78167 cyl, 64 head, 32 sec, 512 bytes/sec, 160086528 sec total dkcsum: wd0 matched BIOS disk 80 dkcsum: wd1 matched BIOS disk 81 dkcsum: sd0 had no matching BIOS disk root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 After moving the usbdrive from the usb2 hub to the old usb1 hub I get the following additions in dmesg: umass0: at uhub3 port 1 (addr 2) disconnected sd0 detached scsibus0 detached umass0 detached umass0 at uhub0 port 2 configuration 1 interface 0 umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets sd0 at scsibus0 targ 1 lun 0: <Maxtor 6, Y080L0, 0 0> SCSI0 0/direct fixed sd0: 78167MB, 78167 cyl, 64 head, 32 sec, 512 bytes/sec, 160086528 sec total If I now copy data from The sd0 drive to the wd1 drive the transfer goes smooth, just very slow with 1mb/s. So to sum up; fast datareading with the usb hub doesn't go very well. Where to go from here? # Han |