LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2007, 05:29 PM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
loaded modules?


Hello everyone
When I do lsmod it shows a bunch of modules that are currently loaded in my system.
I'm wondering do I really need all those modules to be loaded ? As I see the used by column and some of the modules score 0 in this column.

I'd like to remove the modules that are not used by anything without effecting my system just to speed things up

Thank you
 
Old 07-19-2007, 05:39 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
How do these loaded modules slow you down? When they're not in use, they're swapped out.
 
Old 07-19-2007, 05:51 PM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
What I had in my was if nobody is using the modules, isn't it better not to load the modules at all?
So are you saying that when the used by column shows a 0 it means the modules are swapped out/not in the kernel?
who will swap back in the modules when they are needed after they got swapped out?

How do I know whether I really a need a module or not?

Thank you
 
Old 07-19-2007, 06:36 PM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,455

Rep: Reputation: Disabled
Quote:
Originally Posted by lilili
How do I know whether I really a need a module or not?
If you are into experimentation, unload the modules you think you might not need with "rmmod" or "modprobe -r" and see what happens. Expect things to break, though.

Brian
 
Old 07-19-2007, 06:37 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,135
Blog Entries: 3

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
Quote:
Originally Posted by lilili
What I had in my was if nobody is using the modules, isn't it better not to load the modules at all?
So are you saying that when the used by column shows a 0 it means the modules are swapped out/not in the kernel?
who will swap back in the modules when they are needed after they got swapped out?

How do I know whether I really a need a module or not?

Thank you
Hi,

The kernel uses the modules. If you have a module that is loaded then remove it. If the module is the wrong one then find out which is to be used for the hardware you want functional. Just don't arbitrarily remove a module.

Do a 'lspci -vv' from console then see what is loaded to support the device(s). If you want to know a little more about the kernel then read the; 'Linux Kernel in a Nutshell' link which was referenced in 'Slackware-Links' formerly 'Slackware LQ Suggestions Links!' for other good online reference.

The 'Linux Kernel in a Nutshell' has a good example on how to trace for hardware and modules needs.
 
Old 07-20-2007, 06:29 AM   #6
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
To answer one question which has not yet been addressed:

Quote:
who will swap back in the modules when they are needed after they got swapped out?
There are many things which can get swapped out, not just modules: programs which are being run, the memory they're using, and so forth.

In every case, when a program tries to access a segment of memory that has been swapped out, it's the kernel's job to bring the image of that memory back from swap space into real memory and then schedule the process to continue running.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
no modules loaded dasoberdick Slackware 9 06-16-2007 03:01 PM
help: using loaded modules Rostfrei Programming 4 11-16-2006 01:23 PM
extra modules loaded dambla Linux - General 2 08-03-2006 12:57 PM
Too Many Modules Loaded XSIWILL Suse/Novell 2 02-24-2006 10:13 PM
Kernel 2.6.5 -> no modules loaded Spheerke Debian 4 04-07-2004 09:05 PM


All times are GMT -5. The time now is 10:12 AM.

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