LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-02-2005, 12:20 AM   #1
adds2one
Member
 
Registered: Aug 2005
Location: Vancouver, BC
Distribution: Ubuntu 6.06
Posts: 154

Rep: Reputation: 30
when to use modules?


When configuring my new 2.6.13 kernel I felt really lost about whether to select my choices as "yes"(to build them into the kernel) or "module"(to load them as modules.

Are there certain things that are better to load as modules?

I recompiled my kernel several times to change some items to "module" because even with them selected as "yes" I was getting messages(and errors) that they couldn't be found. Once I recompiled with them as modules the problem was solved.

Are there some items that should be loaded as modules?

I'd love some opinions about this. Thanks.
 
Old 09-02-2005, 12:40 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
These days it's a matter of opinion for the most part, since resources consumed by the kernel is seldom an issue on a modern PC. That said, generally you should consider using kernel modules for anything you seldom use or don't use but think you might at some point. Things you use continuously or frequently, you should compile directly into the kernel. Reason being that things seldom used (if ever) are just increasing the footprint of the kernel on your system needlessly, while compiling things directly into the kernel offers a slight increase in speed, theorectically. We're talking mere nano seconds there though. Keep in mind though that either way is fine and this is just 1 users opinion amoung many.

Beyond that, at times some drivers work better (or not at all) one way or the other. So if you have issues with a driver one way, try it the other.

As to the "not found" issue, when you compile something into the kernel that use to be loaded as a module, then the module obviously no longer exists. So any attempt to load it into the kernel (ie modprobe) will surely fail. You should adjust your /etc/rc.d/rc.modules and/or any other file that loads them.
 
Old 09-02-2005, 12:42 AM   #3
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Modules are drivers you can load into the kernel when you don't have compiled them into the kernel. I think the best is to compile options into the kernel
 
Old 09-02-2005, 01:08 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,799

Rep: Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158
Prior to 2.6.12 I ran everything compiled-in.
Now (on one machine) I load the ATI drivers as modules; purely because of size. Could have gotten around it with a grub kernel parameter I guess, but why bother.
 
Old 09-02-2005, 01:47 AM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Generally I would do all of my "static" hardware (NIC, sound card, IDE controller, USB controller, etc) compiled in, and then add in a few modules for devices I may use down the line. Things like USB printers and USB HID devices, etc. Other than that, I leave everything else out, I try to keep things as lean as possible.

The only exception to that rule for me is the drivers for my NVIDIA video card, which is a module only.
 
Old 09-02-2005, 01:59 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,799

Rep: Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158Reputation: 2158
Quote:
Originally posted by MS3FGX
Other than that, I leave everything else out, I try to keep things as lean as possible.
Wonder if that comment was in response to me saying ... "Prior to 2.6.12 I ran everything compiled-in."
I hope not - MS3FGX and I are on the same wavelength (predominantly a Gentoo user here remember ...). I certainly don't have anything excess in my builds - nor would I want to be (mis-)interpreted as advocating that.
Maybe I should have said "Prior to 2.6.12 I ran everything for my environment compiled-in."
 
  


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
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
/etc/conf.modules is more recent than /lib/module/2.2.15-4mdk/modules.dep Derek-kun Linux - Newbie 3 09-26-2003 02:56 AM
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 - Distributions > Slackware

All times are GMT -5. The time now is 12:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration