Page MenuHomeFreeBSD

vm_phys_early_alloc(): Prefer allocation at boundaries by default
Needs ReviewPublic

Authored by olce on Jan 23 2025, 5:16 PM.
Tags
None
Referenced Files
F168036124: D48639.id149795.diff
Wed, Aug 26, 1:32 AM
F167988609: D48639.diff
Tue, Aug 25, 7:01 PM
F167963424: D48639.id.diff
Tue, Aug 25, 3:52 PM
Unknown Object (File)
Mon, Aug 24, 12:40 PM
Unknown Object (File)
Sat, Aug 22, 9:43 AM
Unknown Object (File)
Fri, Aug 21, 7:09 PM
Unknown Object (File)
Fri, Aug 21, 11:34 AM
Unknown Object (File)
Sat, Aug 15, 5:00 PM
Subscribers

Details

Reviewers
markj
dougm
alc
Summary

This is in preparation for a revamp of vm_page_startup() that will try
to allocate early memory at boundaries in order to reduce the span of
physical addresses to cover in the VM_PHYSSEG_DENSE model.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61938
Build 58822: arc lint + arc unit

Event Timeline

olce requested review of this revision.Jan 23 2025, 5:16 PM

I think it makes sense to revise this change to be conditional on VM_PHYSSEG_DENSE (and on the condition: vm_domains == 1 or PMAP_HAS_PAGE_ARRAY absent) in order to avoid disabling the anti-fragmentation mechanism on VM_PHYSSEG_SPARSE.

Impacts of parent revisions' changes.

I think it makes sense to revise this change to be conditional on VM_PHYSSEG_DENSE (and on the condition: vm_domains == 1 or PMAP_HAS_PAGE_ARRAY absent) in order to avoid disabling the anti-fragmentation mechanism on VM_PHYSSEG_SPARSE.

In the end not needed, as I changed the policy of allocation at boundaries to have a similar anti-fragmentation mechanism (see D48365).