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)
Fri, Feb 28, 2:57 PM
Unknown Object (File)
Wed, Feb 19, 4:55 AM
Unknown Object (File)
Sat, Feb 8, 5:04 PM
Unknown Object (File)
Sat, Feb 8, 2:17 AM
Unknown Object (File)
Feb 5 2025, 8:40 PM
Unknown Object (File)
Feb 3 2025, 1:42 PM
Unknown Object (File)
Feb 1 2025, 7:20 PM
Unknown Object (File)
Feb 1 2025, 11: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).