]> Git Repo - linux.git/commit
mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node()
authorShakeel Butt <[email protected]>
Sun, 1 Dec 2019 01:50:16 +0000 (17:50 -0800)
committerLinus Torvalds <[email protected]>
Sun, 1 Dec 2019 14:29:18 +0000 (06:29 -0800)
commitfa40d1ee9f156624658ca409a04a78882ca5b3c5
tree4f456e9480a8050070ee795e5dc4a34bc919095c
parent242c37b459ce9ea1be53b75bdb76a7d9268a0791
mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node()

Since commit 1ba6fc9af35b ("mm: vmscan: do not share cgroup iteration
between reclaimers"), the memcg reclaim does not bail out earlier based
on sc->nr_reclaimed and will traverse all the nodes.  All the
reclaimable pages of the memcg on all the nodes will be scanned relative
to the reclaim priority.  So, there is no need to maintain state
regarding which node to start the memcg reclaim from.

This patch effectively reverts the commit 889976dbcb12 ("memcg: reclaim
memory from nodes in round-robin order") and commit 453a9bf347f1
("memcg: fix numa scan information update to be triggered by memory
event").

[[email protected]: v2]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Shakeel Butt <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Greg Thelen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
mm/memcontrol.c
mm/vmscan.c
This page took 0.06037 seconds and 4 git commands to generate.