]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcg/percpu: account extra objcg space to memory cgroups
authorQi Zheng <zhengqi.arch@bytedance.com>
Fri, 14 Jan 2022 22:09:12 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:31 +0000 (16:30 +0200)
commitff9a129f1d4052b328b400605b2a7da9f2f39223
treea1dd720ef152b699ce47a96b3cc96c6cb4c7017d
parentf017b385d0bc9cf48079a0f6ceb11b4beccb1d66
mm: memcg/percpu: account extra objcg space to memory cgroups

Similar to slab memory allocator, for each accounted percpu object there
is an extra space which is used to store obj_cgroup membership.  Charge
it too.

[akpm@linux-foundation.org: fix layout]

Link: https://lkml.kernel.org/r/20211126040606.97836-1-zhengqi.arch@bytedance.com
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/percpu-internal.h
mm/percpu.c