Bug 23192

Summary: FTP REALLY slow on internal NIC aswel (12kb/s)
Product: Base System Reporter: oliver <oliver>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description oliver 2000-11-30 13:40:00 UTC
Hi, I got a major problem with my ftp (and possible other) connections. I have two 10Mbit 3com NIC's One for internet usage (tp full duplex hooked up to a full duplex switch) and a BNC internal NIC. Now the problem is that sometimes, the download speed drops below 15 kb/s i only got one box internally so it's not because the lan is so busy. Further on the outside world the same happends. most of the time i can download (even when the internal connection is down to 15kb/s) at full speed (about 800kb/s) but sometimes the connection outside aswell drops way below 40 kb/s (havent' heard of 12kb/s so far.
I stepped over from linux somewhere this week where everything was running just fine. Since i started using BSD this happend. : /
And i really don't wanna give up on BSD just yet, but if this contiunue's .. then i'll be going back to slackware again ...
thanks in advance
oliver.

How-To-Repeat: connect with windows or linux ftp (linux ftp was faster though)
Comment 1 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-17 18:49:02 UTC
State Changed
From-To: open->feedback

Is this still a problem for more recent versions of FreeBSD? 
If so, can you provide more details about your configuration?
Comment 2 tburns 2001-11-22 06:26:36 UTC
I have the same problem; Installed FreeBSD4.4-RELEASE just a couple
of weeks ago, and the network speed is a dud (got 1MBps from Linux,
get ~10kBps from FreeBSD).  WindowsXP clients generally get a
disconnect after the first 4k of a file.  Win98SE gets the file, but
~10kBps.  This also appears to affect HTTP; WinXP client got ~10kBps
from FreeBSD4.4-RELEASE running Apache.

FreeBSD4.4-RELEASE, compiled from 4.4-RELEASE source
AOpen 10/100bT ethernet (r8139)
5-port 10bT hub
AMD K6/2-350
256 MB RAM
6.8 GB HD
FIC VA-503+ mobo

Taavi Burns
/*eof*/
Comment 3 kmuthu 2001-11-26 04:48:27 UTC
Hi  there,

    I am submitting a follow up for this problem since I too faced this
problem. I was running FreeBSD 4.3 when I first observed this problem.
Thinking that this could be a problem with 4.3, I upgraded to 4.4 but it
was of no use.

    I have two more OS's on the same machine and I get a transfer rate
of 700-800 KB/s in an ftp transfer (all to the same machine) anytime I
start the transfer. With FreeBSD it was very very poor (12-15 KB/s and
it was slightly better [150KB/s ] when I 'put' the file). Needless to
say, I was disappointed since I was running FreeBSD for a long time.

    I am happy now. Guess what? This seems to be a problem with the LAN
driver or its interaction with TCP/IP.  My NIC was Realtek RTL 8139A.
Since I wanted to submit a PR, I tested with different machines & NICs
to give enough details.  When I changed my NIC to  COMPEX  RL100 ATX,
the problem went away.

    I don't think there is any problem with the NIC itself since the
transfer rate was very good in win98 & linux on the same machine.
Looking at Taavi Burns's config (r8139),  I can say that my guess is
correct.

Taavi:
    Can you try replacing the NIC & see?

FreeBSD development team:
    Can the problem associated with the rl dirver be fixed asap?

Thanks,
Muthu
Comment 4 Borja Fernandez 2002-03-15 17:29:24 UTC
 I´m have this problem with two cards, rl and xl chipsets.

cya
Comment 5 Chris Knight 2002-06-19 11:11:42 UTC
Howdy,

The most common cause of this problem is incorrect duplex setting.
It is worth using ifconfig to find out the current duplex setting
of the card, then use ifconfig to change the duplex setting.
You may need to look at the man page for the driver you are using
as not all drivers use the same method for changing the duplex.
Also, numerous network performance issues were resolved as of 4.5.
It may be worth upgrading to 4.5 or 4.6 to see if the problem goes
away.

Regards,
Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795
Web: http://www.aims.com.au
Comment 6 yrrat209 2002-08-04 11:48:48 UTC
Greetings,

Thanks for all the notes on this.  My problem was the same, terribly slow 
performance (12-15 Kb/s) on everything from mput's to Windows file transfer 
operations.  The card in my FreeBSD server is a generic utp-only thing with 
a Realtek 8029 chipset.  After reading your notes I changed rc.conf by 
adding "media 10baseT/UTP" to specify what seemed obvious, since there is 
only one physical connector.  (The default for the rl driver is apparently 
AutoSelect)  Now I am flying around between my FreeBSD server and all the 
Windows clients at speeds of 750-900 Kb/s)

I am a bit new to the Unix world and I appreciate all the help!

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Comment 7 druid 2002-10-03 06:17:26 UTC
Gene,

I've been having the same problem as described above--very, very slow response between two systems on the local network running through a 10/100M NIC system.  Particularly with trying to integrate a FreeBSD box and a WindowsXP machine.  After trying adding "media 10baseT/UTP" to ifconfig, all is well.  This seems to have fixed the slow response on the "rl" NICs.

Rodger Castle
Comment 8 Tom Rhodes freebsd_committer freebsd_triage 2002-12-23 17:40:24 UTC
State Changed
From-To: feedback->closed

Several people have offered opinions.  This PR no longer needs to remain open 
as we are several versions away && has sat in feedback for over a year.