Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-28 Thread Balbir Singh
On 29/11/16 11:42, Tejun Heo wrote: > Hello, Balbir. > > On Tue, Nov 29, 2016 at 11:09:26AM +1100, Balbir Singh wrote: >> On 29/11/16 08:10, Tejun Heo wrote: >>> On Thu, Nov 24, 2016 at 12:05:12AM +1100, Balbir Singh wrote: On my desktop NODES_SHIFT is 6, many distro kernels have it a 9.

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-28 Thread Tejun Heo
Hello, Balbir. On Tue, Nov 29, 2016 at 11:09:26AM +1100, Balbir Singh wrote: > On 29/11/16 08:10, Tejun Heo wrote: > > On Thu, Nov 24, 2016 at 12:05:12AM +1100, Balbir Singh wrote: > >> On my desktop NODES_SHIFT is 6, many distro kernels have it a 9. I've known > >> of solutions that use fake

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-28 Thread Balbir Singh
On 29/11/16 08:10, Tejun Heo wrote: > On Thu, Nov 24, 2016 at 12:05:12AM +1100, Balbir Singh wrote: >> On my desktop NODES_SHIFT is 6, many distro kernels have it a 9. I've known >> of solutions that use fake NUMA for partitioning and need as many nodes as >> possible. > > It was a crude kludge

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-28 Thread Tejun Heo
On Thu, Nov 24, 2016 at 12:05:12AM +1100, Balbir Singh wrote: > On my desktop NODES_SHIFT is 6, many distro kernels have it a 9. I've known > of solutions that use fake NUMA for partitioning and need as many nodes as > possible. It was a crude kludge that people used before memcg. If people

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-23 Thread Michal Hocko
On Thu 24-11-16 00:05:12, Balbir Singh wrote: > > > On 23/11/16 20:28, Michal Hocko wrote: [...] > > I am more worried about synchronization with the hotplug which tends to > > be a PITA in places were we were simply safe by definition until now. We > > do not have all that many users of

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-23 Thread Balbir Singh
On 23/11/16 20:28, Michal Hocko wrote: > On Wed 23-11-16 19:37:16, Balbir Singh wrote: >> >> >> On 23/11/16 19:07, Michal Hocko wrote: >>> On Wed 23-11-16 18:50:42, Balbir Singh wrote: On 23/11/16 18:25, Michal Hocko wrote: > On Wed 23-11-16 15:36:51, Balbir Singh wrote:

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-23 Thread Michal Hocko
On Wed 23-11-16 19:37:16, Balbir Singh wrote: > > > On 23/11/16 19:07, Michal Hocko wrote: > > On Wed 23-11-16 18:50:42, Balbir Singh wrote: > >> > >> > >> On 23/11/16 18:25, Michal Hocko wrote: > >>> On Wed 23-11-16 15:36:51, Balbir Singh wrote: > In the absence of hotplug we use extra

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-23 Thread Balbir Singh
On 23/11/16 19:07, Michal Hocko wrote: > On Wed 23-11-16 18:50:42, Balbir Singh wrote: >> >> >> On 23/11/16 18:25, Michal Hocko wrote: >>> On Wed 23-11-16 15:36:51, Balbir Singh wrote: In the absence of hotplug we use extra memory proportional to (possible_nodes - online_nodes) *

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-23 Thread Michal Hocko
On Wed 23-11-16 18:50:42, Balbir Singh wrote: > > > On 23/11/16 18:25, Michal Hocko wrote: > > On Wed 23-11-16 15:36:51, Balbir Singh wrote: > >> In the absence of hotplug we use extra memory proportional to > >> (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch > >> to

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-22 Thread Balbir Singh
On 23/11/16 18:25, Michal Hocko wrote: > On Wed 23-11-16 15:36:51, Balbir Singh wrote: >> 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

Re: [mm v2 0/3] Support memory cgroup hotplug

2016-11-22 Thread Michal Hocko
On Wed 23-11-16 15:36:51, Balbir Singh wrote: > 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

[mm v2 0/3] Support memory cgroup hotplug

2016-11-22 Thread Balbir Singh
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