> On Jul 31, 2024, at 2:54 AM, Dag-Erling Smørgrav <d...@freebsd.org> wrote:
>
> Miroslav Lachman <000.f...@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?
>
> 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.
>
> DES
> --
> Dag-Erling Smørgrav - d...@freebsd.org
>