Skip to content

pids controller events rework

Michal Koutný cgroups linux-doc linux-kselftest lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 5 repliesIn review
  2. v46 patches 4 repliesApplied
  3. v3 RFC9 patches 11 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cgroup/pids: Separate semantics of pids.events related to pids.maxDocumentation/admin-guide/cgroup-v1/pids.rst Documentation/admin-guide/cgroup-v2.rst include/linux/cgroup-defs.h +2 more+64 -180 replies
2/5cgroup/pids: Make event counters hierarchicalDocumentation/admin-guide/cgroup-v2.rst kernel/cgroup/pids.c+36 -194 replies
3/5cgroup/pids: Add pids.events.localDocumentation/admin-guide/cgroup-v2.rst kernel/cgroup/pids.c+76 -180 replies
4/5selftests: cgroup: Lexicographic order in Makefiletools/testing/selftests/cgroup/.gitignore tools/testing/selftests/cgroup/Makefile+17 -160 replies
5/5selftests: cgroup: Add basic tests for pids controllertools/testing/selftests/cgroup/.gitignore tools/testing/selftests/cgroup/Makefile tools/testing/selftests/cgroup/test_pids.c+181 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/5] pids controller events rework

This makes pids.events:max affine to pids.max limit.

How are the new events supposed to be useful?

- pids.events.local:max
- tells that cgroup's limit is hit (too tight?)
- pids.events:*
- "only" directs top-down search to cgroups of interest

Changes from v4 (https://lore.kernel.org/r/[email protected])
- rebased on cgroup/for-6.10 (rather cgroup/for-next, there's no rush)
- introduce pids_files_legacy at one place (Tejun)
- more descriptive Documentation/ (Tejun)

Changes from v3 (https://lore.kernel.org/r/[email protected])
- use existing functions for TAP output in selftest (Muhammad)
- formatting in selftest (Muhammad)
- remove pids.events:max.imposed event, keep it internal (Johannes)
- allow legacy behavior with a mount option
- detach migration charging patches
- drop RFC prefix

Changes from v2 (https://lore.kernel.org/r/[email protected])
- implemented pids.events.local (Tejun)
- added migration charging

[1] https://lore.kernel.org/r/[email protected]/

Michal Koutný (5):
cgroup/pids: Separate semantics of pids.events related to pids.max cgroup/pids: Make event counters hierarchical cgroup/pids: Add pids.events.local
selftests: cgroup: Lexicographic order in Makefile
selftests: cgroup: Add basic tests for pids controller

 Documentation/admin-guide/cgroup-v1/pids.rst |   3 +-
 Documentation/admin-guide/cgroup-v2.rst      |  21 ++-
 include/linux/cgroup-defs.h                  |   7 +-
 kernel/cgroup/cgroup.c                       |  15 +-
 kernel/cgroup/pids.c                         | 129 +++++++++++---
 tools/testing/selftests/cgroup/.gitignore    |  11 +-
 tools/testing/selftests/cgroup/Makefile      |  25 +--
 tools/testing/selftests/cgroup/test_pids.c   | 178 +++++++++++++++++++
 8 files changed, 346 insertions(+), 43 deletions(-)
 create mode 100644 tools/testing/selftests/cgroup/test_pids.c

base-commit: 21c38a3bd4ee3fb7337d013a638302fb5e5f9dc2

Signature · 1 line
2.44.0