You are not logged in.

#1 2016-01-14 16:05:56

Alaanor
Member
Registered: 2016-01-07
Posts: 51

How to get the perfect list of required option of a kernel ?

Is there a way to get the perfect list of required option of a kernel ?

About option, I mean the option we can see when we do "make menuconfig" in the kernel folder.

The idea is to get the minimalist, faster kernel specified for my computer hardware and not a "generic" kernel.

I've read the wiki about kernel, more than one page, more than one time. Don't just give me a link, thanks.

Offline

#2 2016-01-14 16:37:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,655

Re: How to get the perfect list of required option of a kernel ?

This used to be the go to site: http://kernel-seeds.org/  It has a decidedly Gentoo bias.
But, it looks like it is getting long in the tooth.   I hope ole Pappy is okay.

The other good way to do this is to boot the stock kernel and see what modules are loaded using lsmod.  From that you can figure out what is needed and what is not.
Generally, if a module supports something on an internal bus (PICe devices in general, video cards, Network Controllers, LPC, i2c/SMBus) they get built in.  So do file system modules for any volume you need to boot.  Also, PS/2 or HID as required for your keyboard.  Remember though, that if a module is built in, you must pass any parameters for that module on the kernel command line.  Loadable modules have theluxury of (a) being unloadable, and (b) can be provided with parameters at the time they are loaded. As such, it might make sense to not build in a wireless module, but load it after the system boots.

Things on the USB bus can generally be left as modules.  You never know what devices you may want to attach in the future, or know what devices will be attached at every boot.

Last edited by ewaller (2016-01-14 17:42:44)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-01-14 17:51:38

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to get the perfect list of required option of a kernel ?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-01-14 18:15:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to get the perfect list of required option of a kernel ?

Alaanor wrote:

The idea is to get the minimalist, faster kernel specified for my computer hardware and not a "generic" kernel.

This is a misconception. Your kernel may be smaller in size (so take up less room on /boot if that is an issue), but it will not be any faster...

Alaanor wrote:

I've read the wiki about kernel, more than one page, more than one time. Don't just give me a link, thanks.

Don't dictate how people can or can't help you here: it comes across as very rude. If you don't like the fact that we have an excellent wiki and it is routinely used to direct people to the appropriate resource, rather than having to type the same thing out over and over again, you can always ask somwhere else.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-01-14 18:36:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: How to get the perfect list of required option of a kernel ?

I agree with the above that you're unlikely to make the kernel "faster".

If you are talking about boot times, then there generally is very little left to be squeezed from the kernel boot time anyways.  Initrds on the other hand can often be trimmed quite a bit to have faster boot time.  See here for one discussion - though note the author claims that little to no benefit is likely to be gained for boot time with that either - in my experience, there can be gains to be had there.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2016-01-14 18:43:29

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: How to get the perfect list of required option of a kernel ?

jasonwryan wrote:

This is a misconception. Your kernel may be smaller in size (so take up less room on /boot if that is an issue), but it will not be any faster...

Thank, I didn't noticed that ! But it's should be logic if the kernel load less module, so it's boot more faster, no ?

jasonwryan wrote:

Don't dictate how people can or can't help you here

Sure, I didn't wanted to say that, but it's always appreciated to see a small or big text with a link. Not just a link. A explanation.

I've installed the modprobed-db and apply a cron task. And I will look more about the kernel-seed.

I've found into kernel-seed this link, and it's may useful:
kmuto.jp/debian/hcl

So, how to get a faster kernel ? my kernel take 1.308s. It's maybe fast, but I'm a bit obsessed by the performance.

Thank for all answers wink

Last edited by Alaanor (2016-01-14 18:47:23)

Offline

#7 2016-01-14 20:41:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,261

Re: How to get the perfect list of required option of a kernel ?

The kernel is not going to load modules it doesn't need it won't make a difference in that regard

Last edited by V1del (2016-01-14 20:42:22)

Offline

Board footer

Powered by FluxBB