SOLVED - Re: KERNEL - knowing what programs use/need modules

2012-01-02 Thread Damien Fleuriot


On 1/1/12 9:10 AM, Matt Mullins wrote:
 On Tue, Dec 27, 2011 at 8:34 AM, Damien Fleuriot m...@my.gd wrote:
 Now, I'm wondering why in the world a server would need umass, ums and cam ?

 My understanding is that ums is the USB mouse, which we're never going
 to need.

 Umass would be USB mass storage, which again we're never going to need.
 
 You appear to be correct with these two.  My gut tells me these types
 of things would be loaded when the corresponding devices are plugged
 into the system, but if that's wrong, surely someone here will speak
 up.
 
 Regarding CAM I have absolutely no idea why the module is loaded either.
 
 That's the SCSI/ATA subsystem; if this is the only of your firewalls
 to have this module, perhaps it has different disk adapter hardware
 than the others or another sysadmin decided to load it manually?
 

They use mfi, like a few others which do not have CAM loaded.


The best part is, after rebooting these firewalls on their new
8.2-RELEASE-p5 kernel, they haven't loaded neither of UMS, UMASS, or
CAM, although I've clearly built them:

MODULES_OVERRIDE=cam geom/geom_label if_lagg linprocfs linsysfs linux
mfi/mfi_linux usb/umass usb/ums


I doubt another admin would have loaded them manually, they don't touch
the freebsd stuff very often ;)



Ah well, I guess I'll just leave it at that.

For anyone reading this thread, Matt's suggestion of using lsof to find
what files/binaries could be using the devices seems to be the best one.


Ty for the input Matt.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: KERNEL - knowing what programs use/need modules

2012-01-01 Thread Matt Mullins
On Tue, Dec 27, 2011 at 8:34 AM, Damien Fleuriot m...@my.gd wrote:
 Now, I'm wondering why in the world a server would need umass, ums and cam ?

 My understanding is that ums is the USB mouse, which we're never going
 to need.

 Umass would be USB mass storage, which again we're never going to need.

You appear to be correct with these two.  My gut tells me these types
of things would be loaded when the corresponding devices are plugged
into the system, but if that's wrong, surely someone here will speak
up.

 Regarding CAM I have absolutely no idea why the module is loaded either.

That's the SCSI/ATA subsystem; if this is the only of your firewalls
to have this module, perhaps it has different disk adapter hardware
than the others or another sysadmin decided to load it manually?

 Are there any ways of finding what programs, if any, require or use said
 modules ?

I'd probably start with judicious use of sysutils/lsof to find any
programs that have the relevant device nodes open.  grep -Rl through
your binary directories might also find something, but I'd expect a
very high false-positive rate with that.

Hope any of this helps,
Matt Mullins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


KERNEL - knowing what programs use/need modules

2011-12-27 Thread Damien Fleuriot
Hello list,


I'm currently upgrading some firewalls following the 5 advisories we
received on the 23rd.


One of these firewalls shows, for no reason that I can fathom, the
following kldstat:


# kldstat
Id Refs AddressSize Name
 1   26 0x8010 8361c0   kernel
 21 0x80a12000 4f9b if_lagg.ko
 31 0x80a17000 5e99 umass.ko
 41 0x80a1d000 42b27cam.ko
 51 0x80a6 22f1 ums.ko


Now, I'm wondering why in the world a server would need umass, ums and cam ?

My understanding is that ums is the USB mouse, which we're never going
to need.

Umass would be USB mass storage, which again we're never going to need.

Regarding CAM I have absolutely no idea why the module is loaded either.



Are there any ways of finding what programs, if any, require or use said
modules ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org