Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-21 Thread Johannes Weiner
On Tue, Jun 21, 2016 at 01:16:51PM +0300, Vladimir Davydov wrote: > On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > > After this patch, the IDs get released upon cgroup destruction and the > > cache and css objects get released once memory reclaim kicks in. > > With 65K cgroups

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-21 Thread Johannes Weiner
On Tue, Jun 21, 2016 at 01:16:51PM +0300, Vladimir Davydov wrote: > On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > > After this patch, the IDs get released upon cgroup destruction and the > > cache and css objects get released once memory reclaim kicks in. > > With 65K cgroups

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-21 Thread Vladimir Davydov
On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-21 Thread Vladimir Davydov
On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-20 Thread Nikolay Borisov
On 06/17/2016 07:25 PM, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the wild. Consequently,

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-20 Thread Nikolay Borisov
On 06/17/2016 07:25 PM, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the wild. Consequently,

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-17 Thread Tejun Heo
On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the

Re: [PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-17 Thread Tejun Heo
On Fri, Jun 17, 2016 at 12:25:16PM -0400, Johannes Weiner wrote: > The memory controller has quite a bit of state that usually outlives > the cgroup and pins its CSS until said state disappears. At the same > time it imposes a 16-bit limit on the CSS ID space to economically > store IDs in the

[PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-17 Thread Johannes Weiner
The memory controller has quite a bit of state that usually outlives the cgroup and pins its CSS until said state disappears. At the same time it imposes a 16-bit limit on the CSS ID space to economically store IDs in the wild. Consequently, when we use cgroups to contain frequent but small and

[PATCH 3/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-06-17 Thread Johannes Weiner
The memory controller has quite a bit of state that usually outlives the cgroup and pins its CSS until said state disappears. At the same time it imposes a 16-bit limit on the CSS ID space to economically store IDs in the wild. Consequently, when we use cgroups to contain frequent but small and