LinHES Forums
http://forum.linhes.org/

How to avoid loading unneeded kernel modules?
http://forum.linhes.org/viewtopic.php?f=6&t=18006
Page 1 of 1

Author:  Grant_Edwards [ Thu Mar 06, 2008 9:10 pm ]
Post subject:  How to avoid loading unneeded kernel modules?

I just checked my new KM box, and there are 87 kernel modules
loaded. About have of them are unused. What's the best way to
get rid of all of the extraneous kernel modules that are being
loaded?

Author:  bobmyth [ Thu Mar 06, 2008 9:21 pm ]
Post subject: 

This is very tricky. You can back-up /etc/modules and replace it with an empty file. Then reboot and hope for the best. If something is not working you'll have to figure out what driver is required and put it back into /etc/modules. Be warned, you may have trouble with USB keyboards, mice, etc without forcing some drivers to load.

Author:  Grant_Edwards [ Fri Mar 07, 2008 8:31 am ]
Post subject: 

bobmyth wrote:
This is very tricky. You can back-up /etc/modules and replace
it with an empty file. Then reboot and hope for the best. If
something is not working you'll have to figure out what driver
is required and put it back into /etc/modules. Be warned, you
may have trouble with USB keyboards, mice, etc without forcing
some drivers to load.


It seems to be pretty obvious which drivers aren't needed. I
don't even have a BTTV board or an IVTV board or a CX8800 card,
yet there are drivers loaded for all of them. I don't use
IEEE1394 for anything. Why would I need those drivers?

You can look at lsmod and see that half the drivers have 0
usage. I would think that doing lsmod snapshots during various
different modes of operation (recording, playback, music,
video, mytharchive, etc.) would give a pretty clear picture of
which drivers are actually needed.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/