Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 01:44:52 +0100
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Custom Kernel questions...
Message-ID:  <20060423004452.GA18293@catflap.slightlystrange.org>
In-Reply-To: <20060422235245.30717.qmail@web31513.mail.mud.yahoo.com>
References:  <20060422235245.30717.qmail@web31513.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060423004452.GA18293>