In the absence of hotplug we use extra memory proportional to
(possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch
to disable large consumption with large number of cgroups. This patch
adds hotplug support to memory cgroups and reverts the commit that
limited possible nodes to online nodes.
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <redacted>
I've tested this patches under a VM with two nodes and movable
nodes enabled. I've offlined nodes and checked that the system
and cgroups with tasks deep in the hierarchy continue to work
fine.
Balbir Singh (3):
Add basic infrastructure for memcg hotplug support
Move from all possible nodes to online nodes
powerpc: fix node_possible_map limitations
arch/powerpc/mm/numa.c | 7 ----
mm/memcontrol.c | 96 +++++++++++++++++++++++++++++++++++++++++++-------
2 files changed, 83 insertions(+), 20 deletions(-)
--
2.5.5