Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: decrapify your kernel config
Date: Wed, 18 Nov 2009 09:59:34
Message-Id: 200911181058.50053.volkerarmin@googlemail.com
In Reply to: Re: [gentoo-user] Re: decrapify your kernel config by Alan McKinnon
1 On Mittwoch 18 November 2009, Alan McKinnon wrote:
2 > On Wednesday 18 November 2009 01:16:04 Stefan G. Weichinger wrote:
3 > > Volker Armin Hemmann schrieb:
4 > > > Namespaces - you don't need it? Kick 'em out.
5 > >
6 > > hmm, interesting ... ;-)
7 > >
8 > > for sure I also want to decrapify my kernel-config ...
9 > >
10 > > To disable namespaces I would have to set CONFIG_EMBEDDED=y ... correct?
11 > >
12 > > This is rather counterintuitive to me, as my main workstation is far
13 > > from an embedded or small system (ok, not compared to the
14 > > 4096-cpu-clusters in http://xkcd.com/619/ , but compared to, for
15 > > example, my embedded ALIX-PC I use as fw/router/something ...).
16 > >
17 > > So you suggest I set CONFIG_EMBEDDED=y and in turn get several new
18 > > options/defaults to choose and get right or wrong ... ?
19 > >
20 > > ;-)
21 > >
22 > > I am quite sure to have at least *some* crap in my config as I tend to
23 > > always do something like
24 > >
25 > > zcat /proc/config.gz >> /usr/src/linux-new-shiny-version/.config
26 > > make oldconfig
27 > >
28 > > ....
29 > >
30 > > This gives me expected results and a "it boots OK" experience, getting
31 > > rid of unused crap is another issue, yes.
32 > >
33 > > I wonder which EMBEDDED options would help me ...
34 >
35 > Likely none of them.
36 >
37 > The embedded menu is the most counter-intuitive thing in the whole kernel
38 > config. It does not supply a list of things you may enable, instead it
39 > activates a menu that allows you to switch stuff OFF that is normally ON.
40 >
41 > The rationale is that embedded devices need to get by on a very slim kernel
42 > and with some magic trickery they can successfully disable some features
43 > that are usually considered perfectly normal for regular desktop use.
44 >
45 > For example: CONFIG_HOTPLUG. It's unthinkable to remove this for a desktop,
46 > but does your TomTom need it? Does a GPS even have hotplug facilities? How
47 > about ADSL router/modems?
48 >
49 > To disable namespace, enable embedded, leave everything on, and you will
50 > find you can now disable namespaces.
51 >
52
53 you can disable:
54 - Enable 16-bit UID system calls
55
56 - Sysctl syscall support
57 without negative impact on a desktop. Most of it is broken for years anyway.
58
59 - Core dumps
60 are another feature that most people never use
61
62 - Load all symbols for debugging/ksymoops
63 and
64 - Do an extra kallsyms pass
65 stuff you can deactivate if you don't plan to send crash reports.
66
67 - Enable PC-Speaker support
68 oh hell - away with that one! Who needs beeps anyway?

Replies

Subject Author
Re: [gentoo-user] Re: decrapify your kernel config "Stefan G. Weichinger" <lists@×××××.at>