From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 21:03:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C41181065673 for ; Wed, 5 Mar 2008 21:03:06 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3398FC22 for ; Wed, 5 Mar 2008 21:03:06 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id m25L34A1068054; Wed, 5 Mar 2008 22:03:04 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id B46BCB829; Wed, 5 Mar 2008 22:03:03 +0100 (CET) Date: Wed, 5 Mar 2008 22:03:03 +0100 From: Roland Smith To: Daniel Feenberg Message-ID: <20080305210303.GB40846@slackbox.xs4all.nl> Mail-Followup-To: Daniel Feenberg , freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="St7VIuEGZ6dlpu13" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: faster booting 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: Wed, 05 Mar 2008 21:03:06 -0000 --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: > 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--