From owner-freebsd-stable Fri Jun 9 5: 7:49 2000 Delivered-To: freebsd-stable@freebsd.org Received: from d466.office.htslabs.com (adsl-63-202-243-139.dsl.sndg02.pacbell.net [63.202.243.139]) by hub.freebsd.org (Postfix) with ESMTP id 1AE8237B556 for ; Fri, 9 Jun 2000 05:07:26 -0700 (PDT) (envelope-from wfs@mciworld.com) Received: from mciworld.com (k6.office.htslabs.com [10.0.0.8]) by d466.office.htslabs.com (8.9.3/8.9.3) with ESMTP id FAA02603; Fri, 9 Jun 2000 05:06:01 GMT (envelope-from wfs@mciworld.com) Message-ID: <39407B04.F01CD3F0@mciworld.com> Date: Fri, 09 Jun 2000 05:05:08 +0000 From: William Schmidt X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.0-20000602-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Mike Nowlin Cc: "freebsd-stable@freebsd.org" Subject: Re: slow ftp References: Content-Type: multipart/mixed; boundary="------------D72FCE315429BBC76B3926FF" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------D72FCE315429BBC76B3926FF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mike Nowlin wrote: > > I have upgraded two systems to 4.0 stable and have found that the ftp to > > our local site and any site is slow the computers are connected to the > > local site through a 10 mb ethernet and under 3.4 downloaded at a rate > > of 700-800kbs. With 4.0 they load at 7kbs on the one system and about > > 70kbs on the other. I have tried both passive and active mode and > > disabled the inet6 in the kernel and got about the same rates. > > Furthermore, on the k6-400 system that uses a netgear fa310tx I get the > > following message repeated "dc0 failed to force tx and rx to idle > > state". The slowest machine is a dual celeron 533 system that uses a > > d-link 530xt and rl0 driver. Further investigation revealed that I > > could do an ftp put from a 4.0 box to a 3.x box at 700+kb and only get > > at 70kbs. I could also put from a 3.x box to a 4.0 box at 70kbs and > > get at 700kbs. Therfore, It seems that data into the 4.0 box is slow > > while data out seems fine. > > You only distinctly mentioned two machines - are they by chance connected > via a nulled ethernet cable? If not, what quality of hub/switch are they > connected to? > > Your 700-800kbps seems a little slow in the first place for 10Mb ethernet, > even using some of the cheapest cards on the market. I use primarily the > Netgear FA310TX and Intel fxp cards, and get much higher rates, even at > 10Mb-- 100Mb obviously goes a whole lot faster. > > This kind of problem is often caused by the auto-negotiation of speed & > duplex settings between the card & the "other end" - hub, switch, another > card, whatever. I've run into problems where the auto-neg results in > <1Kb/sec transfer rates - manually specifying the parameters fixed these > machines. A little more about your network setup and some sections of > your dmesg output would be helpful. > > --mike > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > Understated/funny man-page sentence of the current time period: > > >From route(4) on FreeBSD-3.4, DESCRIPTION section: > "FreeBSD provides some packet routing facilities." > ...duh....... > > Mike Nowlin, N8NVW mike@argos.org http://www.viewsnet.com Sorry about the vagueness of the network description. We use a 10 mb 10 port syslink hub for our office internal network which has some win 95 systems, some freebsd 3.x systems, the 2 freebsd 4.0 boxes I described above and a old pentium 60 with an smc eznet 10/100 and a kingston KNE40T cards running freebsd 3.2 is used as gateway to our dsl network. The dsl network has d-link 5 port 10/100 switch which has our pentium 120 http and ftp server running freebsd 3.3 , two x486 name servers and dsl modem . I know the transfer rates to the ftp server are a little slow and I think that is the p60 gateway, it just can't go any faster because rates between dual celeron and k6 before upgrading to 4.0 were about 1000kbs. Attached is the Dmesg if the k6-400 and the dual celeorn systems p60 and p120. I temporally changed the netgear card on the k6 to a d-link card and the ftp transfer rates dropped to about 7kbs like the dual with a d-link card. The D-link card don't seem to like 4.0. I do agree that is not the ftp program but the network card driver autoneg that is my problem. How do I manually fix the nic settings is it done in the kernel or do I change the driver source? In 3.4 dmesg the nic's autoneg is done and displayed but in 4.0 I don't see it. dual celeron 3.4 dmesg section: rl0: rev 0x10 int a irq 19 on pci0.17.0 rl0: Ethernet address: 00:50:ba:d8:ba:e2 rl0: autoneg complete, link status good (half-duplex, 10Mbps) dual celeron 4.0 dmesg section: rl0: port 0xd400-0xd4ff mem 0xeb000000-0xeb0000ff irq 19 at device 17.0 on pci0 rl0: Ethernet address: 00:50:ba:d8:ba:e2 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Can I use the 3.4 rl0 and pn0 drives in place of the 4.0? Bill --------------D72FCE315429BBC76B3926FF Content-Type: text/plain; charset=us-ascii; name="k6msg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="k6msg" Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-20000602-STABLE #1: Thu Jun 8 13:29:20 GMT 2000 root@k6.office.htslabs.com:/usr/src/sys/compile/k62 Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 400911782 Hz CPU: AMD-K6(tm) 3D processor (400.91-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf AMD Features=0x80000800 real memory = 67108864 (65536K bytes) avail memory = 62316544 (60856K bytes) Preloaded elf kernel "kernel" at 0xc02f3000. K6-family MTRR support enabled (2 registers) md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 pci1: at 0.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 10 pci0: at 7.3 irq 10 dc0: <82c169 PNIC 10/100BaseTX> port 0xec00-0xecff mem 0xe8000000-0xe80000ff irq 10 at device 11.0 on pci0 dc0: Ethernet address: 00:a0:cc:3b:7f:aa miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: supplying EUI64: 00:a0:cc:ff:fe:3b:7f:aa pcib1: on motherboard pci2: on pcib1 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 unknown0: