Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-05-2009, 07:01 AM   #1
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,621

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


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 07:02 AM. Reason: typo
Old 09-05-2009, 07:38 AM   #2
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 07:40 AM.
Old 09-07-2009, 05:31 PM   #3
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,007

Rep: Reputation: 168Reputation: 168
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


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

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

All times are GMT -5. The time now is 01:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration