Re: [PATCH] memcg: add hierarchical effective limits for v2
From: Balbir Singh
Date: Wed Feb 05 2025 - 17:33:51 EST
On 2/6/25 09:20, Shakeel Butt wrote:
> Memcg-v1 exposes hierarchical_[memory|memsw]_limit counters in its
> memory.stat file which applications can use to get their effective limit
> which is the minimum of limits of itself and all of its ancestors. This
> is pretty useful in environments where cgroup namespace is used and the
> application does not have access to the full view of the cgroup
> hierarchy. Let's expose effective limits for memcg v2 as well.
>
> Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>
Even without namespaces, in a hierarchy the application might be restricted
in reading the parent cgroup information (read permission removed for example)
Otherwise looks good to me
Reviewed-by: Balbir Singh <balbirs@xxxxxxxxxx>