]> git.baikalelectronics.ru Git - kernel.git/commit
mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node()
authorShakeel Butt <shakeelb@google.com>
Sun, 1 Dec 2019 01:50:16 +0000 (17:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 14:29:18 +0000 (06:29 -0800)
commit4b852abf5d2175755518137d5827751f5c065404
tree4f456e9480a8050070ee795e5dc4a34bc919095c
parentf207d33018446e955743cd4e6cdacfc7fa9975b3
mm: vmscan: memcontrol: remove mem_cgroup_select_victim_node()

Since commit 3ccb6c1a9fb9 ("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 38d2b86b5bd6 ("memcg: reclaim
memory from nodes in round-robin order") and commit 3d11c6e493b7
("memcg: fix numa scan information update to be triggered by memory
event").

[shakeelb@google.com: v2]
Link: http://lkml.kernel.org/r/20191030204232.139424-1-shakeelb@google.com
Link: http://lkml.kernel.org/r/20191029234753.224143-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Roman Gushchin <guro@fb.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Greg Thelen <gthelen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c
mm/vmscan.c