LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2003, 01:47 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
kernel compile ?'s


I want to try and get the fastest kernel possible.

Better to build a module or to build it into the kernle?? Building it in adds more to the kernel but does using something as a module slow in down??

Also, does just have a bunch of modules sitting around slow the kernel down?? Like on the stock kernel there is ALOT of modules made, although i am only using a few so are the ones i am not using slowing the kernel down?

thanks
 
Old 03-30-2003, 02:27 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Modules you use all he time may be build into the kernel. Those you use from time to time - as modules. In fact, there's no big difference between a build in kernel driver and module (when loaded). The difference is when you load/unload modules (it takes some time).

If you'd like to have fast kernel, don't forget to compile it for you processor...
 
Old 03-30-2003, 06:05 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Also, does just have a bunch of modules sitting around slow the kernel down?? Like on the stock kernel there is ALOT of modules made, although i am only using a few so are the ones i am not using slowing the kernel down?
Only in terms of your default startup-scripts
trying to load them :)

And as some are loaded, they take up a few
micro-/milliseconds. The ones you don't actually
don't load don't do anything if you weed through
your /etc/rc.d/rc.modules and comment out things
you don't have/need.

The major difference between module and built-in
is the load time during boot-up. Once in memory
you shouldn't be able to tell the difference. :)

Cheers,
Tink
 
Old 03-30-2003, 06:37 PM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Ok thanks....

hey tinkster, does your geek code block translate into something?
 
Old 03-30-2003, 06:44 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Actually, yes :)

Look at my public bookmarks :} to find out... ;)


Cheers,
Tink
 
Old 04-09-2003, 11:56 PM   #6
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Cool, at first I was like no way, those symbols cant say all that....then after further reading I see that they are just abbreviations for phrases.
 
Old 04-11-2003, 07:44 AM   #7
dfbreyes
LQ Newbie
 
Registered: Apr 2003
Location: Makati, Philippines
Distribution: RedHat, SuSE, Gentoo
Posts: 25

Rep: Reputation: 15
There are two choices for what kind of kernel you'll recompile....a MODULAR kernel(one with modules enabled) and the other is the MONOLITHIC kernel(no modules can be installed)

Then there's an issue of whether you're booting from a floppy...in which case you have to limit the features in order have less than 955 kilobytes....

When choosing the features....choose only what you'll be using everyday....if you don't support multi-processors or USB, then you can remove support so the bzImage is smaller...


1)for modular build
make menuconfig
make dep
make bzImage
make modules
make modules_install
mkinitrd -f -v /boot/initrd-2.4.18-trial1.img 2.4-trial1 (this varies)
edit GRUB or LILO then reboot


2)for monolithic build
make menuconfig
make dep
make bzImage
edit GRUB or LILO then reboot
 
Old 04-12-2003, 05:54 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
To comment what dfbreyes wrote I'd like to add that in 99.9% kernel builds modular approach is used. Monolithic kernels are just too big. And it's much easier to add a new NIC module for modular kernel (just make xconfig;make modules;make modules_install). Monolithic kernel is good for example for a boot (rescue) floppy, designed especially for your system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 10:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM


All times are GMT -5. The time now is 09:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration