]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_phys: add binary segment search
authorDoug Moore <dougm@FreeBSD.org>
Fri, 16 Jun 2023 06:43:45 +0000 (01:43 -0500)
committerDoug Moore <dougm@FreeBSD.org>
Fri, 16 Jun 2023 06:43:45 +0000 (01:43 -0500)
commit9e8174289236de996199aadc6357c05eafba3b38
treec5027c4a3b077260fb4ff5b2d19f5115096aadf5
parent0917f925b46e3142c4373d1591bf22014d0f338e
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
sys/arm64/arm64/pmap.c
sys/vm/vm_page.c
sys/vm/vm_page.h
sys/vm/vm_phys.c
sys/vm/vm_phys.h