LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2005, 08:33 AM   #1
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
How do I know wich modules I can unload.


Hi there!

I use linux for about 4 months now and this question has always intrigued me. The thing is: a have a Pentium II CPU that is being configured to work as a Router/Firewall. Itīs not properly configured yet. I started the Firewall script yesterday (Iīm very new to this).

Well, the main thing is that when I type lsmod, a whole page of modules is showed on screen and I bet that a lot of these modules can be supressed. For example, my sound modules. They can all be unloaded (rmmod) or supressed at boot time. I do have an onboard soundcard but I donīt intend to use it. Another thread on this site helped me to find out how to unload modules at boot time (I was looking for /etc/modules.conf, and in FC3 the archive is /etc/modprobe.conf).

The information I am really looking forward to know is how do I know the importance of a loaded module. How do I know (based on what I intend to do with the machine) wich modules are indifferent to my needs, so that I can unload them.

Thanks a lot!
Palula Brasil.
 
Old 07-14-2005, 09:14 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
All depends on your hardware. Also when doing an lsmod, it tells you if the module is being used or not, that should give you a notion of what you can remove and what you should keep.
 
Old 07-14-2005, 11:31 AM   #3
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Original Poster
Rep: Reputation: 15
"Used By"

First of all thank you trickykid.

I found the Used By column, but it looks really weird...
In the list of all modules (lsmod), I have two modules running. One for the eth0 (3c59x) and one for the eth1 (rtl8139xxx). Itīs obvious that they are being used isnīt it?

On the used by column, appears: 0 and no other module is using it. Thatīs fine with me probably there really isnīt any module using it. But according to that judgement, if I for example weīre dumb enough to unload these two modules based on the "0" and no arguments after the "0", I would be unloading my two NICīs. And that doesnīt seem right to mee...

So is that fair enough or is there more information than meets the eye?
How should I interpret the information in that column?

Thank in advance! :-)
Palula Brasil.

Last edited by Palula; 07-14-2005 at 11:33 AM.
 
Old 07-14-2005, 11:52 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Can you paste the output of "lsmod" here in code tags?
 
Old 07-15-2005, 10:11 AM   #5
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Original Poster
Rep: Reputation: 15
Here it is.

Code:
Module                  Size  Used by
vfat                   14657  1
fat                    46177  1 vfat
sermouse                4929  0
md5                     4033  1
ipv6                  234753  8
parport_pc             24577  1
lp                     12077  0
parport                42121  2 parport_pc,lp,
autofs4                24389  0
sunrpc                160933  1
dm_mod                 54869  0
ns558                   5441  0
gameport                4801  1 ns558
snd_cmi8330            12041  0
snd_sb16_dsp           14913  1 snd_cmi8330
snd_ad1848_lib         22081  1 snd_cmi8330
snd_pcm_oss            49017  0
snd_mixer_oss          17985  1 snd_pcm_oss
snd_pcm               100041  4 snd_cmi8330,snd_sb16_dsp,snd_ad1848_lib,snd_pcm_oss
snd_timer              30661  1 snd_pcm
snd_page_alloc          9673  1 snd_pcm
snd_sb_common          18369  2 snd_cmi8330,snd_sb16_dsp
snd                    55589  8 snd_cmi8330, snd_sb16_dsp, snd_ad1848_lib, snd_pcm_oss, snd_mixer_oss, snd_pcm, snd_timer, snd_sb_common
soundcore               9889  1 snd
8139too                26305  0
mii                     4673  1 8139too
3c59x                  36457  0
floppy                 59249  1
ext3                  116809  2
jbd                    74969  1 ext3
By the way, I altered my modprobe.conf, commenting all the lines that donīt contain my NICīs and that disnīt change a thing. Can you guys help me with that too?

Here is the modprobe.conf file:

Code:
alias eth0 3c59x
alias eth1 8139too
alias snd-card-0 snd-cmi8330
options snd-card-0 index=0
install snd-cmi8330 /sbin/modprobe --ignore-install snd-cmi8330 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-cmi8330 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-cmi8330
Every line reffering to souncards were commented. The only lines I left uncommented were the fist two lines. However, that didnīt work.
 
Old 07-19-2005, 07:47 PM   #6
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Original Poster
Rep: Reputation: 15
Please!!!
Can anyone help?! :-)
 
  


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
Can't unload (or power off) wireless card (ndiswrapper won't unload) shadowsnipes Linux - Wireless Networking 6 10-02-2005 10:48 AM
unload ub-module at boot? Urkburk Slackware 10 03-25-2005 05:35 AM
unload debugger and try again edemark Linux - Games 3 11-21-2004 08:20 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM


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