Date: Fri, 18 May 2018 16:59:59 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333799 - head/sys/vm Message-ID: <201805181659.w4IGxxpF075597@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805181659.w4IGxxpF075597>