From nobody@FreeBSD.org  Wed Sep 14 14:05:45 2005
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 CECD816A420
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Sep 2005 14:05:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5CC0B43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Sep 2005 14:05:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8EE5i7K092952
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Sep 2005 14:05:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j8EE5huZ092944;
	Wed, 14 Sep 2005 14:05:43 GMT
	(envelope-from nobody)
Message-Id: <200509141405.j8EE5huZ092944@www.freebsd.org>
Date: Wed, 14 Sep 2005 14:05:43 GMT
From: Hans Middelhoek <hans.middelhoek@odon.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dell 1850 pro/1000 slow
X-Send-Pr-Version: www-2.3

>Number:         86124
>Category:       kern
>Synopsis:       [em] dell 1850 pro/1000 slow (em problem? SMP problem?)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 14 14:10:07 GMT 2005
>Closed-Date:    Sun Mar 18 14:19:24 GMT 2007
>Last-Modified:  Sun Mar 18 14:19:24 GMT 2007
>Originator:     Hans Middelhoek
>Release:        5.4
>Organization:
Odon Internet
>Environment:
FreeBSD *****.odon.nl 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Tue Aug 30 14:02:28 CEST 2005     ***@*****.odon.nl:/usr/obj/usr/src/sys/ODON-SMP  i386
>Description:
A new installation of freebsd 5.4 or earlier works fine, no problem at all. But when we patch the kernel (p5 or p6, possibly also older patches), the problem occurs that the network interface card is getting slow.
Ping responses are very unstable:
64 bytes from ip.ad.dr.ess: icmp_seq=0 ttl=64 time=7.062 ms
64 bytes from ip.ad.dr.ess: icmp_seq=1 ttl=64 time=2.780 ms
64 bytes from ip.ad.dr.ess: icmp_seq=2 ttl=64 time=0.566 ms
64 bytes from ip.ad.dr.ess: icmp_seq=3 ttl=64 time=3.358 ms
64 bytes from ip.ad.dr.ess: icmp_seq=4 ttl=64 time=3.407 ms
64 bytes from ip.ad.dr.ess: icmp_seq=5 ttl=64 time=0.322 ms
64 bytes from ip.ad.dr.ess: icmp_seq=6 ttl=64 time=3.365 ms
64 bytes from ip.ad.dr.ess: icmp_seq=7 ttl=64 time=3.285 ms
64 bytes from ip.ad.dr.ess: icmp_seq=8 ttl=64 time=2.952 ms
This is in the local network.
Maximum download speed seen: 4519 kBps
Sometimes it's only 2000 kBps. Without the patches 11MBps is measured.

Part of /var/log/dmesg:
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 0xecc0-0xecff mem 0xdfae0000-0xdfafffff irq 64 at device 7.0 on pci6
em0: Ethernet address: 00:00:00:00:00:00
em0:  Speed:N/A  Duplex:N/A
......
em0: Link is up 100 Mbps Full Duplex

It are Dell 1850 dual XEON server. It's not happening on only one server, but on all of our Dell 1850's.

---------------------
At last, we also have Dell 750's, same controller (pro/1000) and em driver without having the same problem.
Information about that one:
uname -a:
FreeBSD hostname.odon.nl 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #1: Tue Aug 16 15:22:45 CEST 2005     *****@hostname.*****.nl:/usr/obj/usr/src/sys/KERNEL  i386

dmesg part:
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 0xece0-0xecff mem 0xfe2e0000-0xfe2fffff irq 18 at device 1.0 on pci1
em0: Ethernet address: 00:00:00:00:00:00
em0:  Speed:N/A  Duplex:N/A
em0: Link is up 100 Mbps Full Duplex
-------------------------
>How-To-Repeat:
I don't know. It occurs on a Dell 1850 with a Intel pro/1000 network interface card after patching the (default) kernel.
>Fix:
      
>Release-Note:
>Audit-Trail:
Adding to audit trail from misfiled PR kern/92596:

Date: Tue, 31 Jan 2006 10:44:57 +0000
From: "Thierry caillos" <thc2cat@hotmail.com>

 Hi,
 
 i've the same hardware (and same pbs)
 
 p1 drop em0 performances down
 
 files changed by p1 are :
 
 Edit src/UPDATING
   Add delta 1.342.2.24.2.10 2005.05.13.00.03.01 nectar
 Edit src/sys/amd64/amd64/mp_machdep.c
   Add delta 1.242.2.7.2.4 2005.05.13.00.12.56 nectar
 Edit src/sys/amd64/include/cpufunc.h
   Add delta 1.145.6.1 2005.05.13.00.12.56 nectar
 Checkout src/sys/conf/newvers.sh
 Edit src/sys/i386/i386/mp_machdep.c
   Add delta 1.235.2.6.2.3 2005.05.13.00.12.56 nectar
 Edit src/sys/i386/include/cpufunc.h
   Add delta 1.142.6.1 2005.05.13.00.12.57 nectar
 
 A ftp test show low perfs :
 
 62304152 bytes received in 00:22 (2.66 MB/s)
 ftp> bye
 221 Goodbye.
 
 $ uname -a
 FreeBSD ... 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #2: Tue Jan 31 11:13:05 
 CET 2006     root@...:/reste/obj/reste/src/sys/MYKERNEL  i386
 
 Will 5.5, 6.* correct this pb ?
 
 _________________________________________________________________
 10 Mo pour vos pices jointes avec MSN Hotmail ! 
 http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-fr

State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Fri Jan 26 22:02:02 UTC 2007 
State-Changed-Why:  
Hello can you tell me whether this problem had been resolved on freebsd 6.2? 
we have a shiny new em driver version there which could have resolved this 
thanks 


Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Jan 26 22:02:02 UTC 2007 
Responsible-Changed-Why:  
grab the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86124 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sun Mar 18 14:19:22 UTC 2007 
State-Changed-Why:  
As far as I can see there was no feedback for this, closing the Pr. If 
this is in error, please contact me! 

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