Date: Wed, 31 Jul 2024 11:40:44 +0800 From: Zhenlei Huang <zlei@FreeBSD.org> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@freebsd.org> Cc: Miroslav Lachman <000.fbsd@quip.cz>, Warner Losh <imp@bsdimp.com>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: filemon Message-ID: <A52830F7-483C-4EA4-A0AE-01D9148E2202@FreeBSD.org> In-Reply-To: <86jzh26793.fsf@ltc.des.dev> 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> <CANCZdfoZ0Gy%2Bzq8YfmBYCgJPsWyxm-7bk0W0vTrzpwRts6vRgw@mail.gmail.com> <f36ffaf3-dbd2-4f9b-a27d-923fb4fcb3fb@quip.cz> <86jzh26793.fsf@ltc.des.dev>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Jul 31, 2024, at 2:54 AM, Dag-Erling Sm=C3=B8rgrav = <des@freebsd.org> wrote: >=20 > Miroslav Lachman <000.fbsd@quip.cz> writes: >> I'm a bit confused. If I understand it right, you say loader.conf >> causes less memory fragmentation, but DES said "it still increases = low >> memory fragmentation". So what is true? And is this something to = watch >> out for, or is memory fragmentation not such a big deal? >=20 > I used the wrong term. The loader loads the kernel and modules into a > particular region of memory, while modules loaded after boot can go > anywhere. Furthermore, modules loaded by the loader cannot be = unloaded. This is not accurate. Indeed the pre-loaded ( loaded by loader ) modules = can be unloaded by kldunload(8). > So loading modules pre-boot does not increase fragmentation, but it = uses > up memory from a much more limited pool than loading them later. >=20 > DES > --=20 > Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A52830F7-483C-4EA4-A0AE-01D9148E2202>