From 01f04471f4f7be402fc67d50b3accc2dbddcaeb5 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 18 May 2018 16:59:58 +0000 Subject: [PATCH] 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 --- sys/vm/vm_pageout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 1273f7b60ec..8998b7977a9 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -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 * number of pages from the inactive count that should be * discounted in setting the target for the active queue scan. @@ -1275,7 +1275,6 @@ recheck: goto reinsert; } if (m->wire_count != 0) { - addl_page_shortage++; vm_page_dequeue_deferred(m); continue; }