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
Unknown Object (File)
Tue, Nov 18, 1:56 AM
Unknown Object (File)
Fri, Nov 14, 11:18 AM
Unknown Object (File)
Fri, Nov 14, 3:51 AM
Unknown Object (File)
Fri, Nov 14, 3:20 AM
Unknown Object (File)
Thu, Nov 13, 8:49 PM
Unknown Object (File)
Sat, Nov 8, 2:50 PM
Unknown Object (File)
Sat, Nov 8, 12:08 AM
Unknown Object (File)
Wed, Nov 5, 5:21 AM
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 62309
Build 59193: 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).