svn commit: r304328 - user/alc/PQ_LAUNDRY/sys/vm
Alan Cox
alc at FreeBSD.org
Thu Aug 18 05:35:45 UTC 2016
Author: alc
Date: Thu Aug 18 05:35:43 2016
New Revision: 304328
URL: https://svnweb.freebsd.org/changeset/base/304328
Log:
When deciding whether to perform background laundering, include the number
of free pages in the count of clean pages.
Discussed with: markj
Modified:
user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
==============================================================================
--- user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c Thu Aug 18 05:33:58 2016 (r304327)
+++ user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c Thu Aug 18 05:35:43 2016 (r304328)
@@ -1144,7 +1144,7 @@ vm_pageout_laundry_worker(void *arg)
* 2. we haven't yet reached the target of the current
* background laundering run.
*/
- ninact = vm_cnt.v_inactive_count;
+ ninact = vm_cnt.v_inactive_count + vm_cnt.v_free_count;
nlaundry = vm_cnt.v_laundry_count;
if (target == 0 && wakeups != gen &&
nlaundry * bkgrd_launder_ratio >= ninact) {
More information about the svn-src-user
mailing list