Hello Linux-usb-users,

I am experiencing a ridiculous network slowdown when connecting an external HDD.
When I say "connecting", I mean it: Just loading ehci-hcd and attaching the 
disk.
Read/write performance of the so attached disk isn't very fast, but would be
sufficient for my purposes: about 4MB/s. I don't know what to expect from my
old [EMAIL PROTECTED] anyway. However, as I want to use the disc over the 
network,
the network slowdown really hurts. Transfer rates of the network-mounted drive
drop to as low as 190K/s (nfs or SAMBA, doesn't matter).

I'm using a VT6212 PCI add-on card with two USB ports in a VIA based mainboard.
The kernel version is (now) 2.6.21.1 and was 2.4.34.4 before. With 2.4.34.4
the slowdown was even worse.

Below, there's some information included about the slow down and the system
configuration.

Any idea about how to fix that slowdown?

Doing "modprobe ehci-hcd":
Apr 29 09:04:17 ernie kernel: usbcore: registered new interface driver usbfs
Apr 29 09:04:17 ernie kernel: usbcore: registered new interface driver hub
Apr 29 09:04:17 ernie kernel: usbcore: registered new device driver usb
Apr 29 09:04:17 ernie kernel: PCI: Found IRQ 3 for device 0000:00:13.2
Apr 29 09:04:17 ernie kernel: PCI: Sharing IRQ 3 with 0000:00:11.0
Apr 29 09:04:17 ernie kernel: ehci_hcd 0000:00:13.2: EHCI Host Controller
Apr 29 09:04:17 ernie kernel: ehci_hcd 0000:00:13.2: new USB bus registered, 
assigned bus number 1
Apr 29 09:04:17 ernie kernel: ehci_hcd 0000:00:13.2: irq 3, io mem 0xea001000
Apr 29 09:04:17 ernie kernel: ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 
1.00, driver 10 Dec 2004
Apr 29 09:04:17 ernie kernel: usb usb1: configuration #1 chosen from 1 choice
Apr 29 09:04:17 ernie kernel: hub 1-0:1.0: USB hub found
Apr 29 09:04:17 ernie kernel: hub 1-0:1.0: 4 ports detected

(device 0000:00:11.0 is a S3 Trio64V+ VGA)

After this point, everything is still o.k., network is as fast as always.

Now plugging in the external disk:
Apr 29 09:04:56 ernie kernel: usb 1-1: new high speed USB device using ehci_hcd 
and address 2
Apr 29 09:04:56 ernie kernel: usb 1-1: configuration #1 chosen from 1 choice

>From this moment on, the whole networking slows down. See, for example, the
results of some pings. You can easily spot the point where I connected the disk:

(8139too: local ethernet)
64 bytes from 192.168.0.1: icmp_seq=15 ttl=128 time=0.711 ms
64 bytes from 192.168.0.1: icmp_seq=16 ttl=128 time=0.739 ms
64 bytes from 192.168.0.1: icmp_seq=17 ttl=128 time=0.713 ms
64 bytes from 192.168.0.1: icmp_seq=18 ttl=128 time=0.711 ms
64 bytes from 192.168.0.1: icmp_seq=19 ttl=128 time=0.730 ms
64 bytes from 192.168.0.1: icmp_seq=20 ttl=128 time=0.727 ms
64 bytes from 192.168.0.1: icmp_seq=21 ttl=128 time=2.458 ms <-- in case you 
didn't notice
64 bytes from 192.168.0.1: icmp_seq=22 ttl=128 time=2.424 ms
64 bytes from 192.168.0.1: icmp_seq=23 ttl=128 time=2.453 ms
64 bytes from 192.168.0.1: icmp_seq=24 ttl=128 time=2.586 ms
(with kernel 2.34.4 I got about 8ms instead)

(other device davicom dm9102 doing pppoe)
64 bytes from 213.239.215.114: icmp_seq=18 ttl=57 time=16.106 ms
64 bytes from 213.239.215.114: icmp_seq=19 ttl=57 time=16.553 ms
64 bytes from 213.239.215.114: icmp_seq=20 ttl=57 time=16.295 ms
64 bytes from 213.239.215.114: icmp_seq=21 ttl=57 time=24.931 ms <-- here
64 bytes from 213.239.215.114: icmp_seq=22 ttl=57 time=25.726 ms
64 bytes from 213.239.215.114: icmp_seq=23 ttl=57 time=24.731 ms
64 bytes from 213.239.215.114: icmp_seq=24 ttl=57 time=26.111 ms

The slowdown continues as long as ehci-hcd remains loaded. Simply unplugging
the disc is not sufficient:

(/var/log/messages)
Apr 29 09:27:16 ernie kernel: usb 1-1: USB disconnect, address 2

(ping)
64 bytes from 192.168.0.1: icmp_seq=38 ttl=128 time=2.634 ms
64 bytes from 192.168.0.1: icmp_seq=39 ttl=128 time=2.718 ms
64 bytes from 192.168.0.1: icmp_seq=40 ttl=128 time=2.986 ms <-- disk unplugged
64 bytes from 192.168.0.1: icmp_seq=41 ttl=128 time=2.785 ms
64 bytes from 192.168.0.1: icmp_seq=42 ttl=128 time=2.652 ms

[...]
(/var/log/messages)
Apr 29 09:29:40 ernie kernel: ehci_hcd 0000:00:13.2: remove, state 1
Apr 29 09:29:40 ernie kernel: usb usb1: USB disconnect, address 1
Apr 29 09:29:40 ernie kernel: ehci_hcd 0000:00:13.2: USB bus 1 deregistered
(ping)
64 bytes from 192.168.0.1: icmp_seq=48 ttl=128 time=2.716 ms
64 bytes from 192.168.0.1: icmp_seq=49 ttl=128 time=2.662 ms
64 bytes from 192.168.0.1: icmp_seq=50 ttl=128 time=0.747 ms <-- ehci-hcd 
unloaded
64 bytes from 192.168.0.1: icmp_seq=51 ttl=128 time=0.773 ms
64 bytes from 192.168.0.1: icmp_seq=52 ttl=128 time=0.693 ms


It doesn't look like an interrupt sharing problem:
           CPU0
  0:     914610    XT-PIC-XT        timer
  1:       1180    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  3:     908885    XT-PIC-XT        ehci_hcd:usb1
  6:          3    XT-PIC-XT        floppy
  7:     125054    XT-PIC-XT        eth0            <-- 8139too
  8:          1    XT-PIC-XT        rtc
 11:          3    XT-PIC-XT        HiSax
 12:      16453    XT-PIC-XT        eth1            <-- dm9102
 14:      26973    XT-PIC-XT        ide0
 15:        264    XT-PIC-XT        ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0

I can't interpret the following, but some of you might:

/proc/bus/usb/devices:
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 4
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.21.1 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:13.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1058 ProdID=0900 Rev= 0.00
S:  Manufacturer=Western Digital
S:  Product=External HDD
S:  SerialNumber=<the serial number>
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms


-- 
                   D i r k   F "o r s t e r l i n g
                   [EMAIL PROTECTED]  http://r.zorbla.de/
                            -------------
   "Haaaaaaa!!!" - Christopher Walken as The Hessian Horseman

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to