HomeFreeBSD

vm_phys: add binary segment search

Description

vm_phys: add binary segment search

Replace several sequential searches for a segment that contains a
phyiscal address with a call to a function that does it by binary
search. In vm_page_reclaim_contig_domain_ext, find the first segment
to reclaim from, and reclaim from each subsequent appropriate segment.
Eliminate vm_phys_scan_contig.

Reviewed by: alc, markj
Differential Revision: https://reviews.freebsd.org/D40058

Details

Provenance
dougmAuthored on Jun 16 2023, 6:43 AM
Reviewer
alc
Differential Revision
D40058: vm: reduce work of reclamation search
Parents
rG0917f925b46e: bhyve: add basic CRB interface for TPM devices
Branches
Unknown
Tags
Unknown