[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241017160438.3893293-1-joshua.hahnjy@gmail.com>
Date: Thu, 17 Oct 2024 09:04:37 -0700
From: Joshua Hahn <joshua.hahnjy@...il.com>
To: hannes@...xchg.org
Cc: nphamcs@...il.com,
mhocko@...nel.org,
roman.gushchin@...ux.dev,
shakeel.butt@...ux.dev,
muchun.song@...ux.dev,
akpm@...ux-foundation.org,
cgroups@...r.kernel.org,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
lnyng@...a.com
Subject: [PATCH 0/1] memcg/hugetlb: Adding hugeTLB counters to memory controller
HugeTLB usage is a metric that can provide utility for monitors hoping
to get more insight into the memory usage patterns in cgroups. It also
helps identify if large folios are being distributed efficiently across
workloads, so that tasks that can take most advantage of reduced TLB
misses are prioritized.
While cgroupv2's hugeTLB controller does report this value, some users
who wish to track hugeTLB usage might not want to take on the additional
overhead or the features of the controller just to use the metric.
This patch introduces hugeTLB usage in the memcg stats, mirroring the
value in the hugeTLB controller and offering a more fine-grained
cgroup-level breakdown of the value in /proc/meminfo.
Signed-off-by: Joshua Hahn <joshua.hahnjy@...il.com>
Joshua Hahn (1):
Adding hugeTLB counters to memory controller
include/linux/memcontrol.h | 3 +++
mm/hugetlb.c | 5 +++++
mm/memcontrol.c | 6 ++++++
3 files changed, 14 insertions(+)
--
2.43.5
Powered by blists - more mailing lists