FreeBSD kernel init slower than linux

Alexander Best arundel at freebsd.org
Sat Mar 5 13:17:18 UTC 2011


On Fri Mar  4 11, illoai at gmail.com wrote:
> On 4 March 2011 17:10, David Demelier <demelier.david at gmail.com> wrote:
> > Hello,
> >
> > I know this is a awful subject, but I recently tried a Gentoo on my laptop
> > and I was surprised to see Linux booting about 2-3 times faster than
> > FreeBSD.
> >
> > I don't talk about the init/rc script but only kernel initialisation. For
> > linux kernel it's around 5-6 seconds vs 15-18 seconds for FreeBSD.
> >
> > Why FreeBSD is so slower than Linux to boot the kernel?
> >
> 
> USB probe times for FreeBSD are extremely
> long.  I'm not sure of Linux parallelizes this
> or just waits until rc time.
> 
> Wireless seems to be a similar issue here.

also timeouts in freebsd were chosen very conservatively. you might want to
alter those. examples are ATA or CAM timeouts.

also there seem to be a number of hardcoded delays present in some code which
have to be altered in the source tree. an example is the folowing code in the
boot stage 2 (boot2, but also present in gptboot and the zfs counterparts):

if (autoboot && keyhit(3)) {

cheers.
alex

> 
> -- 
> --

-- 
a13x


More information about the freebsd-questions mailing list