From nobody Tue Jul 30 10:31:16 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 4WYBN64VMxz5RhfL for ; Tue, 30 Jul 2024 10:31:18 +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 4WYBN63rKMz4QP2; Tue, 30 Jul 2024 10:31:18 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722335478; 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=F+XeTcluS2U3+W0ack7mar3CQX83ULpeaFUO5WeGlBg=; b=ZFUHNlXtVZ08SjhjVZhkcMOXijLdx8Zjqs/km8e4fXx6sqtVSK5VbBICtLePm5SaN4EzDE Q9jh6mgXQJ+/GD9o+s8XWXNSNdXC8El9JggduMnocvcMApBBmMQF8oZuDPQHdjyDHe650f IPU5Cnw+C8AafC1hN8KBtVd1+tJSFNXBE7sASarabopR+XHQ9dIGpnHe+uA+0HYw2qDjAB joZr7KUSmWtzZ70sSQuw9aHkUhB/RB0cvedqFkTUtQVB+/ebcAWjaJGoqQ5T0pJyzphxfp tF4M9dgO/1fbWlpZqHE8L29IjJTYZEu1CAJ8Mmmdzx9/1f7a0US/0TXHOC2onQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722335478; a=rsa-sha256; cv=none; b=i3vdBwZFUH3L/syGaBji9xBdbELrlt83ITLFj997L2gien7OXNSozh0UNj6LiTUi5i1rY1 1bBpwD2VK9ZLp3mwBdbqKA+Gxg1nisJEhglDEzn0omFOUvFXX08D9nPLrKcoT5llnVKTfd tyBRo8osB8Fdeveru1HqP2eCdshgyes8SYxgX11JOiQghvK+a5BhP/DE34y2vNWLQLTund txn5rsa+TzICeBPHAaKjgSVPccqTLEFn879u5Bf/q00NYwh2IoQnQYm37Edh8Siy+vXF9q OY7aZCr4OVePOgKthhGQFNHLqKvAtYHso5TSsEmE3pcKeFPSwplJsL9sCeqq/Q== 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=1722335478; 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=F+XeTcluS2U3+W0ack7mar3CQX83ULpeaFUO5WeGlBg=; b=Qm1rdCP9jFop/Xe6TxM7rIo4bervSQOzFQO7InPWmvy2u7DXVziJJcexoX95K+SxkcHMPu sJpjMI/OmKBpr0RQLMU9Nijmaj+Hf7opd2RfCp1j4AnDHR9ChLlEOKnp0j+++ye0+iMv12 VLrd65ldgVQh4o3EwEO+5FqsewoheNprSjhr33gmC/gttGwwWdw0q2Bmx9s1/Z7naCjEcJ TOTn9Gb8imku/uWfbGeGGj03Rla5pSWwCxLRWlsX4TLnJg/YIqZ/Ak81AzrSvMHBIH4rVG dN57RIZVBnKs96wwMVPoZZwx4JqFekFYhpyxUUJrQuoqpae/a1PDUpLYLwaNpA== Received: from ltc.des.dev (unknown [IPv6:2a01:e0a:386:9c20:922e:16ff:fef1:acef]) (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 4WYBN62j6RzLHS; Tue, 30 Jul 2024 10:31:18 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 998A41E943; Tue, 30 Jul 2024 12:31:16 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-current@freebsd.org Subject: Re: filemon In-Reply-To: (Miroslav Lachman's message of "Tue, 30 Jul 2024 11:38:57 +0200") References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 30 Jul 2024 12:31:16 +0200 Message-ID: <86sevr5fyj.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 Miroslav Lachman <000.fbsd@quip.cz> writes: > Dag-Erling Sm=C3=B8rgrav 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. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org