Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2023 12:24:45 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: dis/advantages of compiling in-kernel over kldload
Message-ID:  <CANCZdfrTSTaKYjtXqqCrKnyw3j1QPPSkPaj0L3Y=JwHO%2BS-VWA@mail.gmail.com>
In-Reply-To: <ZK7u00XORTTe-2kK@int21h>
References:  <ZK7mnohS12eEYoV2@int21h> <CANCZdfo1z9xq2%2BZNoYmudxkrR9=c_9Eg9NOECKU8kwgoGi7pbA@mail.gmail.com> <ZK7pqlDKY4JBkvek@int21h> <CANCZdfqYSgGMT=JE8h16n0zVYbrWYYgggJwsJK4Z2QFoE8Es4g@mail.gmail.com> <ZK7u00XORTTe-2kK@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000022f40c06004e55b9
Content-Type: text/plain; charset="UTF-8"

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

>

--00000000000022f40c06004e55b9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Wed, Jul 12, 2023, 12:20 PM void &lt;<a href=3D"mai=
lto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex">On Wed, Jul 12, 2023 at 12:04:21PM -0600, Warner Losh wrote:<br>
&gt;<br>
&gt;Yes. /etc/rc.d/pf doesn&#39;t check /etc/pf.conf. Its pf_start() routin=
e will<br>
&gt;only<br>
&gt;run if pf_enable=3DYES in /etc/rc.conf (or related file, which pf.conf =
is not)<br>
<br>
Thanks for clarifying.<br>
Is there advantage to compiling it in-kernel? Or disadvantage?<br></blockqu=
ote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Depends. If y=
ou build everything, then you get &quot;tied&quot; modules that are only fo=
r a specific kernel. If you run the released modules, then there can be a s=
mall performance hit that don&#39;t matter too much unless you are out of C=
PU.... the release modules withh work with a range of kernels.</div><div di=
r=3D"auto"><br></div><div dir=3D"auto">Warner</div><div dir=3D"auto"><div c=
lass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

--00000000000022f40c06004e55b9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrTSTaKYjtXqqCrKnyw3j1QPPSkPaj0L3Y=JwHO%2BS-VWA>