From nobody@FreeBSD.org  Mon Dec 20 14:25:31 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0E3EE106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Dec 2010 14:25:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id F1A258FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Dec 2010 14:25:30 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBKEPTKd067412
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Dec 2010 14:25:29 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oBKEPTdE067411;
	Mon, 20 Dec 2010 14:25:29 GMT
	(envelope-from nobody)
Message-Id: <201012201425.oBKEPTdE067411@red.freebsd.org>
Date: Mon, 20 Dec 2010 14:25:29 GMT
From: Yusuf Ozbilgin <yusuf@gunes.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: em interface use 100% cpu
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153308
>Category:       kern
>Synopsis:       [em] em interface use 100% cpu
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 20 14:30:11 UTC 2010
>Closed-Date:    
>Last-Modified:  Wed Dec 22 15:00:27 UTC 2010
>Originator:     Yusuf Ozbilgin
>Release:        Freebsd 7.3
>Organization:
Gunes Bilg. A.S
>Environment:
FreeBSD firewall.test.local 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Wed Sep 22 17:41:32 EEST 2010     root@firewall.test.local:/usr/obj/usr/src/sys/GATEWAY-FW  i386
>Description:
After installing freebsd as a gateway, natd use 100% cpu without any network load, I am using em interfaces. I updated kernel and recompiled but nothing changed.



em0@pci0:1:0:0: class=0x020000 card=0x00008086 chip=0x10d38086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
    cap 01[c8] = powerspec 2  supports D0 D3  current D0
    cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1)
    cap 11[a0] = MSI-X supports 5 messages in map 0x1c

top

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 1592 root          1 112    0  3348K  1316K RUN     0   0:38 85.09% natd
 1899 postfix       1   4    0 24600K 21336K kqread  0   0:06  0.00% qmgr
 1762 root          1  44    0 39132K 36772K select  0   0:03  0.00% perl



