From wkwu@AlgoWWW.csie.NCTU.edu.tw  Sat Nov 11 07:10:11 2000
Return-Path: <wkwu@AlgoWWW.csie.NCTU.edu.tw>
Received: from AlgoWWW.csie.NCTU.edu.tw (algowww.csie.nctu.edu.tw [140.113.214.152])
	by hub.freebsd.org (Postfix) with ESMTP id 8E20C37B479
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Nov 2000 07:10:07 -0800 (PST)
Received: (from wkwu@localhost)
	by AlgoWWW.csie.NCTU.edu.tw (8.11.1/8.9.3) id eABFA0U01957;
	Sat, 11 Nov 2000 23:10:00 +0800 (CST)
	(envelope-from wkwu)
Message-Id: <200011111510.eABFA0U01957@AlgoWWW.csie.NCTU.edu.tw>
Date: Sat, 11 Nov 2000 23:10:00 +0800 (CST)
From: wkwu@csie.nctu.edu.tw
Sender: wkwu@AlgoWWW.csie.NCTU.edu.tw
Reply-To: wkwu@csie.nctu.edu.tw
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fxp get slow often!
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         22768
>Category:       kern
>Synopsis:       fxp get slow often!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 11 07:20:00 PST 2000
>Closed-Date:    Tue Mar 13 20:01:22 PST 2001
>Last-Modified:  Tue Mar 13 20:01:50 PST 2001
>Originator:     Wei-Kai Wu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Kavalan
>Environment:
System: FreeBSD AlgoWWW.csie.NCTU.edu.tw 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Nov 8 13:49:13 CST 2000 root@Omega.csie.NCTU.edu.tw:/usr/src/sys/compile/AlgoWWW i386
fxp0: <Intel Pro 10/100B/100+ Ethernet>
wu-ftpd-2.6.1
Intel 8-port 10/100 Switch

>Description:
This is a heavy traffic ftp server.
I use fxp0(intel-82559) connected to the intel 8-port switch.
The speed of ftpd often getting slow.(From 5MB/sec down to 10KB/sec)
So that I create a crontab of root:

ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media 100BaseTX
sleep 1
ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media autoselect

running 2 times every hour to keep the speed of ftpd.
>How-To-Repeat:

>Fix:

How can I help you debug?

>Release-Note:
>Audit-Trail:

From: David Greenman <dg@root.com>
To: wkwu@csie.nctu.edu.tw
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/22768: fxp get slow often! 
Date: Sat, 11 Nov 2000 07:36:52 -0800

 >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media 100BaseTX
 >sleep 1
 >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media autoselect
 >
 >running 2 times every hour to keep the speed of ftpd.
 
    I have no idea what you are trying to accomplish with the above, but it is
 weird in the extreme. The problem that you are describing sounds like a duplex
 negotiation problem with your switch. Try setting both sides to full duplex.
 For the FreeBSD side remove your cronjob and then:
 
 ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media 100basetx mediaopt full-duplex
 
    You'll also need to modify your /etc/rc.conf as well with the new
 media/mediaopt so that it is set correctly after a reboot.
    You'll have to consult your switch manual for how to configure it for
 full duplex.
 
 -DG
 
 David Greenman
 Co-founder, The FreeBSD Project - http://www.freebsd.org
 President, TeraSolutions, Inc. - http://www.terasolutions.com
 Pave the road of life with opportunities.
 

From: Wei-Kai Wu <wkwu@csie.nctu.edu.tw>
To: David Greenman <dg@root.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/22768: fxp get slow often!
Date: Mon, 13 Nov 2000 10:29:12 +0800

 On Sat, Nov 11, 2000 at 07:36:52AM -0800, David Greenman wrote:
 > >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media 100BaseTX
 > >sleep 1
 > >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media autoselect
 > >running 2 times every hour to keep the speed of ftpd.
 >    I have no idea what you are trying to accomplish with the above, but it is
 > weird in the extreme. The problem that you are describing sounds like a duplex
 > negotiation problem with your switch. Try setting both sides to full duplex.
 > For the FreeBSD side remove your cronjob and then:
 > ifconfig .... media 100basetx mediaopt full-duplex
 
 I am quite sure that the Intel 8-port 10/100 Switch work well.
 I also tried your suggestion, still not work.
 
 In fact, I used the dc0 network card before. 
 I thought the problem may cause by dc0, so I buy the fxp0.
 
 Is there any other possibilities?
 

From: David Greenman <dg@root.com>
To: Wei-Kai Wu <wkwu@csie.nctu.edu.tw>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/22768: fxp get slow often! 
Date: Sun, 12 Nov 2000 22:10:51 -0800

 >On Sat, Nov 11, 2000 at 07:36:52AM -0800, David Greenman wrote:
 >> >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media 100BaseTX
 >> >sleep 1
 >> >ifconfig fxp0 140.113.214.152 netmask 0xffffff00 media autoselect
 >> >running 2 times every hour to keep the speed of ftpd.
 >>    I have no idea what you are trying to accomplish with the above, but it is
 >> weird in the extreme. The problem that you are describing sounds like a duplex
 >> negotiation problem with your switch. Try setting both sides to full duplex.
 >> For the FreeBSD side remove your cronjob and then:
 >> ifconfig .... media 100basetx mediaopt full-duplex
 >
 >I am quite sure that the Intel 8-port 10/100 Switch work well.
 >I also tried your suggestion, still not work.
 >
 >In fact, I used the dc0 network card before. 
 >I thought the problem may cause by dc0, so I buy the fxp0.
 >
 >Is there any other possibilities?
 
    So you're having the same problem with 'tulip' clones (dc device)? Have you
 tried using a different cable? Does the Intel switch have any error stats that
 might give a clue why the performance is bad? What does "ifconfig fxp0" show
 (speed/duplex) when the performance is low?
 
 -DG
 
 David Greenman
 Co-founder, The FreeBSD Project - http://www.freebsd.org
 President, TeraSolutions, Inc. - http://www.terasolutions.com
 Pave the road of life with opportunities.
 
State-Changed-From-To: open->closed 
State-Changed-By: jlemon 
State-Changed-When: Tue Mar 13 20:01:22 PST 2001 
State-Changed-Why:  
Feedback timeout.  Most likely a duplex problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22768 
>Unformatted:
