Date: Wed, 5 Mar 2008 22:03:03 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Daniel Feenberg <feenberg@nber.org> Cc: freebsd-questions@freebsd.org Subject: Re: faster booting Message-ID: <20080305210303.GB40846@slackbox.xs4all.nl> In-Reply-To: <Pine.GSO.4.64.0803051450540.18940@nber5.nber.org> References: <Pine.GSO.4.64.0803051450540.18940@nber5.nber.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--St7VIuEGZ6dlpu13 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 05, 2008 at 03:06:39PM -0500, Daniel Feenberg wrote: <snip> > So, is there advice anywhere about speeding up the boot process? It appea= rs=20 > that most of the 1 minute 45 seconds to boot our system is wait time for= =20 > checking the existence of non-existant hardware and would not be=20 > appreciable reduced with a faster CPU or disk. Are there kernel options= =20 > that we could use to avoid this checking? Would recompiling the kernel in= =20 > some specialized way help? You should build a custom kernel with only the devices and options that you need in it. Starting from the GENERIC kernel config and with dmesg output in hand you should be able to remove a lot of unneeded drivers. For instance, probing a floppy drive takes relatively long. Remove all network devices except the ones you actually use. Same goes for the SCSI card drivers and RAID controllers. Do not mess with the "options" lines unless you know what you're doing. And if you remove "device" lines, look at its manual page to check that it is not a prequisite for another driver that you do need. Do not remove the devices random, loop, ether pty and md. I always use 'makeoptions MODULES_OVERRIDE=3D""' in my kernel config so that no kernel modules are built or installed. Another way to shorten boot time is to disable all unneeded services. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --St7VIuEGZ6dlpu13 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHzwqHEnfvsMMhpyURAp8WAJ0RODgAY9BEjnmwf5trQ45pdwl5sACfcYpq Ctsv20DFaUsKv3HwQ4I03iI= =wErJ -----END PGP SIGNATURE----- --St7VIuEGZ6dlpu13--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080305210303.GB40846>