From nobody Wed Jul 12 18:24:45 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R1R3v0cbcz4msMf for ; Wed, 12 Jul 2023 18:24:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R1R3t1qPkz4b4g for ; Wed, 12 Jul 2023 18:24:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20221208.gappssmtp.com header.s=20221208 header.b=ejlj3N50; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::131) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fb9ae4cef6so11952970e87.3 for ; Wed, 12 Jul 2023 11:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1689186296; x=1691778296; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=BXCu0zFlEbzlWkPpDnnQByw62i3h9Jj5qLW7JFMRdoE=; b=ejlj3N50eOD67ocOUa0XbOvtZ8G8iDh5ufeXKiJ4T74mAGUWvVM1woof56onW8r+Gg BtHluhcUbeLow3+qGfC3kbb/5EnpGduJ1MnmfJZzN2vprOhV24QVcyCq0DDZ6p0uMpCy 2v27WWNY/FB9syPAv6SmoGMHhTz+Z2aEiES+CRouIYGK8nzZxNoC91lMUpueU5eM75O+ 88h8jXK2hayj/pV++71o17yQT7Aj5qefU78H1TT7bmJYLCo2xIquNGXiCUdyZOAcHd3c mO74IQJQEmgC2bnRGet24Xshg8xw3k6AZPg0oMyuZhs0kBz6QsX7XtV1mKfQgypuFk22 Tsjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689186296; x=1691778296; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BXCu0zFlEbzlWkPpDnnQByw62i3h9Jj5qLW7JFMRdoE=; b=ZW4liQZfvK2JtCi2D0DwuLUypbN3dewgD3OCaV6oSililKYyUeLGuZ0wBA8ntQW8I9 m4Cuuzibk0cjFpFKT5l8iqxUscjwk21zTTaUJaCSSmGAJYokn5z6H04qjdvFKK+EMGji LTGE8I/432kAmirXiUq38+EuNHKrjTwVIYC+atkBF44+buuod7YAMdy/1ATYblFohVyX 86M2DArTX5xzywBHrel1jTgyTsFcsXRfN/Y1K7q2iX8aES7M1oNf17RyCZCG5cxXsUFH WNym3qg4A3DldwM2/OpU3fW4qFGCw2B/AYfy+Xnjsu2pM6UFThmvKqkQTvNJ4Q1fXomq EijA== X-Gm-Message-State: ABy/qLaG0XdR0cZCwLj+3kpg9b06W+gSA0fkffS3GqqeOcfVt6HRCVOX NWTvpw3hf+csUxzLxaeBQJert1g0LR64SiCCNRY2eFHWtFIvU2fj X-Google-Smtp-Source: APBJJlEmCxSY8cFMcdT1UGYxyJVuXIhZIxJm+/JV/h/vFAdXs2WHcSCgIWPWaQG+7/uz3OS13mFrfuWG0HCCLGT0Hf0= X-Received: by 2002:a05:6512:3d0d:b0:4f9:7aee:8dc5 with SMTP id d13-20020a0565123d0d00b004f97aee8dc5mr19119644lfv.19.1689186296058; Wed, 12 Jul 2023 11:24:56 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Wed, 12 Jul 2023 12:24:45 -0600 Message-ID: Subject: Re: dis/advantages of compiling in-kernel over kldload To: FreeBSD Hackers Content-Type: multipart/alternative; boundary="00000000000022f40c06004e55b9" X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::131:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20221208.gappssmtp.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4R1R3t1qPkz4b4g X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --00000000000022f40c06004e55b9 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 12, 2023, 12:20 PM void 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


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() routin= e will
>only
>run if pf_enable=3DYES 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 y= ou build everything, then you get "tied" 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't matter too much unless you are out of C= PU.... the release modules withh work with a range of kernels.

Warner
--00000000000022f40c06004e55b9--