Don't increment addl_page_shortage for wired pages.

Such pages are dequeued as they're encountered during the inactive queue
scan, so by the time we get to the active queue scan, they should have
already been subtracted from the inactive queue length.

Reviewed by:	alc
Differential Revision:	https://reviews.freebsd.org/D15479
This commit is contained in:
markj 2018-05-18 16:59:58 +00:00
parent ffaf48277f
commit 7d33bd5057

View File

@ -1201,7 +1201,7 @@ vm_pageout_scan(struct vm_domain *vmd, int pass, int shortage)
} }
/* /*
* The addl_page_shortage is the number of temporarily * The addl_page_shortage is an estimate of the number of temporarily
* stuck pages in the inactive queue. In other words, the * stuck pages in the inactive queue. In other words, the
* number of pages from the inactive count that should be * number of pages from the inactive count that should be
* discounted in setting the target for the active queue scan. * discounted in setting the target for the active queue scan.
@ -1275,7 +1275,6 @@ vm_pageout_scan(struct vm_domain *vmd, int pass, int shortage)
goto reinsert; goto reinsert;
} }
if (m->wire_count != 0) { if (m->wire_count != 0) {
addl_page_shortage++;
vm_page_dequeue_deferred(m); vm_page_dequeue_deferred(m);
continue; continue;
} }