Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2024 10:40:30 +0000
From:      Gary Jennejohn <garyj@gmx.de>
To:        freebsd-current@freebsd.org
Subject:   Re: filemon
Message-ID:  <20240730124030.296986dd@ernst.home>
In-Reply-To: <865xsn6ya9.fsf@ltc.des.dev>
References:  <ZqT6_a_0F8DCUsBm@int21h> <CAFDf7UKxhSu%2BqMGV1KahrSX9ho8vFut4avxNVX4D8QGa6%2B%2BTjQ@mail.gmail.com> <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev>

index | next in thread | previous in thread | raw e-mail

On Tue, 30 Jul 2024 11:10:06 +0200
Dag-Erling Smørgrav <des@FreeBSD.org> wrote:

> Gary Jennejohn <garyj@gmx.de> writes:
> > filemon is not a device, it's an option.  So you can't have "device
> > filemon" in your kernel config file.
>
> There is very little difference between options and devices in kernel
> configuration files, but for what it's worth, filemon is a device, not
> an option.
>

Yes, I know.  I now have device filemon in my kernel config file.

I mentioned that in a followup post, but apparently you didn't see it.

> > I compile it with makeoptions MODULES_OVERRIDE="filemon ..." in my
> > kernel config file.
>
> All that does is build the module as part of the buildkernel process.
> It does not include the module in the kernel, nor does it cause the
> module to be loaded at boot time.
>
> > I also load it from /boot/loader.conf using filemon_load="YES"
>
> This does cause the module to be loaded at boot time, but it's slower
> than loading it later, and it increases memory fragmentation.  A better
> option is to include "filemon" in the kld_list variable in /etc/rc.conf
> or /etc/rc.conf.d/kld.  For instance,
>
>     % cat /etc/rc.conf.d/kld/filemon
>     kld_list="${kld_list} filemon"
>

I'm aware of that.  I've been using FreeBSD since version 1 and was also
a committer for a number of years, so I'm not exactly a tyro..

--
Gary Jennejohn


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240730124030.296986dd>