From nobody@FreeBSD.org  Tue May 13 02:48:46 2008
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 DE1C41065681
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 May 2008 02:48:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C9EE58FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 May 2008 02:48:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4D2lecO063033
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 May 2008 02:47:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4D2lewD063032;
	Tue, 13 May 2008 02:47:40 GMT
	(envelope-from nobody)
Message-Id: <200805130247.m4D2lewD063032@www.freebsd.org>
Date: Tue, 13 May 2008 02:47:40 GMT
From: cktan <cktan@ocesb.com.my>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Quagga - zebra high processing
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123621
>Category:       kern
>Synopsis:       Quagga - zebra high processing
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 13 02:50:03 UTC 2008
>Closed-Date:    Sat Jul 12 12:55:11 UTC 2008
>Last-Modified:  Sat Jul 12 12:55:11 UTC 2008
>Originator:     cktan
>Release:        7.0 Stable
>Organization:
OCESB
>Environment:
FreeBSD Router1 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Apr 23 08:57:11 MYT 2008     root@backup:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
We are using freebsd for all our OSPF and BGP routers in our Metro Network. In freebsd 6.x, the interrupt is very high if the traffic increase.. However, Freebsd 7.0, the interrupt issue is improve a lot (at least 10x improve). But the new issue come out whereby the Zebra daemon is CPU utilization is very high as running on 40% if the traffic for that router go up to 80Mbps. This is not happen to 6.x routers but only 7.0 routers which currently I've 3 units and all of them have the same issue. 


top:

1273 root        1  69    0 70120K 66632K select 1  26.8H 32.76% zebra

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "cktan@ocesb.com.my" <cktan@ocesb.com.my>
To: bug-followup@FreeBSD.org,  cktan@ocesb.com.my
Cc:  
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Wed, 14 May 2008 16:25:58 +0800

 These are the zebra debug kernel message. I have checked with freebsd 
 6.3 there is no such message appear. Need some advice from anyone.
 
 2008/05/14 16:14:38 ZEBRA: Kernel: message seq 0
 2008/05/14 16:14:38 ZEBRA: Kernel: pid 0, rtm_addrs 0x1
 2008/05/14 16:14:38 ZEBRA: Unprocessed RTM_type: 7
 2008/05/14 16:14:38 ZEBRA: Kernel: Len: 96 Type: RTM_MISS
 2008/05/14 16:14:38 ZEBRA: Kernel: DONE
 2008/05/14 16:14:38 ZEBRA: Kernel: message seq 0
 2008/05/14 16:14:38 ZEBRA: Kernel: pid 0, rtm_addrs 0x1
 2008/05/14 16:14:38 ZEBRA: Unprocessed RTM_type: 7
 2008/05/14 16:14:38 ZEBRA: Kernel: Len: 96 Type: RTM_MISS
 2008/05/14 16:14:38 ZEBRA: Kernel: DONE
 
 -- 
 CK Tan
 IT Manager
 
 Optical Communication Engineering S/B
 19, Jalan Semangat,
 46200 Petaling Jaya, Selangor Darul Ehsan
 Tel: +60 3 76808000   EXT:1205
 Fax: +60 3 76808010
 H/P: +60 16 2166917 
 email: cktan@ocesb.com.my
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
Responsible-Changed-From-To: freebsd-bugs->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Wed Jul 2 13:53:34 UTC 2008 
Responsible-Changed-Why:  
My fault most likely, patch out for review already. 

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

From: Mike Tancsa <mike@sentex.net>
To: bug-followup@FreeBSD.org, cktan@ocesb.com.my
Cc:  
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Wed, 02 Jul 2008 09:44:18 -0400

 A patch / fix appears to be in
 
 The patch  / fix appears to be in
 
 <http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018717.html>http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018717.html
 
          ---Mike
 
 
 --------------------------------------------------------------------
 Mike Tancsa,                                      tel +1 519 651 3400
 Sentex Communications,                            mike@sentex.net
 Providing Internet since 1994                    www.sentex.net
 Cambridge, Ontario Canada                         www.sentex.net/mike
 

