SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322
Rep:
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
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.
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.
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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.