Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2014 18:20:45 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r272221 - stable/10/sys/vm
Message-ID:  <201409271820.s8RIKjxC000264@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Sat Sep 27 18:20:45 2014
New Revision: 272221
URL: http://svnweb.freebsd.org/changeset/base/272221

Log:
  MFC r272071:
  Fix ticks wrap issue of lowmem test in vm_pageout_scan
  
  Approved by:	re (kib)
  Sponsored by:	Multiplay

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

Modified: stable/10/sys/vm/vm_pageout.c
==============================================================================
--- stable/10/sys/vm/vm_pageout.c	Sat Sep 27 18:12:05 2014	(r272220)
+++ stable/10/sys/vm/vm_pageout.c	Sat Sep 27 18:20:45 2014	(r272221)
@@ -921,7 +921,7 @@ vm_pageout_scan(struct vm_domain *vmd, i
 	 * some.  We rate limit to avoid thrashing.
 	 */
 	if (vmd == &vm_dom[0] && pass > 0 &&
-	    lowmem_ticks + (lowmem_period * hz) < ticks) {
+	    (ticks - lowmem_ticks) / hz >= lowmem_period) {
 		/*
 		 * Decrease registered cache sizes.
 		 */



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