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, Apr 15, 7:30 PM
Unknown Object (File)
Sun, Apr 13, 7:17 PM
Unknown Object (File)
Sun, Apr 13, 3:01 AM
Unknown Object (File)
Mar 18 2025, 1:32 AM
Unknown Object (File)
Mar 12 2025, 10:55 PM
Unknown Object (File)
Feb 28 2025, 2:57 PM
Unknown Object (File)
Feb 19 2025, 4:55 AM
Unknown Object (File)
Feb 8 2025, 5:04 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).