LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2005, 07:16 PM   #1
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Rep: Reputation: 15
kernel: modules or built in?


I know this is a really n00b question. I have recently decided to try and tweak a lot of the setting of my computer, specifically the linux kernel. Right now I am facing a tough decision: what should be part of the kernel, adn what should be modules? Since my system is a reiserfs system, should that be a module or part of the kernel? Because my computer is always checking the disk, shouldn't it be part of the kernel? What should and should not in general be part of the kernel (i.e. built in or kept as modules). Thanks!
 
Old 10-31-2005, 08:00 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Here's how I see it... (I await flames from all sides!)

Filesystems for disks which you use on a day to day basis (especially those which are mounted at boot) should be compiled in; any others I'd compile as modules to save on memory.
Drivers for devices which are non-removable should be compiled in. (They'll just get loaded at boot anyway if they're modules, so you might as well compile them in.)
Anything you need maximum performance for should be compiled in (there are slight performance gains to be had doing this).

Removable devices I usually compile as modules, e.g. my USB sound card. The sound card is never deliberately removed, but if its USB cable is stood on, or comes loose, I can unload and reload the module to get the device running again without crashing the whole machine.
FAT32 support (I only use it on USB storage devices) and ISO9660 support (I rarely mount CDs) are also compiled as modules.

Basically, if a device or filesystem type or whatever can be removed while the machine's running, it's a module: everything else gets compiled in.

Dave

Last edited by ilikejam; 10-31-2005 at 08:03 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new kernel built....no modules linuxhippy Slackware 11 03-10-2005 04:54 PM
No pre-built modules jamaso Slackware 11 05-29-2004 09:07 AM
Modules.dep needs to be re-built araldit Linux - Newbie 1 03-13-2004 10:51 AM
Just built my first kernel, but... plisken Linux - General 7 10-01-2003 10:03 AM
loadable modules vs built-in modules nuzzy Linux - Hardware 1 07-21-2003 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration