LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-13-2006, 04:20 AM   #1
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
trying to unload unnecessary kernel modules


Dear Gurus

I remember reading elsewhere that unloading unnecessary kernel modules will help in increasing laptop battery life. Any ideas how to determine which are the unnecesary modules.

Is unloading a module under use crash the system?

Any pointers greatly appreciated...
 
Old 05-13-2006, 08:30 AM   #2
the_unforgiven
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Rep: Reputation: 0
The unnecessary modules would report the module usage count of 0 in the output of "lsmod" or "cat /proc/modules".
However, if the module is not coded properly, this might be a false value and the module might actually be in use while reporting the module usage count of 0. So, unless you're absolutely sure of it, don't remove arbitrary modules as it MAY crash the system. You've been warned !!!!
 
Old 05-13-2006, 09:51 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by the_unforgiven
So, unless you're absolutely sure of it, don't remove arbitrary modules as it MAY crash the system. You've been warned !!!!
Hi,
but won't it be a temporary crash ???
reboot the machine in safe mode and re-insert that particular module using
#insmod
or
#modprobe

regards
 
Old 05-14-2006, 03:21 AM   #4
the_unforgiven
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by ruudra
Hi,
but won't it be a temporary crash ???
reboot the machine in safe mode and re-insert that particular module using
#insmod
or
#modprobe

regards
Yes, it will be a temporary crash..

But generally, linux is known for its stability - no frequent reboots - even after installing a piece of s/w unlike the big OS from Redmond.
Besides, if you were to try it on a shared/production server, it might not be feasible to reboot it.

As far as just testing and understanding goes, almost anything is ok
 
Old 05-14-2006, 04:21 AM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
Is unloading a module under use crash the system?
The command to unload module is rmmod. rmmod won't let you unload the modules in use unless you supply it with -f command line argument which would force unload the modules. Ofcourse, this force unloading should be enabled in the kernel config.
 
  


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
Rapid module load/unload = Kernel panic mclerand Linux - Kernel 0 05-06-2006 11:02 AM
how to unload kernel module dynamically kushneeraj Programming 1 10-26-2005 11:46 PM
Can't unload (or power off) wireless card (ndiswrapper won't unload) shadowsnipes Linux - Wireless Networking 6 10-02-2005 10:48 AM
How do I know wich modules I can unload. Palula Linux - Newbie 5 07-19-2005 07:47 PM
Unable to unload eepro100 module in Kernel 2.6 simjii Linux - General 0 12-08-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:15 PM.

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