]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Account for the lowmem handlers in the inactive queue scan target.
authormarkj <markj@FreeBSD.org>
Thu, 9 Aug 2018 18:25:49 +0000 (18:25 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 9 Aug 2018 18:25:49 +0000 (18:25 +0000)
commit02291bbeb39214fd1733029101700fe61d4d0bee
tree103965c6a83e58dc81659f7acbcc58ab81e93ca9
parenta4d7516115c460bf58d492e990ebccbb51477028
Account for the lowmem handlers in the inactive queue scan target.

Before r329882 the target would be computed after lowmem handlers run
and free pages.  On some systems a significant amount of page
reclamation happens this way.  However, with r329882 the target is
computed first, which can lead to unnecessary reclamation from the
page cache, and this in turn may result in excessive swapping.

Instead, adjust the target after running lowmem handlers.  Don't
invoke the lowmem handlers before the PID controller, though, since
that would hide the true rate of page allocation.

Reviewed by: alc, kib (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D16606
sys/vm/vm_pageout.c