From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 12 07:27:08 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5C41A106566C; Tue, 12 Jun 2012 07:27:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id A46D18FC16; Tue, 12 Jun 2012 07:27:07 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 285982378; Tue, 12 Jun 2012 09:27:05 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Tue, 12 Jun 2012 09:26:33 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <4FD66F7E.2060404@brandonfa.lk> <4FD6E065.6040601@FreeBSD.org> In-Reply-To: <4FD6E065.6040601@FreeBSD.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201206120926.33947.hselasky@c2i.net> Cc: Brandon Falk , Andriy Gapon Subject: Re: FreeBSD Boot Times X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 07:27:08 -0000 On Tuesday 12 June 2012 08:23:33 Andriy Gapon wrote: > on 12/06/2012 01:21 Brandon Falk said the following: > > Greetings, > > > > I was just wondering what it is that FreeBSD does that makes it take so > > long to boot. Booting into Ubuntu minimal or my own custom Linux distro, > > literally takes 0.5-2 seconds to boot up to shell, where FreeBSD takes > > about 10-20 seconds. I'm not sure if anything could be parallelized in > > the boot process, but Linux somehow manages to do it. The Ubuntu install > > I do pretty much consists of a shell and developers tools, but it still > > has a generic kernel. There must be some sort of polling done in the > > FreeBSD boot process that could be parallelized or eliminated. > > > > Anyone have any suggestions? > > Do you have a breakdown of the boot time between pre-loader, loader, kernel > and rc stages? > > > Note: This isn't really an issue, moreso a curiosity. > > Ditto. :-) BTW: Booting over USB is slow because many small chuncks of data is read instead of a few big chunks when loading the kernel and modules at the loader time. --HPS