Date: Tue, 19 Jun 2012 07:58:42 +0200 From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: Doug Barton <dougb@freebsd.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Richard Yao <ryao@gentoo.org>, Vincent Hoffman <vince@unsane.co.uk>, Nathan Whitehorn <nwhitehorn@freebsd.org>, Outback Dingo <outbackdingo@gmail.com>, openrc@gentoo.org, =?ISO-8859-1?Q?Atte_Peltom=E4ki?= <atte.peltomaki@iki.fi> Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) Message-ID: <CAGwOe2bGNoAKqjZBuTJ9hSFFOyHjuzvSD3WP-F3Q9JMX-icR0w@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1206190636100.1823@wojtek.tensor.gdynia.pl> References: <20120615124849.GI96212@ass.kameli.org> <CAKYr3zxSOFOUghqao=3U_8sBNHwqce8AGK6mSFd6is11qzjS8w@mail.gmail.com> <20120618081140.GK96212@ass.kameli.org> <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> <alpine.BSF.2.00.1206190636100.1823@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 19, 2012 at 6:39 AM, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> wrote: >> replacing rc.d, since that's almost certainly not relevant to the >> original topic of improving the overall boot time. > > > indeed. > > >> >> If you analyze the boot process thoroughly you should see that out of >> the total time taken to boot, nearly 0 is spent by rc.d actually doing >> something. Almost all of the actual time is spent waiting for other >> stuff, either the kernel (primarily) or the services that the system is >> running actually starting up. >> > most of boot time consist of > > - delay in bootloader. setting autoboot_delay can partially delay it, delay > to zero can be achieved by patching first stage booter that too add delay > > - delay in kernel initialization. making custom kernel helps of course but > still it takes eg 10 seconds on my laptop. putting things that are not > needed instantly at boot - as module - may help. USB being prime example. > > - delay at rc.d scripts - there are some delays inserted. > > >> The latter item is the only place where making changes to rc.d is going >> to help, and only then by parellelizing, and even then you are not >> really going to gain much since most things at boot time are serial. > > > grep sleep /etc/rc.d/* usr/local/etc/rc.d/* > > >> >> So while talk of how to get your favorite boot-time manager into FreeBSD >> may be entertaining, it's not likely to be productive, and almost > > > it is unimportant as FreeBSD don't crash. Please, re-read already sent mails in this thread about that statement so we don't get stuck in a loop. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bGNoAKqjZBuTJ9hSFFOyHjuzvSD3WP-F3Q9JMX-icR0w>