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
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28924

(cherry picked from commit 0401989282d1bb9972ae2bf4862c2c6c92ae5f27)

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
rG3a0ffc48b739: nfsclient: Fix ReadDS/WriteDS/CommitDS nfsstats RPC counts for a NFSv3 DS
Branches
Unknown
Tags
Unknown