CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/08/31 11:06:54

Modified files:
        sys/uvm        : uvm_pdaemon.c 

Log message:
Stop scanning the inactive page queue when we're out of resources needed
to swap pages out.  By starting a fresh scan the next time the pagedaemon
gets woken up we do a better job swapping out the least recently used
pages.  Any pages we skipped are likely to have been taken of the list
or unbusy the next time around.  And scanning the queue until the end
mostly makes the pagedaemon do useless work with the page queue lock
held.

Also avoid inflating the inactive shortage if the free page shortage is
high.  Reducing the number of active pages to (almost) zero is
counterproductive since it prevents processes from making progress,
including those that may free up some memory.

ok kirill@, beck@

Reply via email to