Re: [PATCH v6 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-06-19 Thread Roman Gushchin
On Fri, Jun 19, 2020 at 05:54:24PM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > Switch to per-object accounting of non-root slab objects. > > > > Charging is performed using obj_cgroup API in the pre_alloc hook. > > Obj_cgroup is charged with the size

Re: [PATCH v6 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-06-19 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > Switch to per-object accounting of non-root slab objects. > > Charging is performed using obj_cgroup API in the pre_alloc hook. > Obj_cgroup is charged with the size of the object and the size > of metadata: as now it's the size of an

[PATCH v6 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-06-08 Thread Roman Gushchin
Switch to per-object accounting of non-root slab objects. Charging is performed using obj_cgroup API in the pre_alloc hook. Obj_cgroup is charged with the size of the object and the size of metadata: as now it's the size of an obj_cgroup pointer. If the amount of memory has been charged