svn commit: r329929 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Sat Feb 24 20:47:22 UTC 2018


Author: markj
Date: Sat Feb 24 20:47:22 2018
New Revision: 329929
URL: https://svnweb.freebsd.org/changeset/base/329929

Log:
  Restore the pre-r329882 inactive page shortage computation.
  
  With r329882, in the absence of a free page shortage we would only take
  len(PQ_INACTIVE)+len(PQ_LAUNDRY) into account when deciding whether to
  aggressively scan PQ_ACTIVE. Previously we would also include the
  number of free pages in this computation, ensuring that we wouldn't scan
  PQ_ACTIVE with plenty of free memory available. The change in behaviour
  was most noticeable immediately after booting, when PQ_INACTIVE and
  PQ_LAUNDRY are nearly empty.
  
  Reviewed by:	jeff

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c	Sat Feb 24 20:24:57 2018	(r329928)
+++ head/sys/vm/vm_pageout.c	Sat Feb 24 20:47:22 2018	(r329929)
@@ -1398,7 +1398,7 @@ drop_page:
 	 */
 	inactq_shortage = vmd->vmd_inactive_target - (pq->pq_cnt +
 	    vmd->vmd_pagequeues[PQ_LAUNDRY].pq_cnt / act_scan_laundry_weight) +
-	    shortage + deficit + addl_page_shortage;
+	    vm_paging_target(vmd) + deficit + addl_page_shortage;
 	inactq_shortage *= act_scan_laundry_weight;
 
 	pq = &vmd->vmd_pagequeues[PQ_ACTIVE];


More information about the svn-src-head mailing list