svn commit: r326732 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Sat Dec 9 15:47:28 UTC 2017


Author: markj
Date: Sat Dec  9 15:47:26 2017
New Revision: 326732
URL: https://svnweb.freebsd.org/changeset/base/326732

Log:
  Fix the act_scan_laundry_weight mechanism.
  
  r292392 modified the active queue scan to weigh clean pages differently
  from dirty pages when attempting to meet the inactive queue target. When
  r306706 was merged into the PQ_LAUNDRY branch, this mechanism was
  broken. Fix it by scalaing the correct page shortage variable.
  
  Reviewed by:	alc, kib
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D13423

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c	Sat Dec  9 15:44:30 2017	(r326731)
+++ head/sys/vm/vm_pageout.c	Sat Dec  9 15:47:26 2017	(r326732)
@@ -1393,7 +1393,7 @@ drop_page:
 	inactq_shortage = vm_cnt.v_inactive_target - (vm_cnt.v_inactive_count +
 	    vm_cnt.v_laundry_count / act_scan_laundry_weight) +
 	    vm_paging_target() + deficit + addl_page_shortage;
-	page_shortage *= act_scan_laundry_weight;
+	inactq_shortage *= act_scan_laundry_weight;
 
 	pq = &vmd->vmd_pagequeues[PQ_ACTIVE];
 	vm_pagequeue_lock(pq);


More information about the svn-src-head mailing list