HomeFreeBSD

vm: Round up npages and alignment for contig reclamation

Description

vm: Round up npages and alignment for contig reclamation

When searching for runs to reclaim, we need to ensure that the entire
run will be added to the buddy allocator as a single unit. Otherwise,
it will not be visible to vm_phys_alloc_contig() as it is currently
implemented. This is a problem for allocation requests that are not a
power of 2 in size, as with 9KB jumbo mbuf clusters.

Reported by: alc
Reviewed by: alc
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28924

Details

Provenance
markjAuthored on Mar 2 2021, 3:19 PM
Reviewer
alc
Differential Revision
D28924: vm: Round up npages and alignment for contig reclamation
Parents
rGc883b6fd8ccd: Include Makefile.inc1 in Makefile.vm, missed in previous change
Branches
Unknown
Tags
Unknown