Skip to content

cgroup v1 deprecation messages

Michal Koutný cgroups linux-block linux-doc linux-mm lkml 2 versions – Applied

Status from this message: Applied to cgroup/for-6.15.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 8 repliesApplied
  2. v19 patches 10 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11cgroup/cpuset-v1: Add deprecation messages to sched_load_balance and memory_pressure_enabledkernel/cgroup/cpuset-v1.c+2 -01 reply
2/11cgroup/cpuset-v1: Add deprecation messages to memory_spread_page and memory_spread_slabkernel/cgroup/cpuset-v1.c+2 -01 reply
3/11cgroup/blkio: Add deprecation messages to reset_statsblock/blk-cgroup.c+1 -00 replies
4/11cgroup: Print message when /proc/cgroups is read on v2-only systemkernel/cgroup/cgroup-internal.h kernel/cgroup/cgroup-v1.c kernel/cgroup/cgroup.c+9 -10 replies
5/11cgroup/cpuset-v1: Add deprecation messages to mem_exclusive and mem_hardwallkernel/cgroup/cpuset-v1.c+2 -01 reply
6/11cgroup/cpuset-v1: Add deprecation messages to memory_migratekernel/cgroup/cpuset-v1.c+1 -01 reply
7/11RFC cgroup/cpuset-v1: Add deprecation messages to sched_relax_domain_levelkernel/cgroup/cpuset-v1.c+1 -02 replies
8/11mm: Add transformation message for per-memcg swappinessDocumentation/admin-guide/cgroup-v1/memory.rst mm/memcontrol-v1.c+5 -20 replies
9/11cgroup: Add deprecation message to legacy freezer controllerDocumentation/admin-guide/cgroup-v1/freezer-subsystem.rst kernel/cgroup/legacy_freezer.c+8 -20 replies
10/11cgroup: Update file naming commentinclude/linux/cgroup-defs.h+2 -30 replies
11/11blk-cgroup: Simplify policy files registrationblock/blk-cgroup.c block/blk-ioprio.c include/linux/cgroup.h +1 more+14 -190 replies

Reviews trailers per patch

6 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWaiman LongJens Axboe
SeriesA-b
1/11A-b
2/11A-b
3/11
4/11A-b
5/11A-b
6/11A-b
7/11A-b
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] cgroup v1 deprecation messages

Memory controller had begun to print warning messages when using some attributes that do no have a counterpart in its cgroup v2 implementation. This is informative to users who run (unwittingly) on v1 or to distros that run v1 (they can learn about such users or prepare for disabling v1 configs).

I consider the deprecated files in three categories:
- RE) replacement exists,
- DN) dropped as non-ideal concept (e.g. non-hierarchical resources),
- NE) not evaluated (yet).

For RE, I added the replacement into the warning message, DN have only a plain deprecation message and I marked the commits with NE as RFC. Also I'd be happy if you would point out some forgotten knobs that'd deserve similar warnings.

The level of messages is info to avoid too much noise (may be increased in future when there are fewer users). Some knobs from DN have warn level.

The net_cls and net_prio controllers that only exist on v1 hierarchies have no straightforward action for users (replacement would rely on net NS or eBPF), so messages for their usage are omitted, although it'd be good to eventually retire that code in favor of aforementioned.

At the end are some cleanup patches I encountered en route.

Changes from v1 (https://lore.kernel.org/r/[email protected]/)
- cpuset load_balance/pressure warn wording (Waiman)
- comment typo (Waiman)
- collect Acks
- drop bouncing Cc: and respective RFC (self)
- change level warn -> info, except for spread slab (Tejun)
- add memory.swappiness (self)
- add legacy freezer message (self)
- update cover wrt net* controllers (self)

Michal Koutný (11):
cgroup/cpuset-v1: Add deprecation messages to sched_load_balance and
memory_pressure_enabled
cgroup/cpuset-v1: Add deprecation messages to memory_spread_page and
memory_spread_slab
cgroup/blkio: Add deprecation messages to reset_stats
cgroup: Print message when /proc/cgroups is read on v2-only system cgroup/cpuset-v1: Add deprecation messages to mem_exclusive and
mem_hardwall
cgroup/cpuset-v1: Add deprecation messages to memory_migrate RFC cgroup/cpuset-v1: Add deprecation messages to
sched_relax_domain_level
mm: Add transformation message for per-memcg swappiness
cgroup: Add deprecation message to legacy freezer controller
cgroup: Update file naming comment
blk-cgroup: Simplify policy files registration

 .../cgroup-v1/freezer-subsystem.rst           |  4 ++++
 .../admin-guide/cgroup-v1/memory.rst          |  1 +
 block/blk-cgroup.c                            |  8 +++++--
 block/blk-ioprio.c                            | 23 ++++++-------------
 include/linux/cgroup-defs.h                   |  5 ++--
 include/linux/cgroup.h                        |  1 +
 kernel/cgroup/cgroup-internal.h               |  1 +
 kernel/cgroup/cgroup-v1.c                     |  7 ++++++
 kernel/cgroup/cgroup.c                        |  4 ++--
 kernel/cgroup/cpuset-v1.c                     |  8 +++++++
 kernel/cgroup/legacy_freezer.c                |  6 +++--
 mm/memcontrol-v1.c                            |  6 +++--
 12 files changed, 47 insertions(+), 27 deletions(-)

base-commit: 80e54e84911a923c40d7bee33a34c1b4be148d7a

Signature · 1 line
2.48.1