Searched hist:c6a70eaea886b1c530363ad48d9d6cf3f34a751b (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/vm/ |
H A D | vm_fault.c | diff c6a70eaea886b1c530363ad48d9d6cf3f34a751b Sun Mar 18 17:49:30 CET 2018 Mark Johnston <markj@FreeBSD.org> 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
|