[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what kernel modules am I really using?



Javier Bernal wrote:

> Hello list,
> 
> I want to know which of the modules that 'lsmod' shows I am currently
> using.
> 
> lsmod shows 42 modules. Are all of them being used?
> 
> Can I see which device is using which module?
> 
> Thanks
> 
Your best bet here is to install the kernel documentation package.  There,
you'll find a description of all the modules and what they're supposed to
do.  Many are support for specific hardware.  If you know you don't have
that hardware, you can remove that module.

Without consulting the documentation, you could always modprobe -r each
module that isn't referred to by another module.  If it removes, then it
wasn't being used.  If it is being used, you won't be able to remove it. 
Note, however, as Sumo points out, some modules may not be presently used,
but will be needed at specific times (especially the ppp modules).  So just
be aware that when programs that used to work fail for bizarre reasons, it
may just be that you removed a module it depends on.

Justin




Reply to: