HomeFreeBSD

vm_pageout_scan_inactive: take a lock break

Description

vm_pageout_scan_inactive: take a lock break

In vm_pageout_scan_inactive, release the object lock when we go to
refill the scan batch queue so that someone else has a chance to acquire
it. This improves access latency to the object when the pagedaemon is
processing many consecutive pages from a single object, and also in any
case avoids a hiccup during refill for the last touched object.

Reviewed by: alc, markj (previous version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D45288

(cherry picked from commit a216e311a70cc87a5646f4306e36c60a51706699)

Details

Provenance
rlibbyAuthored on May 24 2024, 3:52 PM
markjCommitted on Jul 10 2025, 9:00 PM
Reviewer
alc
Differential Revision
D45288: vm_pageout_scan_inactive: take a lock break
Parents
rG791ac36668d5: random: Remove ARGSUSED annotations from random_harvestq.c
Branches
Unknown
Tags
Unknown