Author: markj Date: Fri May 18 16:59:58 2018 New Revision: 333799 URL: https://svnweb.freebsd.org/changeset/base/333799
Log: 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 Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Fri May 18 16:19:45 2018 (r333798) +++ head/sys/vm/vm_pageout.c Fri May 18 16:59:58 2018 (r333799) @@ -1201,7 +1201,7 @@ vm_pageout_scan(struct vm_domain *vmd, int pass, int s } /* - * 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; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"