Date: Thu, 21 Jun 2012 22:28:02 +1000 From: Peter Jeremy <peter@rulingia.com> To: Brandon Falk <bfalk_bsd@brandonfa.lk> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Doug Barton <dougb@freebsd.org> Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) Message-ID: <20120621122802.GA71656@server.rulingia.com> In-Reply-To: <4FDFB761.60406@brandonfa.lk> 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> <4FDFB761.60406@brandonfa.lk>
next in thread | previous in thread | raw e-mail | index | archive | help
--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2012-Jun-18 19:18:57 -0400, Brandon Falk <bfalk_bsd@brandonfa.lk> wrote:
>As the original poster of this thread, I can also say that Doug is=20
>correct. The issue is not rc, it is the actual kernel boot process.=20
I've videoed my netbook rebooting and gone through the video in slow
motion and that definitely doesn't match what I see.
>When it comes to a desktop/laptop/simple server and all you do with rc=20
>is configure a static IP, start dbus/hal/sshd, and maybe launch a few=20
>jails... at least 90-98% of the boot process is spent doing the kernel wor=
k.
In my case, starting from when the screen blanks after a reboot, the
breakdown is:
7.4s - POST + BIOS splash (including ~1s waiting for input)
4.4s - boot0/1/2, starting loader (including boot spinners)
1.5s - loading kernel
11.0s - loader countdown
7.0s - kernel startup
32.0s - rc scripts ("mounting root" through VTY login prompt)
5.0s - X + xdm startup
Note that the majority of kernel probe time is:
2000ms - atkbd
750ms - ata
500ms - memory probe
500ms - ath0
450ms - psm0
So, in my case, rc scripts account for just under 50% of the total
boot time and 50% of the remainder are various "waiting for input"
timeouts. The kernel amounts for 10% of the total time and 50% of
that is 4 devices. I intend to work through the rc process in more
detail to see where I can reduce the elapsed time.
--=20
Peter Jeremy
--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAk/jE1IACgkQ/opHv/APuIcTPACeOvNLvajvv3ZlMi1ucx4OckJS
12EAn0ip/rcttNKsMz0KqtdN1NDnHmP6
=HfeA
-----END PGP SIGNATURE-----
--BOKacYhQ+x31HxR3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120621122802.GA71656>
