mm: memcg: deprecate cgroup v1 non-hierarchical mode
Status from this message: [merged] cgroup-remove-obsoleted-broken_hierarchy-and-warned_broken_hierarchy.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first
Changes in v1 from the cover letter
- added a note from Michal
- added acks and reviews
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm: memcg: deprecate the non-hierarchical modeinclude/ kernel/ mm/ | +13 | 1 reply | Applied |
| 2/3 | docs: cgroup-v1: reflect the deprecation of the non-hierarchical modeDocumentation/ Documentation/ | +16 | 1 reply | Applied |
| 3/3 | cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchyinclude/ kernel/ | +0 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Michal Hocko | Shakeel Butt | David Rientjes | Johannes Weiner |
|---|---|---|---|---|
| 1/3 | A-b | R-b | A-b | A-b |
| 2/3 | A-b | R-b | A-b | A-b |
| 3/3 | R-b | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v1 0/3] mm: memcg: deprecate cgroup v1 non-hierarchical mode
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.
From Michal Hocko:
All that we know today is that we have a warning in place to complain loudly when somebody relies on use_hierarchy=0 with a deeper hierarchy. For all those years we have seen _zero_ reports that would describe a sensible usecase.
Moreover we (SUSE) have backported this warning into old distribution kernels (since 3.0 based kernels) to extend the coverage and didn't hear even for users who adopt new kernels only very slowly. The only report we have seen so far was a LTP test suite which doesn't really reflect any real life usecase.
v1:
- added a note from Michal
- added acks and reviews
rfc:
- https://lwn.net/Articles/835983/
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(-)
Signature · 1 line
2.26.2