From nobody Tue Jul 30 09:10:06 2024 X-Original-To: freebsd-current@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 4WY8ZS6gnXz5RZfD for ; Tue, 30 Jul 2024 09:10:08 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WY8ZS67fCz4BQ4; Tue, 30 Jul 2024 09:10:08 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722330608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lLkiVVU91u5ZFDrfQZGa6tA/z3Xhd6E1SVl2OmwMYhM=; b=V6ojn3/KNzxeZo90+SA1YQzZZ/8jK63gw6/RfNGoPNiLyty/wvcAmaCCD6Wokn9uBfN5Rh AhwIulkTBQmB95rE/LKiDCHutOlgwsLbsezwLKE0IbStmteFgG2tR1649FpKtknCRnMweW SpUXFH8U0OyrYXrvmklaRuRHcK7Bdx3tff458sNZoXezezj163r8bC44733R+71zDJP4lK 0LX7kGdPxVX5UfAQSwYDmGQjg2de75B/G799+GFe+GAVtayGTxCN2i+3AgZSWJYT9MOaZq WF9UX6j0CfdLjdd7TmDphziumd8peikwWDNN+qIoqx7gGpDR/I0hn0r5AdYPTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722330608; a=rsa-sha256; cv=none; b=erOSr44DUpXpii3WpYjNEFv3DaDqeD3m1tnIHdhq+9Fu2zrJjtXap3/WVlk2kernYubtbO 9qLRw5Accxfmz5QIp5gk3yChEOa9DQISW7ugL5I+ohB8puabYXSInb+2qfoiNsxtDdrqfu eGkY/KUWOQzK7U5SoHBOxuyyphUj6uDI8HUK6AHkmEXhWd3I8VRzHQXKq1qFSHaEGIGQwB g2oKs9c7541M3s3mU/tBkm9mTMau5xi4n7cImXv7rPCaRAKv93Yg3HKSlE0hQoL/r5jIXv rZBQhQm7NF4JdyeAH1zIgUh0ChBWfPORqOUINNcjQhuIx7Piiwhifrz25TBBiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722330608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lLkiVVU91u5ZFDrfQZGa6tA/z3Xhd6E1SVl2OmwMYhM=; b=FYP8f7Ft79r7tbl2p8dg2FvMGnKOfgfCuBXVVlLK5WNctmE40RFgLYPZ9ExQ9DTydRymai 4G9dXxs/uuXB3n9Dp093eazvLnr2r0pTy97LgRQRTu+liLtFUYff529zOLr6hGpGYy6Rdc cx3ee+FEx1mdZ8GSeErihYemdQ8XwkFTjeTbplsegBTYcXxvIWX6RWG+ppEmeTdwiUBtdq A7UdVXXbgn2kby49vrok0qH9vEb3cabAlVoWqidCYz2mSlAtd7F4QPPQ7i6afqaBfAYdEX S2xFwmXM4HfInVEms3bptswyaXyXdTxdn3EfqdjK6bS9qSQxJKdycKa9AP4fNw== Received: from ltc.des.dev (unknown [91.174.26.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WY8ZS4c8MzJSj; Tue, 30 Jul 2024 09:10:08 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 7C6441E58B; Tue, 30 Jul 2024 11:10:06 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Gary Jennejohn Cc: freebsd-current@freebsd.org Subject: Re: filemon In-Reply-To: <20240727170122.675f6bfe@ernst.home> (Gary Jennejohn's message of "Sat, 27 Jul 2024 15:01:22 +0000") References: <20240727170122.675f6bfe@ernst.home> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 30 Jul 2024 11:10:06 +0200 Message-ID: <865xsn6ya9.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gary Jennejohn 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. > I compile it with makeoptions MODULES_OVERRIDE=3D"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=3D"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=20 kld_list=3D"${kld_list} filemon" DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org