From owner-freebsd-questions@freebsd.org Mon Oct 22 14:45:30 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E134FFEBD3 for ; Mon, 22 Oct 2018 14:45:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80D6B7D596; Mon, 22 Oct 2018 14:45:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.180.181]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MRCFu-1g0D622zpM-00N9cq; Mon, 22 Oct 2018 16:32:30 +0200 Received: from r56.edvax.de ([92.193.180.181]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MRCFu-1g0D622zpM-00N9cq; Mon, 22 Oct 2018 16:32:30 +0200 Date: Mon, 22 Oct 2018 16:32:30 +0200 From: Polytropon To: Kyle Evans Cc: grahamperrin@gmail.com, FreeBSD Mailing List Subject: Re: rc.conf(5): comparing kld_list and kldload Message-Id: <20181022163230.087a3423.freebsd@edvax.de> In-Reply-To: References: <20181022160457.6f44d232.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:r4jdHP8PYVNbPtbVCnxEnzQefYeQSJYfRVz3ZXCezzVqperF2dy t8mTRNxmU0CdWdN2w0jSZxHQEQnh411kbt2hqEkt1dCSINr/cLBkkRoOdgJhznHbZq/1iA5 LijG9+aHWkaIzbhYiEntVBGRgXkEZ7rvXfqcUZbT5hJk0KeUU8ZXbZVZSrhgetUWoaMT0O5 qbgzbxn+f9KXpDFPrGexQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:q2zotsOSJFQ=:cN2lYwJms7t44PbB40YqY3 7RcM2UGrrTZ60x6/rE+EfW6O+ITKcbTN3LfljkupInP3iHXQIwh3UnCngCdC3mmY+DMuTgQNJ DmJz9MJG1hIbSgFXtzI3Gs6I6FRUBZpO03CLb6MrLQiuw/EkToX6OQmeSIxq19QMA5LRlBGqw ibBKj7/xg5+mCanHwLNHoRE8ftHiAGOq3r34qqkfuXn7eh/9TVUKy7vm/HBDhPq66jYUxovGJ ZKKCuVmi6Xi5P25Ce7cJfNQLPZ0rrvWZbgZCbNwt/cdI5Jx7KhyRAk46BWvrmCtbnPOrOvcTa yAZpIiT7gehRa51H46VR7pVxopf0eVjon5UJYgkQSB7z1dx6/gcGA6qEXzFsuFV7qxdzDH5gf 1b5ag2FhlohynRPApCplTjjOWodLQnm3OZAP98oVJ47scsZzmMMEZTlhWlkDyTKBIOej3ikBX uNnkbnykj97sAE6uu57D+g9JjU1ExO5uGjxd67ostG7o0FPsfc3KeYizc8xykGHt2gHCAUthY f0ldpv545G1FHMhMENN/ONgzMSSAeFS/7K4osIGEEdjqlX28aGBr8ofjyG/KB5//Or4yK42/o t1vbHZVVL4e3m3a9CnKSaYtL10KyhNO6+e47ltRkgK+KIZgaHhXdxDFdzMoujVFxUQ+OXTQFh k2WHyIKjdC+xmSSmBknABmtsq0t13nm52JIj3cZdb70pcBexvjwXMIPvKtTs/cZ1gow6AQ8ye SYowbV5TykiT5PRx X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 14:45:30 -0000 On Mon, 22 Oct 2018 09:07:40 -0500, Kyle Evans wrote: > On Mon, Oct 22, 2018 at 9:05 AM Polytropon wrote: > > > > On Mon, 22 Oct 2018 05:26:18 +0100, Graham Perrin wrote: > > > From : > > > > > > > … > > > > > > > > kld_list (str) A list of kernel modules to load right after > > > > the local disks are mounted. Loading modules at > > > > this point in the boot process is much faster than > > > > doing it via /boot/loader.conf for those modules > > > > not necessary for mounting local disk. > > > > … > > > > > > Is there ever any benefit to using kldload instead of kld_list? > > > > It is important when you consider the _time_ during system > > startup. Sometimes modules require to be loaded at a certain > > time, that's when you can (or cannot) use kld_list, which is > > the _default_ method of loading kernel modules. > > > > early: via /boot/loader.conf > > > > intermediate: via kld_list in /etc/rc.conf > > > > almost final: via kldload calls in /etc/rc.local > > > > It's also possible for scripts in /usr/local/etc/rc.d/ to > > load kernel modules, and you could even add something to > > /etc/rc itself to achieve "really final" loading (even though > > manual additions to /etc/rc are discouraged for good reasons). > > > > It's worth noting that /boot/loader.conf is not an option for drm > modules in head and stable/12, so only the above "intermediate" and > "almost final" options are suitable for testing here. Exactly! Before the kld_load setting appeared in /etc/rc.conf, the common suggestion for such cases was to add a call to kldload in the /etc/rc.local script for this specific purpose. The mechanism that /etc/rc provides makes this much more convenient. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...