View previous topic :: View next topic |
Author |
Message |
hex0x5f n00b
Joined: 23 Jun 2014 Posts: 12
|
Posted: Tue Oct 28, 2014 4:00 pm Post subject: minimal kernel configuration |
|
|
Hello,
I tried several times to remove unused modules from the kernel ( I mean modules for hardware I know for sure I don't have ),
however I always ended up in modules which I need being not loaded or some hardware not working.
So, in the end I used genkernel which configured a lot of modules.
The question is, does it worth the effort of trying to remove abundant modules ?
As far as I understand, udev loads only what is needed, is that correct ?
So I may have abundant compiled modules but they are not loaded into the kernel, is that correct ?
Thank you |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1249
|
Posted: Tue Oct 28, 2014 4:04 pm Post subject: |
|
|
If you're not sure, select recommended option.
I know my hardware and try not to use unneeded modules, but when i'm not sure, see first sentence.
can help to chose needed modules, also Code: | make localmodconfig | can help too.
Quote: | The question is, does it worth the effort of trying to remove abundant modules ?
As far as I understand, udev loads only what is needed, is that correct ?
So I may have abundant compiled modules but they are not loaded into the kernel, is that correct ? |
If you have time, it can help you to understand how to configure the kernel.
If you compile modules into kernel, they will load.
Yes, modules that are not required for hardware to work won't load (until they compile into kernel), but some of them may, but it won't give you any decreasing of performance. |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Tue Oct 28, 2014 4:51 pm Post subject: |
|
|
Also, will tell what modules were loaded, as needed. Maybe not all just after boot up.
Debian system 96 modules out of 3233 are loaded:
Code: | $ cd /lib/modules/3.16-3-686-pae
$ find . -name "*ko" | wc -l
3233
$ lsmod | wc -l
97
|
Gentoo System:
Code: | $ lsmod
Module Size Used by
$ |
As with Perfect Gentleman, on Gentoo I do not want to compile what I do not need. |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 772 Location: over here
|
Posted: Tue Oct 28, 2014 6:23 pm Post subject: |
|
|
pappys http://kernel-seeds.org/ is the best info I've seen by far for starting a minimal kernel build. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Oct 28, 2014 10:54 pm Post subject: |
|
|
If you feel adventurous and want to learn about kernel start with you will have exciting days configuring your kernel - which is the most important part of your GNU/Linux installation and well worth your time, by all means. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
hex0x5f n00b
Joined: 23 Jun 2014 Posts: 12
|
Posted: Wed Oct 29, 2014 5:05 pm Post subject: |
|
|
Thank you all for your replies!
I've managed to workout issues I'd when removing modules,
and step by step I minimize my set of modules.
Now when I understand better, I realize that genkernel has really overwhelmed the system with modules.
I especially noticed this while examining the modules loaded during the init boot process (those archived in initramfs which genkernel created ).
Jaglover,
I already have exciting days configuring the kernel
But indeed worth the time, I learned a lot. |
|
Back to top |
|
|
|