svn commit: r272071 - head/sys/vm
Steven Hartland
smh at FreeBSD.org
Wed Sep 24 14:35:09 UTC 2014
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.
*/
More information about the svn-src-head
mailing list