LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 09-05-2009, 06:01 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,395

Rep: Reputation: 81
How to find unnecessary modules? (make system as lean as possible)


Hya,

Question is:

How to make system as lean as possible?

In other words, how to avoid unnecessary functions (in either kernel or module)? Or, how to create minimal .config file for custom kernel.

Background: Currently, I have three penguins, two Toshiba's and one Acer. These have different hardware configuration, so that necessary modules may differ. Historically, all started from same .config file. However, one has more than 600 modules, the other only 400. All of them are functioning well. I am a kind of confident that many modules (if not some) are useless.

If I go one by one, I am pretty sure it is possible to figure out, however it may take long looonnnnggggg. Also once unexpected side effect happens, it may take forever to troubleshoot.

I thought it was easier, but may be not. (I also have trouble finding web site..)

Any suggestions will be welcome.

Happy Penguins!

Last edited by kaz2100; 09-05-2009 at 06:02 AM. Reason: typo
 
Old 09-05-2009, 06:38 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Search LQ m8, I believe this guide is all you need.

Last edited by alan_ri; 09-05-2009 at 06:40 AM.
 
Old 09-07-2009, 04:31 PM   #3
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 776

Rep: Reputation: 88
try this command option to make i386_defconfig for a 32bit linux
or x86_64_defconfig for a 64bit system
this will build the minimum hernel to boot your computer EXCEPT FOR THE FILE SYSTEM YOU ARE USING
but it will almost exactly match your hardware (I've seen it get the wifi card wrong)
you will still need to run make menuconfig to select file systems and turn off kernel debugging at the minimum may be more

you can make a kernel with just what is in the computer and have just about every thing in the kernel NO modules loaded at boot time
mine boots twice as fast as the stock kernel did
 
  


Reply

Tags
config, custom, kernel, minimal


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find +exec with rm gives unnecessary error mynameisthomas Linux - Newbie 13 08-19-2009 03:13 PM
Excessive RAM usage on boot - unnecessary modules? Jinouchi Linux - Newbie 17 01-15-2009 03:30 PM
trying to unload unnecessary kernel modules biophysics Linux - Kernel 4 05-14-2006 04:21 AM
How can I install a very lean and mean system? miner49er Debian 14 03-26-2006 09:14 AM
looking for a lean system bosewicht Linux - Newbie 7 11-23-2003 08:26 AM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration