From owner-freebsd-questions@FreeBSD.ORG Sat Mar 5 13:17:18 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id DDF1B1065670; Sat, 5 Mar 2011 13:17:18 +0000 (UTC) Date: Sat, 5 Mar 2011 13:17:18 +0000 From: Alexander Best To: "illoai@gmail.com" Message-ID: <20110305131718.GA57122@freebsd.org> References: <4D716372.2050606@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: David Demelier , freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel init slower than linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2011 13:17:18 -0000 On Fri Mar 4 11, illoai@gmail.com wrote: > On 4 March 2011 17:10, David Demelier 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