HomeFreeBSD

Avoid dequeuing the fault page during a soft fault.

Description

Avoid dequeuing the fault page during a soft fault.

Such pages are re-enqueued at the end of the fault handler, preserving
LRU. Rather than performing two separate operations per fault, simply
requeue the page at the end of the fault (or bump its activation count
if it resides in PQ_ACTIVE, avoiding the page queue lock entirely).
This elides some page lock and page queue lock operations in common
cases, e.g., CoW faults.

Note that we must still dequeue the source page for "optimized" CoW
faults since the page may not remain enqueued while it is moved to
another object.

Reviewed by: alc, kib
Tested by: pho
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D14625

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D14625: Avoid dequeuing the page found by a soft fault.
Parents
rS331130: Have vm_page_{deactivate,launder}() requeue already-queued pages.
Branches
Unknown
Tags
Unknown