From nobody Wed Jul 31 10:11:13 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 4WYntj2B7zz5Rcpy for ; Wed, 31 Jul 2024 10:11:25 +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 4WYnth4rBzz49qP for ; Wed, 31 Jul 2024 10:11:23 +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 46VABDsI071341; Wed, 31 Jul 2024 19:11:14 +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=1722420674; bh=RITcHC5BLWnJyaEF9h9tDX9KzLS6pv0zqEETq4IxqDA=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=RO8AIxTmAQ+PhusDl/cJ65ArU5byysNNISe34KWYTjzmtPwQbjNRPSetroBlZ/XEQ BzdzArwIs3uVwrWLfCQNAvdyq1b8W7lh6Hp7UsefCgTduQ0/XIk9Kzrv9seTQmBXFP 0wAXJOCFELMSinn4oJmIiFT4s2BZCwt+aOpaFONo= Date: Wed, 31 Jul 2024 19:11:13 +0900 From: Tomoaki AOKI To: void Cc: freebsd-current@freebsd.org Subject: Re: filemon Message-Id: <20240731191113.ec80be6bcba46cf91f59a906@dec.sakura.ne.jp> In-Reply-To: References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <20240730235707.312d5493197351c9f7e8e649@dec.sakura.ne.jp> 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=US-ASCII 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:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4WYnth4rBzz49qP On Tue, 30 Jul 2024 16:20:10 +0100 void wrote: > On Tue, Jul 30, 2024 at 11:57:07PM +0900, Tomoaki AOKI wrote: > > >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. > > This is why I went looking for filemon as kernel device in the manpage initially. > Generally, in the kernel config I'll comment out stuff thats not going to be used > and add stuff i know is needed, instead of using loader.conf or other methods. > -- If so, linking filemon into kernel is a bad idea. Still consumes staging area, as the kernel becomes larger. Would suppress the size of module header, though. Loading modules via /boot/loader.conf[.local] would be better limited with what actually needed to boot (like zfs.ko for Root on ZFS) and expricitly required to do so. -- Tomoaki AOKI