From: cktan <cktan@ocesb.com.my>
To: Mike Tancsa <mike@sentex.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Thu, 03 Jul 2008 13:01:13 +0800

 Hi Mike,
 
 Thank for your promptly information about the patch for this issue. By 
 the way, I've only leave 1 production machine running on 7.0 and the 
 rest I had reverted to 6.3. Can you share with me how to patch the code 
 into my freebsd router since I'm not familiar with this and I will 
 revert to you about the performance? Thank you in advance.
 
 Regards
 
 Mike Tancsa wrote:
 > A patch / fix appears to be in
 >
 > The patch  / fix appears to be in
 >
 > <http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018717.html>http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018717.html 
 >
 >
 >         ---Mike
 >
 >
 > --------------------------------------------------------------------
 > Mike Tancsa,                                      tel +1 519 651 3400
 > Sentex Communications,                            mike@sentex.net
 > Providing Internet since 1994                    www.sentex.net
 > Cambridge, Ontario Canada                         www.sentex.net/mike
 >
 >
 
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, cktan@ocesb.com.my
Cc:  
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Thu, 3 Jul 2008 05:55:07 +0000 (UTC)

 On Thu, 3 Jul 2008, cktan wrote:
 
 Hi,
 
 > Thank for your promptly information about the patch for this issue. By
 > the way, I've only leave 1 production machine running on 7.0 and the
 > rest I had reverted to 6.3. Can you share with me how to patch the code
 > into my freebsd router since I'm not familiar with this and I will
 > revert to you about the performance? Thank you in advance.
 
 Te following chapter from the handbook should tell you how to rebuild
 a kernel:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
 
 As an additional step after extracting the sources, you apply the
 patch from this posting
 http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018729.html
 
 The easiest my be to open /usr/src/sys/netinet/ip_input.c
 in an editor, go to line ~1365 and manually remove the single line
 marked with a leadin - in the patch. There are multiple of those in
 this the surrounding area, so check the context (the comment above is
 unique) to remove the right one.
 
 After that follow the instructions for rebuilding the kernel from
 above again.
 
 /bz
 
 -- 
 Bjoern A. Zeeb              Stop bit received. Insert coin for new game.

From: cktan <cktan@ocesb.com.my>
To: "Bjoern A. Zeeb" <bz@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Thu, 03 Jul 2008 14:41:02 +0800

 Dear bz,
 
 Thank for your kind response and I will try to do it tonight.
 
 Regards
 
 Bjoern A. Zeeb wrote:
 > On Thu, 3 Jul 2008, cktan wrote:
 >
 > Hi,
 >
 >> Thank for your promptly information about the patch for this issue. By
 >> the way, I've only leave 1 production machine running on 7.0 and the
 >> rest I had reverted to 6.3. Can you share with me how to patch the code
 >> into my freebsd router since I'm not familiar with this and I will
 >> revert to you about the performance? Thank you in advance.
 >
 > Te following chapter from the handbook should tell you how to rebuild
 > a kernel:
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html 
 >
 >
 > As an additional step after extracting the sources, you apply the
 > patch from this posting
 > http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018729.html
 >
 > The easiest my be to open /usr/src/sys/netinet/ip_input.c
 > in an editor, go to line ~1365 and manually remove the single line
 > marked with a leadin - in the patch. There are multiple of those in
 > this the surrounding area, so check the context (the comment above is
 > unique) to remove the right one.
 >
 > After that follow the instructions for rebuilding the kernel from
 > above again.
 >
 > /bz
 >
 
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123621: commit references a PR
Date: Thu,  3 Jul 2008 12:45:07 +0000 (UTC)

 bz          2008-07-03 12:44:36 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/netinet          ip_input.c 
   Log:
   SVN rev 180215 on 2008-07-03 12:44:36Z by bz
   
   Remove a bogusly introduced rtalloc_ign() in rev. 1.335/SVN 178029,
   generating an RTM_MISS for every IP packet forwarded making user space
   routing daemons unhappy.
   
   PR:             kern/123621, kern/124540, kern/122338
   Reported by:    Paul <paul gtcomm.net>, Mike Tancsa <mike sentex.net> on net@
   Tested by:      Paul and Mike
   Reviewed by:    andre
   MFC after:      3 days
   
   Revision  Changes    Path
   1.337     +0 -1      src/sys/netinet/ip_input.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: bz 
