Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
minimal kernel configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hex0x5f
n00b
n00b


Joined: 23 Jun 2014
Posts: 12

PostPosted: Tue Oct 28, 2014 4:00 pm    Post subject: minimal kernel configuration Reply with quote

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
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Tue Oct 28, 2014 4:04 pm    Post subject: Reply with quote

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.

Code:
lspci -k
lsusb

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
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Tue Oct 28, 2014 4:51 pm    Post subject: Reply with quote

Also,
Code:
lsmod
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
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 772
Location: over here

PostPosted: Tue Oct 28, 2014 6:23 pm    Post subject: Reply with quote

pappys http://kernel-seeds.org/ is the best info I've seen by far for starting a minimal kernel build.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Oct 28, 2014 10:54 pm    Post subject: Reply with quote

If you feel adventurous and want to learn about kernel start with
Code:
make allnoconfig
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
View user's profile Send private message
hex0x5f
n00b
n00b


Joined: 23 Jun 2014
Posts: 12

PostPosted: Wed Oct 29, 2014 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum