From nobody Tue Jul 30 12:55:56 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 4WYFbX31jsz5RvhQ for ; Tue, 30 Jul 2024 12:56:24 +0000 (UTC) (envelope-from grembo@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 4WYFbX0rqRz4kJL; Tue, 30 Jul 2024 12:56:24 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722344184; 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=z7Hd8BZ28/lpWmw9f9G8Clw3Mtumx3Adb8Abmop0ec8=; b=kGwg65ugwH4NJIGUsjetmnAb5b1PcDUOUeUoQMBAt+oI87A/uu0nOl1WwCfkRyYFw9oIY5 gP/6Pm8tQ2DY4lUOxIfjyHGuUJ9ABzxpWHoR/FOMzuW4ImLf8ky7YQbEdZFhZ4YMItLcrs oQN5y4OwAwunJFcFJ5j+mdu+ZG6nxbh9JFVH+fIt5/ZVRNYhsmwL+ufTKKQHOzYC4vhTlf T9DVd0grhffc8YRBHUyPIGx1UjwG7hcLL95OKDGLs0ogWOaLQ2QKzijGcRhiDslFRQgPaa E0Xgm10wzcqSIM2XmIyE+xwJwE/1oIbRx1dYYBcXzWUyX+gTkVYYc/jicxaKtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722344184; a=rsa-sha256; cv=none; b=u0wc3Q/QjsMkApK3WXYRXRtSlumZWvJUWpPzv2i7+/ZGvRQ39IQMfEmbT9keblVL9SaP6Q kPyuZ6rGIPXZkmMab3JcQhhbJ325z2+uLtDnd4ZKA1oFdJBjGhJBJ/el8aWFFspDy0TMbE Iv/9T77g6zfEjNjHNrjmldNp/LPnGTOr7NeDtct5SZBTKvP/iCflaG0RE1GU8zaUuhIad0 OIR1xnV+uxnhIb9veEzdhByEWPV+o/dLkkyw7H8Uz2fYlRvMHVGjadXirePLl+2tWO563z KpRgsmRDsk1RUbSANRQpNrOC7MtPHL0W/m3pU+pXJtUVGA9zfcaSEhS9p6bjSw== 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=1722344184; 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=z7Hd8BZ28/lpWmw9f9G8Clw3Mtumx3Adb8Abmop0ec8=; b=dXqWbiFyxXNEppXANvyhfifuJmhttIFYYu5Rte5Aa2yqT1Df9WWFECP/vQXSsyIaN4RVep oClVTcbzkSf/qKEJD2J9GDaYgKD8QVzJsJ1+llEf6LOxrC6TDSFplxnJawp6nyUyJxk5H6 xWhIo6d8o/uSbzpLJ8huKAU1Hn4UW6EMk+aUWuGujxbpl8B4A6NSfHa5q1wv8otceJ1TMM j/k3Mq2iUYn1PBRDHo0CaJl33jBmD5WAWBE+inzgYxWFvwfLpwUvN9bgAaWHREHXEmQpQm OP3vQXbM8K9yHY9NhmlCmLd7od9lIYBZoTo3tqeIpUNlSRUlTON9d4+0oug6+A== Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R10" (verified OK)) (Authenticated sender: grembo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WYFbW4F2KzPMQ; Tue, 30 Jul 2024 12:56:23 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 3c0416cb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 30 Jul 2024 12:56:21 +0000 (UTC) Date: Tue, 30 Jul 2024 14:55:56 +0200 From: Michael Gmelin To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= , freebsd-current@freebsd.org Subject: Re: filemon Message-ID: <20240730145556.0907ca84.grembo@freebsd.org> In-Reply-To: References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= 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 On Tue, 30 Jul 2024 11:38:57 +0200 Miroslav Lachman <000.fbsd@quip.cz> wrote: > On 30/07/2024 11:10, Dag-Erling Sm=C3=B8rgrav wrote: > > Gary Jennejohn writes: =20 >=20 > [..] >=20 > >> I also load it from /boot/loader.conf using filemon_load=3D"YES" =20 > >=20 > > 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, > >=20 > > % cat /etc/rc.conf.d/kld/filemon > > kld_list=3D"${kld_list} filemon" =20 >=20 > Does this also apply today? I recently read from someone on a mailing=20 > list that the kld_list in rc.conf is no longer needed, that any > problems it used to solve are solved, and that the preferred way is > to load everything from loader.conf. So I'm curious, what's the right > thing to do then? (I load most of my modules from rc.conf) >=20 I think this is what you're referring to, quoting Warner (emphasis is mine): https://lists.freebsd.org/archives/freebsd-current/2024-May/005953.html w> Also, in this case, kld_list is a terrible place to load the files. w> You're better off loading them with xxx_load=3DYES in loader.conf. The w> reason is that both uhid and ums will match your mouse. kld_list w> loads these in a random order (effectively) and the first one to w> load will claim the device, since there's no re-probe when the next w> one loads. **You should never use it, unless the module you're w> loading isn't supported by the boot loader (like drm-kmod)**. The old w> advice was to put everything in kld_list and it would speed up boot, w> but all the performance bugs in the boot loader have been fixed by a w> combination of moving to UEFI (which is generally faster), BIOSes w> with performance bugs disappearing 10 years ago and block caching w> being added to the boot loader. It should almost always be empty or w> just drm-mod these days (unless you somehow have special needs). w> w> By adding uhid last to this list in this way, you're guaranteeing w> you'll hit this bug because it's not after ums, and that things w> won't work. w>=20 w> Warner Cheers --=20 Michael Gmelin