Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
module vs inbuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Mon Dec 19, 2005 2:52 pm    Post subject: module vs inbuild Reply with quote

hello,

could someone tells me if it is better to use modules or to compile in the kernel. I am not talking about the files systems, or basic hardware but something like sound card ?

I had a sound card for wich I could not find the right kernel options. a live distro would load 10 modules for the sound card, but my gentoo would load only 1

so I went to the kernel and enabled ALL the sound options as modules(around 20?) , after next reboot, I found in lsmod about 10 modules loaded. so my question are :

1 should I rebuild my kernel with the one found in lsmod as part of the kernel ?
2 can I leave the selected modules that are not loaded in the kernel, as modules or does it impact on my kernel size and speed ?

thanks

reup
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Dec 19, 2005 3:01 pm    Post subject: Reply with quote

Normally, it is better (i.e. less likelihood of kernel problems, no need to manually load them before use) for modules to be built-in.

ALSA is a special case - I recommend that alsa-driver be used, so that the version of alsa is independent of the kernel version.
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Mon Dec 19, 2005 3:24 pm    Post subject: Reply with quote

cool,

but what about modules that are selected as modules in the .config, but are not needed.

what if I compile a driver for a network card that I do not have, it will not load at boot, but will it slow down my system (cannot imagine why) and will it grow the kernel size ? (ha yes, that could slow down the system)

reup
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Dec 19, 2005 3:33 pm    Post subject: Reply with quote

It's only a problem if the kernel module misbehaves, and activates even though it shouldn't - then it could slow down the system, I suppose. Normally, it will just bloat the kernel by an insignificant amount.

The standard practice with a kernel is to compile-in whatever's useful for the particular PC, and remove everything else.
Back to top
View user's profile Send private message
JDCentral
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2004
Posts: 112
Location: Fort Collins, CO

PostPosted: Tue Dec 20, 2005 5:59 pm    Post subject: Reply with quote

Personally, I build-in everything that's absolutely necessary for the computer to boot, and put everything else as modules - (sound, video, joystick drivers, etc..).

That way, when (and if) I have a problem with the driver, I'm able to simply remove the module and my computer is able to boot "normally", until I find time to investigate the issue. It also gives me a little bit of flexability, sometimes.

That's just my personal practice, though.
_________________
Gentoo Currently installed on:

Athlon XP-Mobile Barton 2600+ @ 200x12.5
ASUS A7N8X Deluxe. rev 2.0
1GB OCZ Performance PC3200 RAM
Sapphire X1650 Pro 256MB GDDR3
2x120GB Seagate 7200.1 IDE Drives
1x320GB Seagate SATA Drive
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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