From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tJPBz51CMzDt1s for ; Wed, 16 Nov 2016 10:45:15 +1100 (AEDT) Received: by mail-pf0-x244.google.com with SMTP id 144so8666257pfv.0 for ; Tue, 15 Nov 2016 15:45:15 -0800 (PST) From: Balbir Singh To: mpe@ellerman.id.au, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com Cc: linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, Balbir Singh , Tejun Heo , Andrew Morton Subject: [RESEND][v1 0/3] Support memory cgroup hotplug Date: Wed, 16 Nov 2016 10:44:58 +1100 Message-Id: <1479253501-26261-1-git-send-email-bsingharora@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Cc: Andrew Morton Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov 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