State-Changed-When: Thu Jul 3 17:40:53 UTC 2008 
State-Changed-Why:  
Patched in HEAD, MFC in a few days 

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

From: cktan <cktan@ocesb.com.my>
To: "Bjoern A. Zeeb" <bz@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Mon, 07 Jul 2008 10:08:43 +0800

 Hi all,
 
 Just to update to yours the patch is working for me as well. Now my 
 Zebra is happy. One quick question, should I patch it manually for the 
 new installation in future or it will auto patch during the CVS in the 
 near future? Thank for your help.
 
 Cheers
 
 Bjoern A. Zeeb wrote:
 > On Thu, 3 Jul 2008, cktan wrote:
 >
 > Hi,
 >
 >> Thank for your promptly information about the patch for this issue. By
 >> the way, I've only leave 1 production machine running on 7.0 and the
 >> rest I had reverted to 6.3. Can you share with me how to patch the code
 >> into my freebsd router since I'm not familiar with this and I will
 >> revert to you about the performance? Thank you in advance.
 >
 > Te following chapter from the handbook should tell you how to rebuild
 > a kernel:
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html 
 >
 >
 > As an additional step after extracting the sources, you apply the
 > patch from this posting
 > http://lists.freebsd.org/pipermail/freebsd-net/2008-July/018729.html
 >
 > The easiest my be to open /usr/src/sys/netinet/ip_input.c
 > in an editor, go to line ~1365 and manually remove the single line
 > marked with a leadin - in the patch. There are multiple of those in
 > this the surrounding area, so check the context (the comment above is
 > unique) to remove the right one.
 >
 > After that follow the instructions for rebuilding the kernel from
 > above again.
 >
 > /bz
 >
 
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: cktan <cktan@ocesb.com.my>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/123621: Quagga - zebra high processing
Date: Mon, 7 Jul 2008 07:25:23 +0000 (UTC)

 On Mon, 7 Jul 2008, cktan wrote:
 
 Hi,
 
 > Just to update to yours the patch is working for me as well. Now my Zebra is 
 > happy. One quick question, should I patch it manually for the new 
 > installation in future or it will auto patch during the CVS in the near 
 > future? Thank for your help.
 
 Thanks for the feedback.
 
 The patch has been comitted to HEAD already and will be MFCed to
 RELENG_7 (7-STABLE) somewhen during this week.
 
 You'll get an update to the PR once this has happened. From then on
 doing a cvs up/cvsup/csup to 7-STABLE past the commit date should be
 the only thing you'll need to do.
 
 Regards,
 Bjoern
 
 -- 
 Bjoern A. Zeeb              Stop bit received. Insert coin for new game.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123621: commit references a PR
Date: Sat, 12 Jul 2008 12:41:47 +0000 (UTC)

 bz          2008-07-12 12:41:21 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     sys/netinet          ip_input.c 
   Log:
   SVN rev 180482 on 2008-07-12 12:41:21Z by bz
   
   MFC: rev. 1.337, svn 180215
   
     Remove a bogusly introduced rtalloc_ign() in rev. 1.335/SVN 178029,
     generating an RTM_MISS for every IP packet forwarded making user space
     routing daemons unhappy.
   
   PR:             kern/123621, kern/124540, kern/122338
   
   Revision   Changes    Path
   1.332.2.3  +0 -1      src/sys/netinet/ip_input.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: bz 
State-Changed-When: Sat Jul 12 12:54:49 UTC 2008 
State-Changed-Why:  
Patch was MFC to 7-STABLE.  Thanks for reporting. 

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