View previous topic :: View next topic |
Author |
Message |
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Tue Jul 22, 2003 11:50 am Post subject: modules, or not?? |
|
|
(woohoo first post)
From what I'm about to ask it'll be obvious that I've never compiled any kernels before etc, infact all I know about the kernel is that you need one, and it does good things, anyhow...
In the instalation guide where it's talking about choosing kernel options with make menuconfig, it says something like "enable xyz, again i usually compile them as modules".
What is the benefit of using modules as opposed to compiling things straight into the kernel??
Thanks for anyhelp. _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 11:55 am Post subject: |
|
|
the profit is, that you kernel size shrinks and your are able to load and unload your modules at runtime.
i prefer too compile as much as possible as modules. _________________ Markus Nigbur |
|
Back to top |
|
|
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Tue Jul 22, 2003 11:57 am Post subject: |
|
|
Thanks for the quick reply, but at risk of sounding foolish, what is the benifit of a smaller kernel? _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
Anime_Fan Guru
Joined: 01 Jul 2003 Posts: 366 Location: Linköping, Sweden
|
Posted: Tue Jul 22, 2003 11:57 am Post subject: |
|
|
The downside is modprobing, as well as when you build several kernels of the same version and delete all them modules.
I prefer my Kernels monolithic... Now if only someone would make me an nvidia patch for building nvidia support into the kernel |
|
Back to top |
|
|
thesysadmin n00b
Joined: 01 Jul 2003 Posts: 50
|
Posted: Tue Jul 22, 2003 12:00 pm Post subject: |
|
|
I'm still pretty new to this but I always compile things into the kernel. I do this because I like having everything ready to go. Personal preference I guess . _________________
Code: |
Resistance Is Futile, Computers Rule!
|
|
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 12:07 pm Post subject: |
|
|
the benefit _was_ that the kernel fits onto a 1,44 MB or evenb 0,72 MB floppy disk.
today there is no real need for a smaller kernel _________________ Markus Nigbur |
|
Back to top |
|
|
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Tue Jul 22, 2003 12:22 pm Post subject: |
|
|
One more quick question; when the instalation guide says to enable one of the kernel options (again using "make menuconfig") does that mean just enable it, or it and the new sub-options that appear? _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 12:26 pm Post subject: |
|
|
this depends on the suboptions
you dont need the debugging options, but others might be useful. _________________ Markus Nigbur |
|
Back to top |
|
|
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Tue Jul 22, 2003 12:59 pm Post subject: |
|
|
Ok thanks everyone, people have always talked about how good the gentoo forums are, and I have to say they were right
Rest assured I'll be back if [when] I have anymore prolems _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 1:07 pm Post subject: |
|
|
you're welcome. _________________ Markus Nigbur |
|
Back to top |
|
|
ROOK n00b
Joined: 07 Jun 2003 Posts: 10 Location: Las Vegas, NV - USA
|
Posted: Tue Jul 22, 2003 1:29 pm Post subject: |
|
|
pYrania wrote: | the benefit _was_ that the kernel fits onto a 1,44 MB or evenb 0,72 MB floppy disk.
today there is no real need for a smaller kernel |
Wouldn't another benefit be not having unneeded modules taking up memory yet still having them available when needed ?
Such as a laptop where you swap out PCMCIA cards (and other hardware) frequently, additional file system drivers, encryption algorithms, etc..,. _________________ ROOK
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats."
- Henry Louis Mencken |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 22, 2003 2:15 pm Post subject: |
|
|
right. _________________ Markus Nigbur |
|
Back to top |
|
|
GentooBox Veteran
Joined: 22 Jun 2003 Posts: 1168 Location: Denmark
|
Posted: Tue Jul 22, 2003 9:44 pm Post subject: |
|
|
Well...
i read i paper on kernels and linux security.
they said that a monolithic kernel is faster that a kernel with modules.
but i think it depends on what the box are made for.
if it is a workstation, then it have need for sound support in the kernel and IEEE and so on.
there for you compile it with module support. its only things that you dont use very often that you should compile as modules.
that means a small kernel.
and if it is a server. then you compile it monolithic. cuz a server dont have need for sound, IEEE and so on.
that means a small kernel and fast _________________ Encrypt, lock up everything and duct tape the rest |
|
Back to top |
|
|
JensZ Guru
Joined: 15 Feb 2003 Posts: 339 Location: Freiburg
|
Posted: Tue Jul 22, 2003 10:02 pm Post subject: |
|
|
this may also be related to the reduced size of the kernel, a very small
kernel for server use my even fit into the cpu level2 cache, so last things
I heard were that modules aren't slower when their loaded. |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Tue Jul 22, 2003 10:06 pm Post subject: |
|
|
I wrote a draft for a FAQ answer regarding modules vs. monolithic kernels located here.
Hope that might help. _________________ I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work. |
|
Back to top |
|
|
Sir Al Guru
Joined: 08 Jul 2003 Posts: 326 Location: Vancouver, Canada
|
Posted: Wed Jul 23, 2003 1:18 am Post subject: |
|
|
ROOK wrote: | Wouldn't another benefit be not having unneeded modules taking up memory yet still having them available when needed ? |
When you have 256MB+, I do not think a few extra kilobytes in memory would be such a big drawback. _________________ Athlon XP 2000+ Palomino @ 1.667ghz
Asus A7V333 Revision 1.02 w/ Promise RAID
512mb PC2700-1.5-2-2.0 @ 333mhz
MSI Geforce4 Ti4200-TD 250/446 mhz
MSI TV@nywhere TV Tuner
Antec SX1040BII Case + SL400 400W PSU
Logitech Z-540 4.1 Speakers |
|
Back to top |
|
|
|