summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2025-04-02 22:33:26 -0700
committerAndrew Morton <akpm@linux-foundation.org>2025-05-11 17:48:10 -0700
commitaa8d89d1472b010cbcda7288a4da76e4852a260d (patch)
treebb745dfc7f6f3eaf0ba6427cb8c622e603f10d19 /tools/perf/scripts/python/exported-sql-viewer.py
parent98c9389042f4d1e6aa73fbaf79e2e962c9497fc5 (diff)
downloadlinux-aa8d89d1472b010cbcda7288a4da76e4852a260d.tar.gz
linux-aa8d89d1472b010cbcda7288a4da76e4852a260d.zip
memcg: vmalloc: simplify MEMCG_VMALLOC updates
The vmalloc region can either be charged to a single memcg or none. At the moment kernel traverses all the pages backing the vmalloc region to update the MEMCG_VMALLOC stat. However there is no need to look at all the pages as all those pages will be charged to a single memcg or none. Simplify the MEMCG_VMALLOC update by just looking at the first page of the vmalloc region. [shakeel.butt@linux.dev: add comment] Link: https://lkml.kernel.org/r/bmlkdbqgwboyqrnxyom7n52fjmo76ux77jhqw5odc6c6dfon3h@zdylwtmlywbt Link: https://lkml.kernel.org/r/20250403053326.26860-1-shakeel.butt@linux.dev Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Muchun Song <muchun.song@linux.dev> Cc: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions