From owner-freebsd-questions@FreeBSD.ORG Sun Apr 23 00:44:54 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF76916A402 for ; Sun, 23 Apr 2006 00:44:54 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc6-cmbg1-0-0-cust82.cmbg.cable.ntl.com [82.10.236.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31F5F43D48 for ; Sun, 23 Apr 2006 00:44:54 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.61 #1) id 1FXSia-000AuU-G6 by authid for ; Sun, 23 Apr 2006 01:44:52 +0100 Date: Sun, 23 Apr 2006 01:44:52 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20060423004452.GA18293@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20060422235245.30717.qmail@web31513.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <20060422235245.30717.qmail@web31513.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: danielby@slightlystrange.org X-SA-Exim-Scanned: No (on catflap.slightlystrange.org); SAEximRunCond expanded to false Subject: Re: Custom Kernel questions... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 00:44:54 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 22, 2006 at 04:52:45PM -0700, Andrew Carton wrote: > While I am not exactly new to FreeBSD or other *nix variants, I choose=20 > to use FreeBSD because of its blazing performance, especially on older,= =20 > slower machines. Yet, I also wish to strip that kernel to squeeze out=20 > every bit of usable power I can. My delving into kernel customizing=20 > with FreeBSD has been realativly short, and for the most part error free, > but in comparison to Linux, it seems to offer fewer customizing options. > =20 > More specificly, many of my machines are being setup as servers, and > thusly have no need of many services such as sound drivers, yet it=20 > appears that I see code for them passing by the screen as I configure and > compile. Has anyone here delved deeper into the configuration of the=20 > kernel, are there more options is other files aside from the main=20 > configuration file? By cutting out drivers for devices that you don't need (see the output of dmesg to check what you've got), you reduce the size of the kernel itself. However, the default buildkernel target will build all kernel modules, which is probably why you see sound drivers etc scrolling by. In order to avoid compiling modules you don't need, there is the MODULES_OVERRIDE knob in /etc/make.conf, which you can set to the names of the modules you actually want.=20 The following knobs may be of interest to you, but I have only ever had cause to use MODULES_OVERRIDE so can't speak with any authority. #NO_MODULES=3D # do not build modules with the kernel #MODULES_WITH_WORLD=3D # do not build modules when building kernel #MODULES_OVERRIDE=3D linux ipfw # The list of modules to never build, applied *after* MODULES_OVERRIDE. #WITHOUT_MODULES=3D bktr plip HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFESs4Eixf5fBYiFmoRAj8XAJwN84qCHFUpyGsrBy9mM7BZjPAh6wCdGvlR eVWgKaX+zYN+mfZOHL/doEs= =6lEw -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--