Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-30-2005, 09:10 AM   #1
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Compile in kernel or module?

I was compiling the kernel 2.6 here, but even deselecting I lot of unused things my box is still taking more time them before to boot up the kernel. And the kernel its about 2.5mb. But maybe the problem is that the most options I selected to incorporate in kernel, like everything that I know is connected in my box, or things like mouse and some supports...

Modules starts automaticly when needed or they always need to be called with modprobe??

the generic kernel that I was using after the instalation (2.4) is about 1.9mb, I first thought that taking of the lot of things unused it able to come down 1.9mb...

Old 06-30-2005, 09:42 AM   #2
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
I'm not sure what is best, but I tend to keep hardware support in modules. The kernel will load what it needs and the kernel itself will stay relatively small.

In the long run it's also easier to add/replace hardware as you go along or to copy the kernel to another, similar cpu type, pc.

Personally I have never noticed much difference between different kernel sizes. I guess it's a myth to think smaller is faster.
Old 06-30-2005, 09:49 AM   #3
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
modules can load automatically (just select the option in the kernel)

but they don't unload automatically, so once loaded they stay until manually unloaded, or restart happens
Old 06-30-2005, 11:50 AM   #4
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Rep: Reputation: 37
No...there IS a noticable difference with speed regarding different kernel sizes.

A great place to check is is with your stock 2.4- check out lsmod, and find what modules are being loaded and, more importantly, used. If you never use some stuff (firewire, for example), don't put it in there.

Personally, i've gotten my kernel to about 1.5M or so, and am pretty satifsied. Sure, there are still some things I could probably get out of it, but it is much slimmer than the stock 2.4. Just play around...eventually you'll get it. Then just save your old .config file and you'll be good for the 2.6 series .

Hope this helps

Old 06-30-2005, 11:54 AM   #5
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
For reference, I have a 2.6.12 kernel and it is 1.3Mb. I try to compile anything that I need at boot time (filesystems) into the kernel, get rid of what I don't need, and add everything else as modules.


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
compile module for running kernel maenho Linux - Software 5 06-27-2005 01:44 PM
can't Compile a module under Kernel 2.4.20-8 srsairam Linux - Software 3 11-09-2004 12:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
compile a single kernel module wr3ck3d Linux - General 10 03-01-2003 12:00 PM
compile individual kernel module snape Linux - Software 1 06-27-2001 10:25 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration