Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
n00b kernel question
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
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 534

PostPosted: Sun May 09, 2004 10:25 am    Post subject: n00b kernel question Reply with quote

Does trimming your kernel down make it "better"?

As in take up less memory therefore making the PC quicker..?

Would It be better to configure modules into ther kernel once I know ther work as modules?
Or should I leave them out as modules to be loaded after the kernel has loaded.. ?
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
andrewy
l33t
l33t


Joined: 07 Apr 2004
Posts: 602

PostPosted: Sun May 09, 2004 12:37 pm    Post subject: Reply with quote

Compiling less options in the kernel makes the kernel smaller, which takes up a few less kb of memory. I believe it also improves the speed, but not necessarily a significant amount.
If there's something you know you will use, it's better to compile it into the kernel than to compile it as a module, this will give you a slight performance boost (not necessarily noticeable)
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 534

PostPosted: Sun May 09, 2004 12:42 pm    Post subject: Reply with quote

andrewy wrote:
Compiling less options in the kernel makes the kernel smaller, which takes up a few less kb of memory. I believe it also improves the speed, but not necessarily a significant amount.
If there's something you know you will use, it's better to compile it into the kernel than to compile it as a module, this will give you a slight performance boost (not necessarily noticeable)


ok.. so are there any "dangers" to compiling modules into the kernel?
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
andrewy
l33t
l33t


Joined: 07 Apr 2004
Posts: 602

PostPosted: Sun May 09, 2004 1:01 pm    Post subject: Reply with quote

Other than wasting memory and possibly slowing the kernel down? no.
I compile anything that I know I'm going to use into the kernel, while the stuff that I only use sometimes gets compiled as a module.
Back to top
View user's profile Send private message
ewan.paton
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1219
Location: glasgow, scotland

PostPosted: Sun May 09, 2004 1:03 pm    Post subject: Reply with quote

come on if i compile everything into the kernel its under 2 megs how much free memory do you need, modules are usefull if you need a boot floppy or need to keep uptime and swap modules that have security patches but normal users should just compile everything in
_________________
Giay tay nam | Giay nam cao cap | Giay luoi
Back to top
View user's profile Send private message
andrewy
l33t
l33t


Joined: 07 Apr 2004
Posts: 602

PostPosted: Sun May 09, 2004 1:15 pm    Post subject: Reply with quote

then why does genkernel compile everything as modules, and not just compile everything into the kernel?
RedHat, Mandrake, SuSE, etc, all do the same with their kernels..
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 534

PostPosted: Sun May 09, 2004 2:05 pm    Post subject: Reply with quote

andrewy wrote:
then why does genkernel compile everything as modules, and not just compile everything into the kernel?
RedHat, Mandrake, SuSE, etc, all do the same with their kernels..


My guess would be so that people can see what fails.. and edit it out with a fully functioning kernel.. then later when they feel better about it.. they can compile them in.. *shrug*
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
jsinger
n00b
n00b


Joined: 24 Oct 2003
Posts: 16

PostPosted: Sun May 09, 2004 2:56 pm    Post subject: Reply with quote

Some history -- before modules were available (they arrived in 2.0, IIRC) everything had to be compiled into the kernel. Distros shipped a giant kernel covering pretty much all hardware, that was even more inefficient on the old early 90's hardware people were frequently using. The notion that compiling your kernel gives you a great performance advantage dates back to that situation.

Today, kernels are much smaller as vendors compile everything as modules (that, by the way, is why they compile everything as modules -- they're building for *all* hardware!) and systems have far more capacity. So, today, the benefit of compiling your own is much less.
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sun May 09, 2004 3:56 pm    Post subject: Reply with quote

When you're trying to diagnose a hardware problem, being able to insmod rmmod and modprobe are vital.
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sun May 09, 2004 7:50 pm    Post subject: Reply with quote

Some things work better inside the kernel, some outside. ALSA/OSS is something that should be a module, as it is generally better and more managable than if it is 'statically' built into the kernel. USB, Filesystem, Hardware (IDE, AGP, Chipset, etc) should ALWAYS be built into the kernel, if not just for simplicities sake. But as I've said, I've had much better results using ALSA as a module than statically.
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
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