Re: [PATCH] mm: memcontrol: account kernel stack per node

2020-06-30 Thread Shakeel Butt
On Mon, Jun 29, 2020 at 8:24 PM Roman Gushchin wrote: > > On Mon, Jun 29, 2020 at 05:44:13PM -0700, Shakeel Butt wrote: > > Currently the kernel stack is being accounted per-zone. There is no need > > to do that. In addition due to being per-zone, memcg has to keep a > > separate

Re: [PATCH] mm: memcontrol: account kernel stack per node

2020-06-29 Thread Roman Gushchin
On Mon, Jun 29, 2020 at 05:44:13PM -0700, Shakeel Butt wrote: > Currently the kernel stack is being accounted per-zone. There is no need > to do that. In addition due to being per-zone, memcg has to keep a > separate MEMCG_KERNEL_STACK_KB. Make the stat per-node and deprecate >

[PATCH] mm: memcontrol: account kernel stack per node

2020-06-29 Thread Shakeel Butt
Currently the kernel stack is being accounted per-zone. There is no need to do that. In addition due to being per-zone, memcg has to keep a separate MEMCG_KERNEL_STACK_KB. Make the stat per-node and deprecate MEMCG_KERNEL_STACK_KB as memcg_stat_item is an extension of node_stat_item.