Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 14:35:08 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272071 - head/sys/vm
Message-ID:  <201409241435.s8OEZ85N015049@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Wed Sep 24 14:35:08 2014
New Revision: 272071
URL: http://svnweb.freebsd.org/changeset/base/272071

Log:
  Fix ticks wrap issue of lowmem test in vm_pageout_scan
  
  Reviewed by:	jhb (D818)
  MFC after:	3 days
  Sponsored by:	Multiplay

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c	Wed Sep 24 12:41:39 2014	(r272070)
+++ head/sys/vm/vm_pageout.c	Wed Sep 24 14:35:08 2014	(r272071)
@@ -916,7 +916,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?201409241435.s8OEZ85N015049>