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 - 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 02-22-2004, 05:36 PM   #1
Mark_E_Wallace
LQ Newbie
 
Registered: Feb 2004
Location: Cedar Park, Tx.
Distribution: PCLinuxOS 2007
Posts: 6

Rep: Reputation: 0
Configuring kernel: Impact of "Y" or "N" vs. "M"


I'm about to update my MD 9.2 kernel from the original 2.4.22-10mdk to 2.6.3. First time that I've built a kernel.

I'm pretty comfortable so far with what I see in make menuconfig. One question though:

What's the impact of making an option Modular as opposed to saying "Y"? I assume that saying "N" means that the option doesn't get compiled at all (is that correct?), but what is the difference to me in terms of kernel size/speed or compilation time depending on if I answer "Y" or "M"?

Many thanks,

Mark
 
Old 02-22-2004, 05:44 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

You're right, if you say 'N' to something, the it doesn't get compiled.
Saying 'Y' to something means that it gets compiled striaght into the kernel, and stays in memory all the time.
Saying 'M' compiles the module, but allows the kernel to load the piece of code only when it's needed, so freeing up RAM.

Having components compiled into the kernel is slightly faster when in use, but uses RAM all the time. Compile times are pretty much the same either way, because the component still has to be compiled whether it's a module or in the kernel. The kernel size gets smaller the more components you compile as modules.

If you're using a component all the time, then compile it in. If you only need the component sometimes (e.g. USB storage, etc) then compile it as a module. You should have your / filesystem (ext2/3 / reiser or whatever it is) compiled into the kernel, and any drivers you need to get the system to boot.

Dave

Last edited by ilikejam; 02-22-2004 at 05:46 PM.
 
Old 02-22-2004, 06:02 PM   #3
Mark_E_Wallace
LQ Newbie
 
Registered: Feb 2004
Location: Cedar Park, Tx.
Distribution: PCLinuxOS 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Excellent. Thought the answer might go something like that.

Many thanks!

Mark
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM

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

All times are GMT -5. The time now is 05:14 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