Re: [PATCH v2] mm: memcg/slab: Fix root memcg vmstats

2020-11-10 Thread David Rientjes
On Tue, 10 Nov 2020, Muchun Song wrote: > If we reparent the slab objects to the root memcg, when we free > the slab object, we need to update the per-memcg vmstats to keep > it correct for the root memcg. Now this at least affects the vmstat > of NR_KERNEL_STACK_KB for !CONFIG_VMAP_STACK when the

Re: [PATCH v2] mm: memcg/slab: Fix root memcg vmstats

2020-11-10 Thread Johannes Weiner
On Tue, Nov 10, 2020 at 11:10:15AM +0800, Muchun Song wrote: > If we reparent the slab objects to the root memcg, when we free > the slab object, we need to update the per-memcg vmstats to keep > it correct for the root memcg. Now this at least affects the vmstat > of NR_KERNEL_STACK_KB for !CONFIG

Re: [PATCH v2] mm: memcg/slab: Fix root memcg vmstats

2020-11-10 Thread Shakeel Butt
On Mon, Nov 9, 2020 at 7:10 PM Muchun Song wrote: > > If we reparent the slab objects to the root memcg, when we free > the slab object, we need to update the per-memcg vmstats to keep > it correct for the root memcg. Now this at least affects the vmstat > of NR_KERNEL_STACK_KB for !CONFIG_VMAP_ST