LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 12-22-2003, 08:55 AM   #1
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Rep: Reputation: 30
Removing unused kernel modules / autoclean


Hi,

When I do lsmod a lot of modules are marked as (autoclean) or (unused), however they don't seem to actually get removed.

I checked out some of the docs in /usr/linux/src and they suggest a cron job should be set up that does "modprobe -r" to remove unused modules.

I also saw somewhere that "rmmod -a" does the same thing. However neither works on my system, the modules stay right where they are.

So how do I remove unused modules and get autoclean ones to get autocleaned? Do I have to use kerneld as the kmod readme suggested that this was defunct.
 
Old 12-23-2003, 04:15 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Easy----------just re-compile your kernel and leave out any/all modules that you are not going to use........
 
Old 12-23-2003, 08:17 AM   #3
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
I want to use them sometimes, but remove them when I need more memory.
 
Old 12-23-2003, 08:41 AM   #4
TheOneKEA
Member
 
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 7.4.0 (amd64) w/kernel 3.13.0
Posts: 279

Rep: Reputation: 30
Is this on a 2.4 kernel?
 
Old 12-23-2003, 10:05 AM   #5
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
TheOneKEA - 2.4.18-14
 
  


Reply


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
Removing unused packages objorkum Debian 2 04-05-2005 09:32 PM
Unused kernel modules : How to NOT load? _UnPrEdictAbLe_ Linux - Software 0 08-19-2004 02:19 AM
Removing 2.4 kernel modules Proud Linux - General 1 08-12-2004 07:32 AM
removing unused packages hypermegachi Slackware 3 07-05-2004 04:06 PM
kernel stops as 'freeing unused kernel memory' orinjus Linux - Software 3 05-11-2003 05:21 PM


All times are GMT -5. The time now is 09:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration