Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-05-01, 01:16 AM CDT
jsmaye Offline
Registered User
 
Join Date: Mar 2005
Location: Vandelay Industries
Posts: 127
Compiling kernal vs modprobe -i / -r

As I understand it, a general-purpose non-customized kernal has a collection of (for lack of a better word) modules compiled into it that are what someone has determined to be generic and all-purpose. What is later needed but not in the compilation is run as external (to the kernal) services. Some people re-compile their kernals to include what they use and exclude what they don't. I'm guessing that things that run in the kernal are faster and/or take up less space or fewer resources, and things in the kernal that are not needed are wasted space and resource. I thought about eventually learning how to recompile a kernal, but aside from the experience of doing it, is there that much of a gain?

Second question - how does using modprobe to install or remove modules compare to re-compiling a kernal? Is it permanent? For instance, let's say my kernal has appletalk in it. Do I gain anything by removing it? Can I even remove it (man is a little fuzzy about whether you can even use modprobe to remove modules)?

Last edited by jsmaye; 2005-05-02 at 12:16 AM CDT.
Reply With Quote
  #2  
Old 2005-05-01, 08:12 AM CDT
alacheesu Offline
Registered User
 
Join Date: Apr 2005
Posts: 20
I read a post that you might find interesting.

http://www.fedoraforum.org/forum/showthread.php?t=18627

Hope this helps.
Reply With Quote
  #3  
Old 2005-05-02, 12:12 AM CDT
jsmaye Offline
Registered User
 
Join Date: Mar 2005
Location: Vandelay Industries
Posts: 127
Outstanding article - I had no idea the kernal was already 99% optimized out of the box.

Now, what exaclty does modprobe do, and is it permanent, or must it be done after every boot?
Reply With Quote
  #4  
Old 2005-05-02, 01:48 AM CDT
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,228
Modprobe is not permament, it's run at every system boot........

The difference is that with "modprobe" you can specify certain paramters and actions for modules BEFORE they are loaded, like IRQ, shared memory, etc.......
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #5  
Old 2005-05-02, 01:53 AM CDT
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
modprobe adds the code and data in to module to the kernel running in memory in realtime. It therefore only persists until the next reboot when the kernel without any modules is loaded into RAM fresh.

A little more info: modules have dependencies just like RPMs. If you do, for example

modinfo usb-storage

and scroll back, you'll see

Depends: scsi_mod

which is another module that implements the SCSI command set. When you build a kernel or you compile a new module, a utilty

depmod

is run which goes though all the modules making a database of who needs what. The command

insmod modulename

inserts just the module into the kernel without dependencies, so if other modules are needed that are not already loaded in you will get an error;

modprobe modulename

loads in both the given module AND any modules it is depenedent on. So modprobe is like the "yum of modules".
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a unique kernel vs. compiling a single module. jbkt23 General Support 0 2006-12-03 05:11 PM CST
Kernal Cleanup jbillingsle01 General Support 4 2006-11-12 02:11 PM CST
do i have a kernal bug? goldstar1 General Support 4 2006-08-01 11:14 AM CDT
compiling FC4 kernal.............. madvikas General Support 1 2005-07-06 03:15 AM CDT
Newbie - Installing drivers, compiling drivers,and compiling source. Nicholas Comino gmane.linux.redhat.fedora.general 0 2005-02-02 03:47 PM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:28 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages thanks to vB Enterprise Translator 2.3.8