]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg: initiate deprecation of v1 soft limit
authorShakeel Butt <shakeel.butt@linux.dev>
Wed, 14 Aug 2024 22:00:19 +0000 (15:00 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:25 +0000 (17:53 -0700)
commit1c96604392fbec8054d0c03955f9322d5bd76aa2
tree634e0d15432429c7a7b16b1c38187af78f9e203d
parent90be00ff3bf465671213095a49639f3d92d353aa
memcg: initiate deprecation of v1 soft limit

Memcg v1 provides soft limit functionality for the best effort memory
sharing between multiple workloads on a system.  It is usually triggered
through kswapd and at the moment does not reclaim kernel memory.

Memcg v2 provides more straightforward best effort (memory.low) and hard
protection (memory.min) functionalities.  Let's initiate the deprecation
of soft limit from v1 and gather if v2 needs something more to move the
existing v1 users to v2 regarding soft limit.

Link: https://lkml.kernel.org/r/20240814220021.3208384-3-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/cgroup-v1/memory.rst
mm/memcontrol-v1.c