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. |
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.
|
"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. |
Can you paste the output of "lsmod" here in code tags?
|
Here it is.
Code:
Module Size Used by Here is the modprobe.conf file: Code:
alias eth0 3c59x |
Please!!!
Can anyone help?! :-) |
All times are GMT -5. The time now is 07:56 PM. |