LinuxQuestions.org
Review your favorite Linux distribution.
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 07-12-2003, 02:38 AM   #1
thadude
LQ Newbie
 
Registered: Jul 2003
Location: Toronto
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Red face Linux Kernel 2.4.21


I am trying to build my own kernel. I was wondering if choosing to make modules would still use a little space? Can you save space in the kernel by not making the module?
 
Old 07-12-2003, 02:53 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you make a module it will take disk space, because it's a file laying around but it won't make your kernel any larger - or, if it does, it would be by an utterly insignificant degree. I don't know if it needs a little bit of code as a "plug" so to speak, or not. If you compile it in, then your kernel will be larger. If you do without the capacity altogether, it saves space both ways. If it's something you need, compile it in; if it's something you just want access to, make it a module; if it's something you don't need, leave it out. And, to an extent, this translates into RAM usage. If you compile everything in its going to use more RAM than a stripped kernel while loading it as a module will only use the RAM while its loaded.

At least that's how I understand it. Hope that's right and that it helps.
 
Old 07-12-2003, 03:01 AM   #3
thadude
LQ Newbie
 
Registered: Jul 2003
Location: Toronto
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by digiot
If you make a module it will take disk space, because it's a file laying around but it won't make your kernel any larger - or, if it does, it would be by an utterly insignificant degree. I don't know if it needs a little bit of code as a "plug" so to speak, or not. If you compile it in, then your kernel will be larger. If you do without the capacity altogether, it saves space both ways. If it's something you need, compile it in; if it's something you just want access to, make it a module; if it's something you don't need, leave it out. And, to an extent, this translates into RAM usage. If you compile everything in its going to use more RAM than a stripped kernel while loading it as a module will only use the RAM while its loaded.

At least that's how I understand it. Hope that's right and that it helps.
Thanks, thats what I figured. I was just wondering how much of an insignificant amount of kernel space it takes up. The problem is self made kernel isnt working yet because I am not absolutly positive of what modules are needed and so forth. So I have a lot of things [M] and I was wondering if that would make my kernel larger. Right now it is about 900kB I would like to see it around 700kB

Thanks for the reply its appreciated
 
Old 07-12-2003, 12:45 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
M will make your kernel smaller and faster but modules will be created on the hd and you'll have to load these modules if you need it (well wrong most of time since kernel load them by itself)
 
  


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
smp kernel: uncompressing Linux ..ok booting the kernel krissb Linux - General 1 11-16-2005 06:31 PM
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM

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

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
Open Source Consulting | Domain Registration