Page MenuHomeFreeBSD

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

Authored by olce on Thu, Jan 23, 5:16 PM.

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.Thu, Jan 23, 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.