D
D
Dmitry2014-01-31 11:22:52
linux
Dmitry, 2014-01-31 11:22:52

What kernel tuning strategy should a Gentoo newbie adopt?

Despite the fact that my question in the subject suggests the contents of a FAQ, however, a satisfactory answer was not found.
I'm a beginner and just reading a handbook, experimenting in a virtual machine on VmWare along the way and trying to install Gentoo amd64 from the last minimal disk as of yesterday. The main goal is to get comfortable and put on my home Lenovo ThinkPad Edge E120.
At the moment, I have reached the kernel configuration, i.e. to the lines in the headbook:

# cd /usr/src/linux
# make menuconfig

At this stage, I got lost ... I do not understand almost all the flags, options and sections that the kernel options adjuster offers me. Almost no experience in Linux! There is only experience of configuring the kernel in FreeBSD, but there GENERIC looks more logical, even for a beginner.
What I need from the kernel:
1) Network and other devices that are in my laptop (or in a virtual machine);
2) Remove unnecessary devices, for example, extra bluetooth or raid devices, i.e. something that is definitely not on my laptop or in a virtual machine;
3) Understand what is needed for LVM, dm-crypt and for WiFi (which is defined as wlp2s0 in the minimal disk).
I somehow don't want to drown in a sea of ​​information from the kernel archive from the kernel.org Documentation folder. Please share your experience and strategy for diving into Linux.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
Z
Zhep Ebrilov, 2014-01-31
@baragoon

emerge sys-kernel/gentoo-sources
emerge sys-kernel/genkernel
zcat /proc/config.gz >> /usr/src/linux/myconfig
genkernel all --menuconfig
load your config from file
myconfig You'll be able to figure out a little about what's needed and what's not.

Z
zvorygin, 2014-01-31
@zvorygin

Then, you can leave the default settings - you should have enough. And so - there are quite intelligible descriptions of each of the settings, and on the Internet you can find out the details.
So if you are interested in learning more deeply, then read and dig, if you are not interested, then it is not clear why you need gentoo)

G
Gem, 2014-03-11
@Gem

Read at your leisure, well, and the previous part
Nuclear physics for housewives v.3
www.unix-lab.org/posts/kernel-v3
Also do not forget to enable devtmpfs and cgroups

R
Reisei, 2014-01-31
@Reisei

You just need to sequentially look through all the settings that are in the kernel in order to at least begin to navigate in it, to understand what is needed and what is not. In addition, there is help for each parameter (often the words “if in doubt, choose yes” are written there). The main thing is that you have already decided what configuration you want to put in the kernel.

Z
Zhep Ebrilov, 2014-01-31
@baragoon

and also, so that the network interfaces would be called the old way, add "net.ifnames=0" to the kernel line in grub

M
Maxim Moseychuk, 2014-01-31
@fshp

Boot from the LiveCD, check if everything works (network, graphics, LVM, etc.), If everything is in order and you don't have exotic hardware, then see what modules are loaded (lsmod). Create default config, add missing modules from the list. Should earn. Well, then you can experiment.
In fact, there are not as many necessary settings in the kernel as it seems. Over 70% are hardware drivers that you will most likely never encounter.
Don't forget to turn on UEVENT, Xs hook input devices through it (you can do it the old fashioned way).
You can add the experimental flag to the kernel. Then a patch with BFS (a smart scheduler from a well-known anesthesiologist) will be applied to the core, an indispensable thing for the desktop.
Well, read about systemd, although it is scolded, it is faster than OpenRC.

H
hellnice, 2014-04-09
@hellnice

You can boot into a modular kernel (debian for example), grab gentoo-sources, and run:

make localmodconfig 
make localyesconfig

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question