Date: Tue, 30 Jul 2024 08:30:24 -0600 From: Warner Losh <imp@bsdimp.com> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: filemon Message-ID: <CANCZdfoZ0Gy%2Bzq8YfmBYCgJPsWyxm-7bk0W0vTrzpwRts6vRgw@mail.gmail.com> In-Reply-To: <a5471d18-7f88-4e24-8518-2c7a67ddd7f1@quip.cz> References: <ZqT6_a_0F8DCUsBm@int21h> <CAFDf7UKxhSu%2BqMGV1KahrSX9ho8vFut4avxNVX4D8QGa6%2B%2BTjQ@mail.gmail.com> <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <a5471d18-7f88-4e24-8518-2c7a67ddd7f1@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000002c2503061e77d2d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 30, 2024, 3:39=E2=80=AFAM Miroslav Lachman <000.fbsd@quip.cz> w= rote: > On 30/07/2024 11:10, Dag-Erling Sm=C3=B8rgrav wrote: > > Gary Jennejohn <garyj@gmx.de> writes: > > [..] > > >> I also load it from /boot/loader.conf using filemon_load=3D"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=3D"${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. So I'm curious, what's the right thing to > do then? (I load most of my modules from rc.conf) > Either or for filemon. Either rc.conf's kld_list or loader.conf's filemon_load=3DYES. I've been recommending loader.conf since there's slight= ly less memory fragmentation, but even that effect is small. Only drm kmod has to be in kld_list. The performance advantage of the former is no longer there (for UEFI systems) or is very hard to measure on all but super fringe machines (for BIOS). Net booting would favor kld_list though. Warner Kind regards > Miroslav Lachman > > > > --0000000000002c2503061e77d2d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Tue, Jul 30, 2024, 3:39=E2=80=AFAM Miroslav Lachman= <<a href=3D"mailto:000.fbsd@quip.cz">000.fbsd@quip.cz</a>> wrote:<br= ></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-= left:1px #ccc solid;padding-left:1ex">On 30/07/2024 11:10, Dag-Erling Sm=C3= =B8rgrav wrote:<br> > Gary Jennejohn <<a href=3D"mailto:garyj@gmx.de" target=3D"_blank" r= el=3D"noreferrer">garyj@gmx.de</a>> writes:<br> <br> [..]<br> <br> >> I also load it from /boot/loader.conf using filemon_load=3D"Y= ES"<br> > <br> > This does cause the module to be loaded at boot time, but it's slo= wer<br> > than loading it later, and it increases memory fragmentation.=C2=A0 A = better<br> > option is to include "filemon" in the kld_list variable in /= etc/rc.conf<br> > or /etc/rc.conf.d/kld.=C2=A0 For instance,<br> > <br> >=C2=A0 =C2=A0 =C2=A0 % cat /etc/rc.conf.d/kld/filemon<br> >=C2=A0 =C2=A0 =C2=A0 kld_list=3D"${kld_list} filemon"<br> <br> Does this also apply today? I recently read from someone on a mailing <br> list that the kld_list in rc.conf is no longer needed, that any problems <b= r> it used to solve are solved, and that the preferred way is to load <br> everything from loader.conf. So I'm curious, what's the right thing= to <br> do then? (I load most of my modules from rc.conf)<br></blockquote></div></d= iv><div dir=3D"auto"><br></div><div dir=3D"auto">Either or for filemon. Eit= her rc.conf's kld_list or loader.conf's filemon_load=3DYES. I'v= e been recommending loader.conf since there's slightly less memory frag= mentation, but even that effect is small. Only drm kmod has to be in kld_li= st.</div><div dir=3D"auto"><br></div><div dir=3D"auto">The performance adva= ntage of the former is no longer there (for UEFI systems) or is very hard t= o measure on all but super fringe machines (for BIOS). Net booting would fa= vor kld_list though.</div><div dir=3D"auto"><br></div><div dir=3D"auto">War= ner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_= quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-= left:1px #ccc solid;padding-left:1ex"> Kind regards<br> Miroslav Lachman<br> <br> <br> <br> </blockquote></div></div></div> --0000000000002c2503061e77d2d7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoZ0Gy%2Bzq8YfmBYCgJPsWyxm-7bk0W0vTrzpwRts6vRgw>