From owner-freebsd-net@FreeBSD.ORG Tue Jan 10 22:27:03 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id A126F1065672; Tue, 10 Jan 2012 22:27:03 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id EE33A150FFA; Tue, 10 Jan 2012 22:26:50 +0000 (UTC) Message-ID: <4F0CBB25.4060902@FreeBSD.org> Date: Tue, 10 Jan 2012 14:26:45 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Dennis Koegel References: <20120110102405.GA82356@neveragain.de> In-Reply-To: <20120110102405.GA82356@neveragain.de> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, hrs@FreeBSD.org Subject: Re: Unnecessary sleep in network.subr: ipv6_up() 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: Tue, 10 Jan 2012 22:27:03 -0000 Looping in the author of that change ... On 01/10/2012 02:24, Dennis Koegel wrote: > Cheers, > > problem: Having a *lot* of IPv6 interfaces (Vlan interfaces in this case) > causes a huge and annoying delay time at system boot in 9.0R. > > ipv6_up() in network.subr does this: > > + # wait for DAD > + sleep `${SYSCTL_N} net.inet6.ip6.dad_count` > + sleep 1 > > This happens for each and every interface, at a minimum (and default) of > two seconds per interface. > > It seems the behaviour was introduced with r197139. Before this merge, > /etc/rc.d/network_ipv6 did the same sleeps, but only once for the whole > network startup. > > I don't see why this should happen per interface, so I suggest the extra > sleeps are limited to "once per network startup" once again (or maybe > removed?). -- You can observe a lot just by watching. -- Yogi Berra Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/