Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2018 20:47:22 +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: r329929 - head/sys/vm
Message-ID:  <201802242047.w1OKlM89088744@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802242047.w1OKlM89088744>