Re: dis/advantages of compiling in-kernel over kldload

From: Warner Losh <imp_at_bsdimp.com>
Date: Wed, 12 Jul 2023 18:24:45 UTC
On Wed, Jul 12, 2023, 12:20 PM void <void@f-m.fm> wrote:

> On Wed, Jul 12, 2023 at 12:04:21PM -0600, Warner Losh wrote:
> >
> >Yes. /etc/rc.d/pf doesn't check /etc/pf.conf. Its pf_start() routine will
> >only
> >run if pf_enable=YES in /etc/rc.conf (or related file, which pf.conf is
> not)
>
> Thanks for clarifying.
> Is there advantage to compiling it in-kernel? Or disadvantage?
>

Depends. If you build everything, then you get "tied" modules that are only
for a specific kernel. If you run the released modules, then there can be a
small performance hit that don't matter too much unless you are out of
CPU.... the release modules withh work with a range of kernels.

Warner

>