LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-17-2009, 10:15 AM   #1
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viņa del Mar
Distribution: Debian
Posts: 50

Rep: Reputation: 16
How to determine and remove modules load at kernel boot?


Hello everybody, I was wondering how can I determine among the modules loaded at boot which of them are really necessary and which are not, in order to reduce the boot process time and have a more "elegant" system start.

I know this theme is a little bit of complicated because it depends of the user's point of view and demand a high knowledge of which things are happening in your system but I need somewhere to start improving the performance of my debian system.

Thanks in advance for any eventual answer. =)
 
Old 07-17-2009, 10:34 AM   #2
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
You can use the command lsmod to see what is used at that time and make sure those are compiled in the kernel to boot up cleaner.
 
Old 07-17-2009, 10:44 AM   #3
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viņa del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
With "lsmod" I get the list of modules that are actually being loaded each time my system starts. But do you know where I can get information of what is given module in order to estimate if it is crucial or not to have it loaded by the system at start up?

PD: I am also confused about something, at the moment of the start up, the kernel begins loading these modules as services right? So to improve the boot time I have to remove the modules that are not crucial for the start up and this way the kernel won't load the services they provide. Am I right or wrong?
 
Old 07-17-2009, 12:19 PM   #4
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
If you need a module, it is best to compile it into the kernel. See http://www.linuxchix.org/content/cou...acking/lesson2. It will always be faster loading if the necessary modules are already a part of the kernel. For those things that are needed rarely, only run with specitic programs or tasks that are only occasionally used, one might consider that some savings would be realized, but most modules run for a purpose do not unload themselves and programmers often do not clean up. Then they are left loaded and take up unneeded space.

But considering the cost of memory, I think it is a false hope to try to save any actual cost by skimping on the kernel unless you have a need to conserve memory. You really don't end up saving much if any. So I suggest you just compile into the kernel any routines you use even just occasionally and you will be better off. Boot time for an extra megabyte is almost unmeasurable at the console.

The only caveat is that your kernel is larger and monolithic and might be more difficult to upgrade. I haven't experienced that and find the convenience of not having to call for module inserts makes most jobs easier. The monolithic nature makes module upgrades require a recompile of the entire kernel. So what? a few minutes more? Big deal.

Last edited by david1941; 07-17-2009 at 12:20 PM. Reason: spelling
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load modules to kernel at boot newtovanilla Linux - Newbie 6 04-30-2008 10:48 PM
Kernel Modules, to load or not to load VampireL0rd Linux - Software 3 07-24-2007 09:20 PM
change/remove boot modules drummerdan Slackware 3 03-02-2006 03:26 PM
remove modules from load sharkzf6 Debian 4 03-19-2005 11:25 AM
Making custom kernel..but drivers and modules wont load on boot skoal Linux - General 10 12-06-2001 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:39 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