Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modules, or not??
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
snuck
n00b
n00b


Joined: 26 Jun 2003
Posts: 40
Location: to your left

PostPosted: Tue Jul 22, 2003 11:50 am    Post subject: modules, or not?? Reply with quote

(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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 22, 2003 11:55 am    Post subject: Reply with quote

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


Joined: 26 Jun 2003
Posts: 40
Location: to your left

PostPosted: Tue Jul 22, 2003 11:57 am    Post subject: Reply with quote

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


Joined: 01 Jul 2003
Posts: 366
Location: Linköping, Sweden

PostPosted: Tue Jul 22, 2003 11:57 am    Post subject: Reply with quote

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


Joined: 01 Jul 2003
Posts: 50

PostPosted: Tue Jul 22, 2003 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 22, 2003 12:07 pm    Post subject: Reply with quote

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


Joined: 26 Jun 2003
Posts: 40
Location: to your left

PostPosted: Tue Jul 22, 2003 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 22, 2003 12:26 pm    Post subject: Reply with quote

this depends on the suboptions

you dont need the debugging options, but others might be useful.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
snuck
n00b
n00b


Joined: 26 Jun 2003
Posts: 40
Location: to your left

PostPosted: Tue Jul 22, 2003 12:59 pm    Post subject: Reply with quote

Ok thanks everyone, people have always talked about how good the gentoo forums are, and I have to say they were right :D

Rest assured I'll be back if [when] I have anymore prolems :wink:
_________________
Do you wish you got insulted more? Well here's your chance...
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 22, 2003 1:07 pm    Post subject: Reply with quote

you're welcome.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
ROOK
n00b
n00b


Joined: 07 Jun 2003
Posts: 10
Location: Las Vegas, NV - USA

PostPosted: Tue Jul 22, 2003 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 22, 2003 2:15 pm    Post subject: Reply with quote

right.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Tue Jul 22, 2003 9:44 pm    Post subject: Reply with quote

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


Joined: 15 Feb 2003
Posts: 339
Location: Freiburg

PostPosted: Tue Jul 22, 2003 10:02 pm    Post subject: Reply with quote

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


Joined: 21 Jan 2003
Posts: 977

PostPosted: Tue Jul 22, 2003 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir Al
Guru
Guru


Joined: 08 Jul 2003
Posts: 326
Location: Vancouver, Canada

PostPosted: Wed Jul 23, 2003 1:18 am    Post subject: Reply with quote

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
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