|
|
Subscribe / Log in / New account

mm: memcg: deprecate cgroup v1 non-hierarchical mode

From:  Roman Gushchin <guro-AT-fb.com>
To:  linux-mm-AT-kvack.org
Subject:  [PATCH rfc 0/3] mm: memcg: deprecate cgroup v1 non-hierarchical mode
Date:  Tue, 03 Nov 2020 13:27:22 -0800
Message-ID:  <20201103212725.3716088-1-guro@fb.com>
Cc:  Andrew Morton <akpm-AT-linux-foundation.org>, Shakeel Butt <shakeelb-AT-google.com>, Johannes Weiner <hannes-AT-cmpxchg.org>, Michal Hocko <mhocko-AT-kernel.org>, Tejun Heo <tj-AT-kernel.org>, linux-kernel-AT-vger.kernel.org, kernel-team-AT-fb.com, Roman Gushchin <guro-AT-fb.com>
Archive-link:  Article

The non-hierarchical cgroup v1 mode is a legacy of early days
of the memory controller and doesn't bring any value today.
However, it complicates the code and creates many edge cases
all over the memory controller code.

It's a good time to deprecate it completely. This patchset removes
the internal logic, adjusts the user interface and updates
the documentation. The alt patch removes some bits of the cgroup
core code, which become obsolete.


Roman Gushchin (3):
  mm: memcg: deprecate the non-hierarchical mode
  docs: cgroup-v1: reflect the deprecation of the non-hierarchical mode
  cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy

 .../admin-guide/cgroup-v1/memcg_test.rst      |  8 +-
 .../admin-guide/cgroup-v1/memory.rst          | 40 +++------
 include/linux/cgroup-defs.h                   | 15 ----
 include/linux/memcontrol.h                    |  7 --
 kernel/cgroup/cgroup.c                        | 12 ---
 mm/memcontrol.c                               | 90 +++----------------
 6 files changed, 29 insertions(+), 143 deletions(-)

-- 
2.26.2



Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds