LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-19-2004, 05:05 AM   #1
harmster
LQ Newbie
 
Registered: Feb 2004
Posts: 25

Rep: Reputation: 15
Question modules vs compiled in


Hello,

Today I explained a friend of the merits of Linux. When I came to the topic of modules he ask me _why_ you would want modules. They seen to do the same thing but need more attention. I never give the subject much thought but I have to admit that I don't know why anyone would like to have modules instead of compiled in drivers. The only feeble answer I can come up with is stability.
Anyone?
 
Old 02-19-2004, 05:32 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Because the kernel is kept in system memory all the time, the bigger it is the less system resources remain for other tasks - Modules can be loaded an unloaded at any time to ensure greater efficiency - also to upgrade a modularized driver you just need to recompile the module whereas If the driver is part of the kernel, you have to recompile the kernel. (as to the degree of usefulness of this for a typical consumer desktop user.....that's a different question..... but the facility/capability is their for anyone who wants to utilise it)

Last edited by Skyline; 02-19-2004 at 05:49 AM.
 
Old 02-19-2004, 06:31 AM   #3
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 30
You have entered into the great topic of modularity vs non-modularity .

While some argue for one, and others for the other, both have its advantages and disadvantages. If you compile, say, a driver support into the kernel, it will always be present and will be the very quick. But your kernel will get bigger for every driver you add, which finally will make it quite bloated. This will make your kernel slow, which was certainly not your original intention.

So you modularize the kernel, and load the modules whenever necessary .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled Kernel -- Modules can't be Found... joeyjwc Linux - Newbie 2 08-07-2005 05:27 AM
kernel compiled. starts up. no modules, and etc. RHLinuxGUY Slackware 5 04-14-2005 07:04 PM
kernel options compiled in to modules w/o reboot redjokerx Linux - General 2 04-02-2005 12:44 AM
Self compiled modules have wrong version id ewschone Linux - General 1 06-20-2004 01:13 PM
mandrake 9.2 rc1 acpi compiled as modules fuzzhead85 Mandriva 1 09-10-2003 02:44 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration