From owner-freebsd-net@FreeBSD.ORG Wed Feb 8 13:55:02 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CC9A106564A for ; Wed, 8 Feb 2012 13:55:02 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 0C7438FC15 for ; Wed, 8 Feb 2012 13:55:01 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q18Dt0UN023315; Wed, 8 Feb 2012 17:55:00 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q18Dt0GH023314; Wed, 8 Feb 2012 17:55:00 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 8 Feb 2012 17:55:00 +0400 From: Gleb Smirnoff To: Steven Hartland Message-ID: <20120208135500.GL13554@FreeBSD.org> References: <201202081300.q18D0Wnc067564@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@FreeBSD.org Subject: Re: kern/161899: Repeating RTM_MISS packets causing high CPU load for ntpd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 13:55:02 -0000 On Wed, Feb 08, 2012 at 01:44:56PM -0000, Steven Hartland wrote: S> ----- Original Message ----- S> From: "Gleb Smirnoff" S> > > Any update on this, would have been nice to see a fix hit before S> > > 9.0. If you need any more information please let me know. S> > S> > AFAIK, this is no longer a problem in 9.0-RELEASE or in HEAD. S> > S> > The cause for this number of misses is absense of a route for S> > IPv4 mapped block in IPv6 routing table. S> > S> > Here it is: S> > S> > # netstat -rn -f inet6 S> > Routing tables S> > S> > Internet6: S> > Destination Gateway Flags Netif Expire S> > ::/96 ::1 UGRS lo0 S> > S> > Some rc.d script installs this prefix in 9.0 and 10.0. If it hasn't S> > been merged to stable/8, then it needs to be found and merged. S> S> Thanks Gleb! S> S> Running the following commands does indeed stop this S> route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject S> route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject S> S> I found these in /etc/rc.d/network_ipv6 but I can't see why S> these wouldnt be run on a machine that doesn't have an IPv6 S> address, they seem to be added correctly on machines that do. S> S> So any pointers are to how to get this fix setup correctly in S> 8.2 would appreciated. I don't have any 8.2 where I can play already :) All test boxes are either head or 9.0. So it'll be easier to you than to me, to find the exact revision that is already in stable/9, but not yet in stable/8, that adds these routes to kernel in startup. Once found, I can do merging. Meanwhile, I can bounce the PR to freebsd-rc@, and may be someone from there can find out what needs to be merged. -- Totus tuus, Glebius.