Re: [PATCH v6 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-06-19 Thread Shakeel Butt
On Fri, Jun 19, 2020 at 5:25 PM Roman Gushchin wrote: > > On Fri, Jun 19, 2020 at 09:36:16AM -0700, Shakeel Butt wrote: > > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > > > Allocate and release memory to store obj_cgroup pointers for each > > > non-root slab page. Reuse page->mem_

Re: [PATCH v6 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-06-19 Thread Roman Gushchin
On Fri, Jun 19, 2020 at 09:36:16AM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > Allocate and release memory to store obj_cgroup pointers for each > > non-root slab page. Reuse page->mem_cgroup pointer to store a pointer > > to the allocated space. > > >

Re: [PATCH v6 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-06-19 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > Allocate and release memory to store obj_cgroup pointers for each > non-root slab page. Reuse page->mem_cgroup pointer to store a pointer > to the allocated space. > > To distinguish between obj_cgroups and memcg pointers in case > when it's

[PATCH v6 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-06-08 Thread Roman Gushchin
Allocate and release memory to store obj_cgroup pointers for each non-root slab page. Reuse page->mem_cgroup pointer to store a pointer to the allocated space. To distinguish between obj_cgroups and memcg pointers in case when it's not obvious which one is used (as in page_cgroup_ino()), let's alw