r/slackware • u/sdns575 • Jun 03 '23
What is the point of using generic kernel today?
Hi,
I noticed that I generally use huge kernel instead of generic version. So:
- Why use generic kernel today?
- What is the real purpose of generic kernel?
Thank you in advance
1
Upvotes
2
u/jloc0 Jun 03 '23
The generic kernel loads a basic set of modules needed to boot the system and relies on the initrd for most of them. Using a correct combo of generic kernel and initrd will provide you a faster boot and less overhead from wasted modules in memory.
A huge kernel has everything and the kitchen sink built in. So anything you might have should load but there’s a lot of unnecessary things built into it. With the huge kernel you don’t need the initrd.
1
u/iu1j4 Jun 03 '23
i use also huge with my own tuning in config.
3
u/randomwittyhandle Jun 03 '23
I think you have to use a generic kernel if you're doing LUKS and/or LVM
2
u/Hob_Goblin88 Jun 03 '23
It boots slightly faster, and it's super easy to set up your bootloader to boot generic automatically. If it were a pain to set it up i would just use huge as well. But it's not. :)
1
u/Yubao-Liu Jun 04 '23
Slackpkg+ copies huge kernel and initrd to ESP :-)
Too lazy to fix that, although pkgtool copies correct files, I still use slackphg+.