From nobody Tue Jul 30 13:36:17 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 4WYGTd2R4Dz5S0Nw for ; Tue, 30 Jul 2024 13:36:21 +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 4WYGTd1Tmbz4pfc; Tue, 30 Jul 2024 13:36:21 +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 B2174D78A5; Tue, 30 Jul 2024 15:36:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1722346579; bh=mEVuOX3muYlFL6u3HFFDaQZkdOoCTohE59A9v3YzI4M=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ggBky5Mb2/5ADQ/av86DjQ3kOnsS2x9c2G/BGNAMib8NHIjavwr5bjWXpU8dq3lV2 UNk/EBXfPLpUG7aUFF5Dn2bXoGm94vL8stCxY4C3r41CS/vWAHkQdEcX3oSSjPBImc q/S7WK2dGqfi/TNTVUjn1sJNm5ntAIjsW23PIGuo= 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 117C1D78C0; Tue, 30 Jul 2024 15:36:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1722346578; bh=mEVuOX3muYlFL6u3HFFDaQZkdOoCTohE59A9v3YzI4M=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=nDVhqPdTveqw5ywDx8pZu9OtHwcf31yGkgNCh1mAX0UoXUYLNVM6bzaE1X+C86MOr GzPjtiOz4MGS1E/SEKHbZAIx8V4DUSC1Gs6uJy2CTmjpuMQE16Vvb3gj0HkQHFH4cl SiSwmY3AJmfDu20zzrH9kI4XhxBOEBRe7x3HyJQY= Message-ID: <8d258cc9-8b13-4c62-9fc4-c6babac17187@quip.cz> Date: Tue, 30 Jul 2024 15:36:17 +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: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: freebsd-current@freebsd.org References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <86sevr5fyj.fsf@ltc.des.dev> Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <86sevr5fyj.fsf@ltc.des.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: 4WYGTd1Tmbz4pfc On 30/07/2024 12:31, Dag-Erling Smørgrav wrote: > Miroslav Lachman <000.fbsd@quip.cz> writes: >> Dag-Erling Smørgrav writes: >>> This does cause the module to be loaded at boot time, but it's slower >>> than loading it later, and it increases memory fragmentation. >> 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, > > Loader I/O performance is much better these days so loading modules > pre-boot doesn't slow the boot down much any more, but it's still more > than zero, and it still increases low memory fragmentation, and you > still can't unload a module that was loaded pre-boot. > >> and that the preferred way is to load everything from loader.conf. > > I suspect you're extrapolating here. There is a very small number of > cases where loading pre-boot is required (e.g. zfs.ko if your root is on > zfs) or recommended (e.g. USB HID drivers due to probe ordering issues) > but in the majority of cases, it is still better (even if only slightly) > to wait until after boot. Thank you for the explanation. I will continue to use kld_list. Kind regards Miroslav Lachman