summaryrefslogtreecommitdiffstats
path: root/lib/debug_info.c
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2021-02-26 02:16:51 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-26 18:41:00 +0100
commit629484ae73754243917e06d8d5e5f37c26e99399 (patch)
treec3d5422b5127aea32f8d73b2909dd66673cd2213 /lib/debug_info.c
parentmm: vmstat: fix NOHZ wakeups for node stat changes (diff)
downloadlinux-629484ae73754243917e06d8d5e5f37c26e99399.tar.xz
linux-629484ae73754243917e06d8d5e5f37c26e99399.zip
mm: vmstat: add some comments on internal storage of byte items
Byte-accounted items are used for slab object accounting at the cgroup level, because the objects in a slab page can belong to different cgroups. At the global level these items always change in multiples of whole slab pages. The vmstat code exploits this and stores these items as pages internally, which allows for more compact per-cpu data. This optimization isn't self-evident from the asserts and the division in the stat update functions. Provide the reader with some context. Link: https://lkml.kernel.org/r/20210202184411.118614-1-hannes@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/debug_info.c')
0 files changed, 0 insertions, 0 deletions