From nobody@FreeBSD.org  Sat Sep 18 09:24:55 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7FB3916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Sep 2004 09:24:55 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7279143D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Sep 2004 09:24:55 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8I9Otts040903
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 18 Sep 2004 09:24:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8I9Ospb040889;
	Sat, 18 Sep 2004 09:24:54 GMT
	(envelope-from nobody)
Message-Id: <200409180924.i8I9Ospb040889@www.freebsd.org>
Date: Sat, 18 Sep 2004 09:24:54 GMT
From: Rudi Mathijssen <r.mathijssen@iris-ict.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: network interface sk extremely slow
X-Send-Pr-Version: www-2.3

>Number:         71858
>Category:       kern
>Synopsis:       network interface sk extremely slow [5.3-BETA4]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 18 09:30:23 GMT 2004
>Closed-Date:    Mon Dec 27 11:10:27 GMT 2004
>Last-Modified:  Mon Dec 27 11:10:27 GMT 2004
>Originator:     Rudi Mathijssen
>Release:        5.3-BETA4
>Organization:
>Environment:
FreeBSD gompie.rudi.local 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Sat Sep 11 13:37:27 UTC 2004     root@wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Since 5.3, permance of the sk0 interface is <1Mbit/s and often locks up completely: 
Lines from dmesg:
skc0: <Marvell Gigabit Ethernet> port 0xa800-0xa8ff mem 0xeb000000-0xeb003fff irq 20 at device 9.0 on pci2
skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:0d:61:62:56:73
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto

When the NIC locks up, it requires kill -9 to stop the application, no messages in in dmesg appear. Sometimes the NIC locks up completes until it is power cycled.

FreeBSD 5.2.1-RELEASE on the same machine has no problems in this area,
network throughput as high as 37MByte/s is observed (bottleneck is not the NIC but the 2.0GHz celeron cpu of the server).
>How-To-Repeat:
The problem machine is gompie, the server humpie runs FreeBSD 4.10-RELEASE 

rudi@gompie> rsh humpie dd if=/dev/zero bs=16k count=1000 | dd of=/dev/zero obs=16k

The command never completes. With count=10 it sometimes does.

>Fix:
      
>Release-Note:
>Audit-Trail:

From: Arjan de Vet <devet@devet.org>
To: freebsd-gnats-submit@FreeBSD.org, r.mathijssen@iris-ict.nl
Cc:  
Subject: Re: kern/71858: network interface sk extremely slow [5.3-BETA4]
Date: Sat, 23 Oct 2004 14:30:14 +0200

 I had similar problems with an sk0 interface, have a look at kern/73038
 in which I propose a patch that solved the problem for me.
 
 Arjan
 
 -- 
 Arjan de Vet, Eindhoven, The Netherlands               <devet@devet.org>
 URL : http://www.devet.org/                     <Arjan.deVet@adv.iae.nl>
 Work: http://www.madison-gurkha.com/  (Security, Open Source, Education)
State-Changed-From-To: open->feedback 
State-Changed-By: bz 
State-Changed-When: Sat Nov 20 12:54:55 GMT 2004 
State-Changed-Why:  
Patches have been committed to HEAD which should help. 
Please let us know if the problem persists? 

If you are running 5.3/newer RELENG_5 simply copying over 
if_sk.c (r1.92) and if_skreg.h (r1.24) from HEAD to 
your local tree should be fine for testing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71858 
Responsible-Changed-From-To: freebsd-bugs->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Nov 20 12:59:18 GMT 2004 
Responsible-Changed-Why:  
mine... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71858 

From: "Rudi Mathijssen" <R.Mathijssen@iris-ict.nl>
To: "'freebsd-gnats-submit@FreeBSD.org'" <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/71858: network interface sk extremely slow [5.3-BETA4]
Date: Sun, 28 Nov 2004 18:21:14 +0100

 This message is in MIME format. Since your mail reader does not understand
 this format, some or all of this message may not be legible.
 
 ------_=_NextPart_001_01C4D56E.A994A1D6
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Changed CPU from HTT pentium4-2.8 to celeron 2.4. Now problems now. Makes
 you begin to wonder if this is a SMP issue.
 
 
 ------_=_NextPart_001_01C4D56E.A994A1D6
 Content-Type: text/html
 Content-Transfer-Encoding: 7bit
 
 <html>
 
 <head>
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
 
 
 <meta name=Generator content="Microsoft Word 11 (filtered)">
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{margin:0cm;
 	margin-bottom:.0001pt;
 	font-size:12.0pt;
 	font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;}
 span.E-mailStijl17
 	{font-family:Arial;
 	color:windowtext;}
 @page Section1
 	{size:612.0pt 792.0pt;
 	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 
 </head>
 
 <body lang=NL link=blue vlink=purple>
 
 <div class=Section1>
 
 <p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
 10.0pt;font-family:Arial'>Changed CPU from HTT pentium4-2.8 to celeron 2.4. Now
 problems now. Makes you begin to wonder if this is a SMP issue.</span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------_=_NextPart_001_01C4D56E.A994A1D6--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: bz 
State-Changed-When: Mon Dec 27 11:07:18 GMT 2004 
State-Changed-Why:  
Closed in consultation with submitter. Patches comitted cannot 
be tested at the moment. 

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