svn commit: r325646 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Fri Nov 10 12:54:35 UTC 2017


Author: kib
Date: Fri Nov 10 12:54:33 2017
New Revision: 325646
URL: https://svnweb.freebsd.org/changeset/base/325646

Log:
  MFC r303627 (by alc):
  Restore the historical behavior of "sysctl vm.swap_idle_enabled=1".

Modified:
  stable/11/sys/vm/vm_pageout.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_pageout.c
==============================================================================
--- stable/11/sys/vm/vm_pageout.c	Fri Nov 10 12:45:09 2017	(r325645)
+++ stable/11/sys/vm/vm_pageout.c	Fri Nov 10 12:54:33 2017	(r325646)
@@ -1670,9 +1670,10 @@ drop_page:
 	vm_pagequeue_unlock(pq);
 #if !defined(NO_SWAPPING)
 	/*
-	 * Idle process swapout -- run once per second.
+	 * Idle process swapout -- run once per second when we are reclaiming
+	 * pages.
 	 */
-	if (vm_swap_idle_enabled) {
+	if (vm_swap_idle_enabled && pass > 0) {
 		static long lsec;
 		if (time_second != lsec) {
 			vm_req_vmdaemon(VM_SWAP_IDLE);


More information about the svn-src-all mailing list