From nobody Tue Jul 30 14:57:07 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 4WYJH36Wcjz5S6LF for ; Tue, 30 Jul 2024 14:57:19 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYJH31zc5z56Kd; Tue, 30 Jul 2024 14:57:18 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 46UEv7x7021626; Tue, 30 Jul 2024 23:57:08 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1722351428; bh=c3scHG5Ag9+p1JQrjBHah6U2GMkGWLgJeeq5nF6VcEU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=RpYKZIcDSsXhvRAbDktXAUehGq/a0nK4JfpABoU7RRzzwUV7TI8wFYopSdBaTsnCL 6XIUtrpLZh67LJ0pyUNd+OjeiwIoEr2pv/8TcBPcYjXjFfZVOKA1RVs+EfZ37Zgbip UG/GlMxAAxF12sGC4ixNFDpk2oKGKyfuIodKQ2iI= Date: Tue, 30 Jul 2024 23:57:07 +0900 From: Tomoaki AOKI To: Alastair Hogge Cc: freebsd-current@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz>, Dag-Erling =?UTF-8?B?U23DuHJncmF2?= Subject: Re: filemon Message-Id: <20240730235707.312d5493197351c9f7e8e649@dec.sakura.ne.jp> In-Reply-To: References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.1) 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: 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:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4WYJH31zc5z56Kd On Tue, 30 Jul 2024 19:22:31 +0800 Alastair Hogge wrote: > > > On 30 July 2024 5:38:57 pm AWST, Miroslav Lachman <000.fbsd@quip.cz> wrote: > >On 30/07/2024 11:10, Dag-Erling Smørgrav wrote: > >> Gary Jennejohn writes: > > > >[..] > > > >>> I also load it from /boot/loader.conf using filemon_load="YES" > >> > >> 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, > >> > >> % cat /etc/rc.conf.d/kld/filemon > >> kld_list="${kld_list} filemon" > > > >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. > > Was it the following mail from Warner on a relates commit? > > https://lists.freebsd.org/archives/dev-commits-src-main/2024-May/024029.html > > -- > Sent from a device with a tiny bloody screen and no hard keyboard; please excuse my brevity. Seems to be related to me, but only with single aspect, loading speed. Another aspect is that loading multiple too large modules easily makes boots crash. Staging area (memory region which loader allocates to load kernel and modules, and maybe configured buffers) is limited. Loading zfs.ko and GPU drivers (drm.ko, nvidia-drm.ko, nvidia-modeset.ko, nvidia.ko and so on) via /boot/loader.conf[.loal] alltogether easily makes boot to crash on module loads. A few of examples related: Bug 277967 [1], Bug 277364 [2], Bug 277827 [3] You would find much, much more on forums.freebsd.org. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277967 [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277364 [3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277827 -- Tomoaki AOKI