HomeFreeBSD

vm: add unlocked page lookup before trying vm_fault_soft_fast

Description

vm: add unlocked page lookup before trying vm_fault_soft_fast

Shaves a read lock + tryupgrade trip most of the time.

Stats from doing a kernel build (counters not present in the tree):
vm.fault_soft_fast_ok: 262653
vm.fault_soft_fast_failed_other: 41
vm.fault_soft_fast_failed_no_page: 39595772
vm.fault_soft_fast_failed_page_busy: 1929
vm.fault_soft_fast_failed_page_invalid: 22183

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D39268

Details

Provenance
mjgAuthored on Mar 25 2023, 2:40 PM
Reviewer
kib
Differential Revision
D39268: vm: add unlocked page lookup before trying vm_fault_soft_fast
Parents
rG22eb66d961dc: vfs cache: always assert on ndp->ni_resflags
Branches
Unknown
Tags
Unknown