From nobody Tue Jul 30 13:22:47 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 4WYGB434RPz5Ry0Y for ; Tue, 30 Jul 2024 13:22:52 +0000 (UTC) (envelope-from SRS0=rmLG=O6=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYGB36qx6z4myH; Tue, 30 Jul 2024 13:22:51 +0000 (UTC) (envelope-from SRS0=rmLG=O6=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 701CCD78C0; Tue, 30 Jul 2024 15:22:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1722345769; bh=FmSCRzP87sMXCqFPiNN3KQV5TUROWR2qbeGGhZX7GuM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=nVEGHCwVCPb7OGnipEg2J1BHqjLqra2nQh/hsAejCpqJsYplVLE88CIhe/lFk98n9 0B5xQ6cGZyacR3xVcopcFA17fJXp9n8jO2/t449/KvPX8wwrgCkiG2WJ4s/08KxNMF 0VrUoDzpL5GDJ4+xYrDVxlVum+6Ba4I1Gus6GRXA= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 33FB1D78AF; Tue, 30 Jul 2024 15:22:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1722345768; bh=FmSCRzP87sMXCqFPiNN3KQV5TUROWR2qbeGGhZX7GuM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=PJfeC39I8ArvHDdFawLkjMHfeiwrBoFFn20YCylTIy6d1qAjRrXtFlns7ir/KB4E+ Em86ZfilRFO5hRyLlcBpJH5x333uMSVwIAIiGFb+TGzN+eDSreA/jyW5bABiwgzubn CcDAatngdZAtcEnS8oL/5BGEuKYxII7Ocb0Di5mU= Message-ID: Date: Tue, 30 Jul 2024 15:22:47 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: filemon To: Michael Gmelin Cc: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= , freebsd-current@freebsd.org References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <20240730145556.0907ca84.grembo@freebsd.org> Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <20240730145556.0907ca84.grembo@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] X-Rspamd-Queue-Id: 4WYGB36qx6z4myH On 30/07/2024 14:55, Michael Gmelin wrote: > > On Tue, 30 Jul 2024 11:38:57 +0200 > Miroslav Lachman <000.fbsd@quip.cz> wrote: [..] >> Does this also apply today? I recently read from someone on a mailing >> 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) >> > > 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=YES 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> > w> Warner > > Cheers Yes, this is it! I didn't remember the subject, so I couldn't find it. Thank you for the original message! Kind regards Miroslav Lachman