LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-14-2006, 08:34 PM   #1
big_manel
LQ Newbie
 
Registered: Jan 2006
Distribution: Customized Vector Linux
Posts: 17

Rep: Reputation: 0
Question Why should I use modules?


Hi all,

I have just upgraded from kernel 2.4.28 to 2.6.15.5. I am running a low end Pentium 90 as a home print/backup server. The upgrade went smoothly, however, during kernel configuration, it struck me that modules are not very useful in my situation, but I'd like an expert opinion:

the way I see it (and please correct me if I am wrong), modules are good for little used features, in that they can be loaded as needed, and thus saving memory. However, after they are loaded, they take up the same memory as if they had been built in, right? And unless you unload the modules (is this straightforward?), you won't get that memory back. A computer with 'common' day-to-day use (internet surfing, mail checking, document writing...), will gradually load modules as features get requested but will start fresh after each reboot.
In a server such as mine, reboots are very rare; in addition, there are not that many little-used-features (you either need it or not). So, is it worth the hassle of loading/unloading modules or should I build it all in the kernel?

Currently I have a kernel without module support. With all the features I figure I might come to need the kernel is about 1700KB. Is this too much? I do have a relatively large amount of RAM (256MB) and everything is running very smoothly (I guess disabling module suport must also relieve the kernel a bit, right?). The only problem seems to be ALSA not detecting my soundcard (it was detected fine by OSS with the previous 2.4 kernel). Must the soundcard driver be compiled as a module?

I'd appreciate some feedback on this, please!

Thanks all

big_manel
 
Old 03-14-2006, 09:00 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
There is little practical difference except for security. If a hacker gets in, you may not want certain modules laying around for him to load. Generally speaking, it is easier to harden a server if there is nothing but the essentials hanging around. In the days when RAM and HD space were short, the space occupied by modules may have been worth struggling with, but in your case, it makes little difference, unless you need the practice configuring things.
 
Old 03-15-2006, 05:18 AM   #3
big_manel
LQ Newbie
 
Registered: Jan 2006
Distribution: Customized Vector Linux
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks Robert! I'll keep with the monolythic kernel, then

However, if others disagree, please post back! It would be good to hear every side of this (assuming there is more than one side!).

Thanks!
PS: still struggling with ALSA to find my card...
 
  


Reply



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
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 06:44 PM
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
Slack9 - no PPP (can't open dependencies file /lib/modules/2.4.18/modules.dep) bluehz Slackware 1 05-04-2003 02:32 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:24 PM.

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