Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 11:24:05 +0100
From:      Dennis Koegel <dk@neveragain.de>
To:        freebsd-net@freebsd.org
Subject:   Unnecessary sleep in network.subr: ipv6_up()
Message-ID:  <20120110102405.GA82356@neveragain.de>

next in thread | raw e-mail | index | archive | help
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?).

- D.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120110102405.GA82356>