LinuxQuestions.org
Help answer threads with 0 replies.
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 02-17-2004, 12:36 AM   #1
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
General Kernel Question


I just compiled 2.6.2 kernel for slack and was wondering, Is there a general preference when compiling a new kernel to build things within the kernel or as a module? If so what are the pros / cons of each.

the curious one,

iNiT
 
Old 02-17-2004, 04:05 AM   #2
Nic-MDKman
Member
 
Registered: Feb 2004
Location: Sacramento, CA, USA
Distribution: Mandrake 9.2
Posts: 159

Rep: Reputation: 30
http://linuxquestions.org/questions/...threadid=73436

I believe a benefit to modules is that you can upgrade modules if something new is available and not have to recompile the kernel.

Last edited by Nic-MDKman; 02-17-2004 at 04:09 AM.
 
Old 02-17-2004, 04:07 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
the choice is yours, id say if you not gonna always use it or are short on space (unless u need thins kernel for a flopy theres no reason to save space sence the kernel is a relativly small program), compile it what you need and what you want to compile in

jsut pick what you are gonna use always or need to start up and compile that in, then decide what the other stuff should be
 
Old 02-17-2004, 05:06 AM   #4
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
It's been in my experience that you should build things into the kernel if you *know* you'll be using them all of the time. e.g.: I always compile ext3, various processor options, etc right into the kernel.

Modules are for things that you may use sometimes but not all of the time. Like various USB drivers, firewire, etc.

Now, the tricky part is some kernel options will not work when they are compiled. I don't know why...they just don't. Sound drivers in particular come to mind. I always compile these as modules.

Some SCSI drivers don't like to be compiled in. If you're running root on a scsi, you'll need to enable ramdisk images. You can find the tutural in http://tldp.org/HOWTO/SCSI-2.4-HOWTO/

Hope that helps.
 
Old 02-17-2004, 05:28 PM   #5
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
Thx, After posting I read my O'reilly book before bed and acualy found out some other info on the topic. There are defanitly pro / cons to each side. It seems for an ultra secure server no loadable module support would be the best choice. Smaller the kenerl the faster also, so who knows .. To each there own I guess


........
 
Old 02-17-2004, 05:52 PM   #6
LST
LQ Newbie
 
Registered: Dec 2003
Location: Daventry, United Kingdom
Distribution: Slackware + Raspberry Pi OS
Posts: 23

Rep: Reputation: 19
Well I always used to compile everything as monolithic (compiled in basically). This lead to having kernels that were between 1.8Mb and 2.1Mb in size! Until about a week ago I decided to try and compile as much as I can as modules. The result of this was reducing the kernel size by 48% (the kernel is now 948Kb in size) and it is about 66% quicker booting up. The only things that I have compiled in as monolithic (apart from the options where you can't compile it in as modules) are JFS Support and IDE Support.

In short I would strongly recommend that you compile as much as you can as modules.
 
  


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
general question about the difference in kernel 2.4.x and 2.6.x salviadud Slackware 1 04-19-2005 12:06 AM
A general question about kernel headers: failure_man Slackware 4 02-27-2005 11:37 AM
General kernel question linda Slackware 10 09-02-2004 01:12 PM
Kernel Compiling general question DeadlyMuffin Slackware 2 03-05-2004 11:23 PM
*N*X general ^M question 5amYan Linux - General 1 06-14-2002 03:43 AM

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

All times are GMT -5. The time now is 06:10 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
Open Source Consulting | Domain Registration