Barebone kernel options request
matthias at smormegpa.no
Mon Mar 11 15:58:59 UTC 2019
Am Montag, den 11.03.2019, 15:30 +0100 schrieb samir.otmane at numericable.fr:
> Not really related about hardware, i just don't like being enforced features that i
> don't need/want of, yet i understand that there will *might* not be noticeable
> performance impact upon keeping/get rid of some features.
> ---- Message d'origine ----
> De : "Carmel NY" <carmel_ny at outlook.com>
> À : "FreeBSD" <freebsd-questions at freebsd.org>
> Objet : Re: Barebone kernel options request
> Date : 11/03/2019 14:54:48 CET
> On Mon, 11 Mar 2019 09:08:48 -0400, Robert Huff stated:
> > Polytropon writes:
> > > You will then make a copy of the GENERIC kernel configuration file
> > > and adjust it to your needs, i. e., remove all the entries you do
> > > not need.
> > Proceed with caution here.
> > I do not know if it is currently true, but it has in the past
> > been the case that (e.g.) option Q depends on device F which depends
> > on device B; while the relationship between Q and F is documented in
> > the config file, the one between F and B is not.
> > The easy targets are disk(/RAID) drivers and network cards.
> > After that? Stay alert; trust no-one; keep your un-delete key handy.
> > Respectfully,
> > Robert Huff
> Just out of some sort of morbid curiosity, I would be interested in
> knowing exactly what problem the OP is trying to correct or alleviate
> here. If his storage, memory or whatever resources are stretched to the
> limit, he would be better served by purchasing a newer, more powerful
> machine. "You can't make a silk purse out of a sow's ear."
Agree. There are only two reasons to build a kernel nowadays IMO:
1. to solve a real problem
2. to learn about FreeBSD
"Not really related about hardware, i just don't like being enforced features"
I'd say, most of the kernel is hardware related. You can't really strip down
the kernel, if you don't want to touch any of the drivers in the config.
You have got several examples already. Now you just have to configure and
build the kernel you want. You can't avoid reading the Handbook section
you've been pointed to and the comments in GENERIC. There simply isn't
THE ulitmate stripped down config that fits anyone and no one will or can
do that job for you.
Try it, then ask specific questions if you run into trouble building or
booting you kernel.
P.S. You make it hard for yourself to get help by first posting the
same question 3 times and then top posting in addition. This thread is so
torn apart that it's not fun to follow. Almost unreadable.
No offense, Samir, but this could be something for you:
It's a good read and will help you post questions in a way that will actually
help you get better help.
More information about the freebsd-questions