>How-To-Repeat:
Always
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Dec 20 15:20:39 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Jack Vogel <jfvogel@gmail.com>
To: Yusuf Ozbilgin <yusuf@gunes.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/153308: em interface use 100% cpu
Date: Mon, 20 Dec 2010 12:09:43 -0800

 --20cf305644b1d0fc980497dd19d4
 Content-Type: text/plain; charset=ISO-8859-1
 
 So, use current code, this is ancient, its actually a 82575 which is now
 supported
 by the igb driver rather than em. Try the prerelease code for 8.2 or 7.4.
 
 Should also point out that the bug is mistitled, natd uses 100%, it does not
 follow its em, although that might be a likely suspect, it could be an
 internal
 natd bug too afterall...
 
 Jack
 
 
 On Mon, Dec 20, 2010 at 6:25 AM, Yusuf Ozbilgin <yusuf@gunes.net> wrote:
 
 >
 > >Number:         153308
 > >Category:       misc
 > >Synopsis:       em interface use 100% cpu
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       high
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Mon Dec 20 14:30:11 UTC 2010
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Yusuf Ozbilgin
 > >Release:        Freebsd 7.3
 > >Organization:
 > Gunes Bilg. A.S
 > >Environment:
 > FreeBSD firewall.test.local 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Wed
 > Sep 22 17:41:32 EEST 2010     root@firewall.test.local:/usr/obj/usr/src/sys/GATEWAY-FW
 >  i386
 > >Description:
 > After installing freebsd as a gateway, natd use 100% cpu without any
 > network load, I am using em interfaces. I updated kernel and recompiled but
 > nothing changed.
 >
 >
 >
 > em0@pci0:1:0:0: class=0x020000 card=0x00008086 chip=0x10d38086 rev=0x00
 > hdr=0x00
 >    vendor     = 'Intel Corporation'
 >    class      = network
 >    subclass   = ethernet
 >    cap 01[c8] = powerspec 2  supports D0 D3  current D0
 >    cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
 >    cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1)
 >    cap 11[a0] = MSI-X supports 5 messages in map 0x1c
 >
 > top
 >
 >  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 >  1592 root          1 112    0  3348K  1316K RUN     0   0:38 85.09% natd
 >  1899 postfix       1   4    0 24600K 21336K kqread  0   0:06  0.00% qmgr
 >  1762 root          1  44    0 39132K 36772K select  0   0:03  0.00% perl
 >
 >
 >
 > >How-To-Repeat:
 > Always
 > >Fix:
 >
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > _______________________________________________
 > freebsd-bugs@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 >
 
 --20cf305644b1d0fc980497dd19d4
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 So, use current code, this is ancient, its actually a 82575 which is now su=
 pported<br>by the igb driver rather than em. Try the prerelease code for 8.=
 2 or 7.4.<br><br>Should also point out that the bug is mistitled, natd uses=
  100%, it does not<br>
 follow its em, although that might be a likely suspect, it could be an inte=
 rnal<br>natd bug too afterall...<br><br>Jack<br><br><br><div class=3D"gmail=
 _quote">On Mon, Dec 20, 2010 at 6:25 AM, Yusuf Ozbilgin <span dir=3D"ltr">&=
 lt;<a href=3D"mailto:yusuf@gunes.net">yusuf@gunes.net</a>&gt;</span> wrote:=
 <br>
 <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
 r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
 &gt;Number: =A0 =A0 =A0 =A0 153308<br>
 &gt;Category: =A0 =A0 =A0 misc<br>
 &gt;Synopsis: =A0 =A0 =A0 em interface use 100% cpu<br>
 &gt;Confidential: =A0 no<br>
 &gt;Severity: =A0 =A0 =A0 serious<br>
 &gt;Priority: =A0 =A0 =A0 high<br>
 &gt;Responsible: =A0 =A0freebsd-bugs<br>
 &gt;State: =A0 =A0 =A0 =A0 =A0open<br>
 &gt;Quarter:<br>
 &gt;Keywords:<br>
 &gt;Date-Required:<br>
 &gt;Class: =A0 =A0 =A0 =A0 =A0sw-bug<br>
 &gt;Submitter-Id: =A0 current-users<br>
 &gt;Arrival-Date: =A0 Mon Dec 20 14:30:11 UTC 2010<br>
 &gt;Closed-Date:<br>
 &gt;Last-Modified:<br>
 &gt;Originator: =A0 =A0 Yusuf Ozbilgin<br>
 &gt;Release: =A0 =A0 =A0 =A0Freebsd 7.3<br>
 &gt;Organization:<br>
 Gunes Bilg. A.S<br>
 &gt;Environment:<br>
 FreeBSD firewall.test.local 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Wed S=
 ep 22 17:41:32 EEST 2010 =A0 =A0 root@firewall.test.local:/usr/obj/usr/src/=
 sys/GATEWAY-FW =A0i386<br>
 &gt;Description:<br>
 After installing freebsd as a gateway, natd use 100% cpu without any networ=
 k load, I am using em interfaces. I updated kernel and recompiled but nothi=
 ng changed.<br>
 <br>
 <br>
 <br>
 em0@pci0:1:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x10d38086 rev=3D=
 0x00 hdr=3D0x00<br>
  =A0 =A0vendor =A0 =A0 =3D &#39;Intel Corporation&#39;<br>
  =A0 =A0class =A0 =A0 =A0=3D network<br>
  =A0 =A0subclass =A0 =3D ethernet<br>
  =A0 =A0cap 01[c8] =3D powerspec 2 =A0supports D0 D3 =A0current D0<br>
  =A0 =A0cap 05[d0] =3D MSI supports 1 message, 64 bit enabled with 1 messag=
 e<br>
  =A0 =A0cap 10[e0] =3D PCI-Express 1 endpoint max data 128(256) link x1(x1)=
 <br>
  =A0 =A0cap 11[a0] =3D MSI-X supports 5 messages in map 0x1c<br>
 <br>
 top<br>
 <br>
  =A0PID USERNAME =A0 =A0THR PRI NICE =A0 SIZE =A0 =A0RES STATE =A0 C =A0 TI=
 ME =A0 WCPU COMMAND<br>
 =A01592 root =A0 =A0 =A0 =A0 =A01 112 =A0 =A00 =A03348K =A01316K RUN =A0 =
 =A0 0 =A0 0:38 85.09% natd<br>
 =A01899 postfix =A0 =A0 =A0 1 =A0 4 =A0 =A00 24600K 21336K kqread =A00 =A0 =
 0:06 =A00.00% qmgr<br>
 =A01762 root =A0 =A0 =A0 =A0 =A01 =A044 =A0 =A00 39132K 36772K select =A00 =
 =A0 0:03 =A00.00% perl<br>
 <br>
 <br>
 <br>
 &gt;How-To-Repeat:<br>
 Always<br>
 &gt;Fix:<br>
 <br>
 <br>
 &gt;Release-Note:<br>
 &gt;Audit-Trail:<br>
 &gt;Unformatted:<br>
 _______________________________________________<br>
 <a href=3D"mailto:freebsd-bugs@freebsd.org">freebsd-bugs@freebsd.org</a> ma=
 iling list<br>
 <a href=3D"http://lists.freebsd.org/mailman/listinfo/freebsd-bugs" target=
 =3D"_blank">http://lists.freebsd.org/mailman/listinfo/freebsd-bugs</a><br>
 To unsubscribe, send any mail to &quot;<a href=3D"mailto:freebsd-bugs-unsub=
 scribe@freebsd.org">freebsd-bugs-unsubscribe@freebsd.org</a>&quot;<br>
 </blockquote></div><br>
 
 --20cf305644b1d0fc980497dd19d4--

From: Gleb Smirnoff <glebius@FreeBSD.org>
To: Yusuf Ozbilgin <yusuf@gunes.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/153308: em interface use 100% cpu
Date: Wed, 22 Dec 2010 17:31:12 +0300

 On Mon, Dec 20, 2010 at 02:25:29PM +0000, Yusuf Ozbilgin wrote:
 Y> >Synopsis:       em interface use 100% cpu
 ...
 Y> em0@pci0:1:0:0: class=0x020000 card=0x00008086 chip=0x10d38086 rev=0x00 hdr=0x00
 Y>     vendor     = 'Intel Corporation'
 Y>     class      = network
 Y>     subclass   = ethernet
 Y>     cap 01[c8] = powerspec 2  supports D0 D3  current D0
 Y>     cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
 Y>     cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1)
 Y>     cap 11[a0] = MSI-X supports 5 messages in map 0x1c
 Y> 
 Y> top
 Y> 
 Y>   PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 Y>  1592 root          1 112    0  3348K  1316K RUN     0   0:38 85.09% natd
 Y>  1899 postfix       1   4    0 24600K 21336K kqread  0   0:06  0.00% qmgr
 Y>  1762 root          1  44    0 39132K 36772K select  0   0:03  0.00% perl
 
 This doesn't seem related to em(4). Do you mind if I change synopsis of PR
 to "natd consumes 100% CPU"?
 
 Have you tried same setup on 8-STABLE?
 
 -- 
 Totus tuus, Glebius.
>Unformatted:
