diff options
author | Mel Gorman | 2016-07-29 00:45:59 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-07-29 01:07:41 +0200 |
commit | 86c79f6b5426ce118d32c73fa9e328f0a86ab590 (patch) | |
tree | 8cc32bcea6199c34326976a043b49c4df82a5851 /include/linux/memcontrol.h | |
parent | mm, vmscan: remove duplicate logic clearing node congestion and dirty state (diff) | |
download | kernel-qcow2-linux-86c79f6b5426ce118d32c73fa9e328f0a86ab590.tar.gz kernel-qcow2-linux-86c79f6b5426ce118d32c73fa9e328f0a86ab590.tar.xz kernel-qcow2-linux-86c79f6b5426ce118d32c73fa9e328f0a86ab590.zip |
mm: vmscan: do not reclaim from kswapd if there is any eligible zone
kswapd scans from highest to lowest for a zone that requires balancing.
This was necessary when reclaim was per-zone to fairly age pages on
lower zones. Now that we are reclaiming on a per-node basis, any
eligible zone can be used and pages will still be aged fairly. This
patch avoids reclaiming excessively unless buffer_heads are over the
limit and it's necessary to reclaim from a higher zone than requested by
the waker of kswapd to relieve low memory pressure.
[hillf.zj@alibaba-inc.com: Force kswapd reclaim no more than needed]
Link: http://lkml.kernel.org/r/1466518566-30034-12-git-send-email-mgorman@techsingularity.net
Link: http://lkml.kernel.org/r/1467970510-21195-13-git-send-email-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Hillf Danton <hillf.zj@alibaba-inc.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/memcontrol.h')
0 files changed, 0 insertions, 0 deletions