Skip to content

cgroups: Task counter subsystem

Frederic Weisbecker containers lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 15 repliesIn review
  2. v412 patches 13 repliesSuperseded
  3. v38 patches 35 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches14 repliesSuperseded

Changes in v5 from the cover letter

- commented res_counter_common_ancestor (patch 6)
- commented res_counter_inherit (patch 2)
- merged documentation and task counter subsystem patch (patch 9)
- rename cgroup_task_counter_res in cgroup_task_res_counter (patch 9)
- more comments/ fix comments in cgroup_task_counter.c (patch 9)
- document res_counter_charge return value (patch 8)
- document res_counter_charge_until (patch 5)
- more comment in kconfig help (patch 9)
- fix various checkpatch reported issues

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11cgroups: Add res_counter_write_u64() APIinclude/linux/res_counter.h kernel/res_counter.c+21 -60 replies
2/11cgroups: New resource counter inheritance APIinclude/linux/res_counter.h kernel/res_counter.c+20 -00 replies
3/11cgroups: Add previous cgroup in can_attach_task/attach_task callbacksDocumentation/cgroups/cgroups.txt block/blk-cgroup.c include/linux/cgroup.h +5 more+36 -190 replies
4/11cgroups: New cancel_attach_task subsystem callbackDocumentation/cgroups/cgroups.txt include/linux/cgroup.h kernel/cgroup.c+29 -40 replies
5/11cgroups: Ability to stop res charge propagation on bounded ancestorDocumentation/cgroups/resource_counter.txt include/linux/res_counter.h kernel/res_counter.c+42 -90 replies
6/11cgroups: Add res counter common ancestor searchinginclude/linux/res_counter.h kernel/res_counter.c+25 -04 replies
7/11res_counter: Allow charge failure pointer to be nullkernel/res_counter.c+4 -20 replies
8/11cgroups: Pull up res counter charge failure interpretation to callerDocumentation/cgroups/resource_counter.txt kernel/res_counter.c+3 -10 replies
9/11cgroups: Add a task counter subsystemDocumentation/cgroups/task_counter.txt include/linux/cgroup.h include/linux/cgroup_subsys.h +4 more+394 -04 replies
10/11cgroups: Allow subsystems to cancel a forkinclude/linux/cgroup.h kernel/cgroup.c kernel/cgroup_freezer.c +2 more+38 -140 replies
11/11cgroups: Convert task counter to use the subsys fork callbackinclude/linux/cgroup.h kernel/cgroup_task_counter.c kernel/fork.c+3 -140 replies

Reviews trailers per patch

5 of 11 patches have a Reviewed-by or Acked-by.

PatchPaul Menage
1/11A-b
2/11
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11
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 v5 thread

Cover letter [PATCH 00/11 v5] cgroups: Task counter subsystem

No functional changes. Only documentation and comments added. Checkpatch.pl fixes, etc...

This mostly addresses Andrew's reviews on v4.

Changes in v5:

- commented res_counter_common_ancestor (patch 6)
- commented res_counter_inherit (patch 2)
- merged documentation and task counter subsystem patch (patch 9)
- rename cgroup_task_counter_res in cgroup_task_res_counter (patch 9)
- more comments/ fix comments in cgroup_task_counter.c (patch 9)
- document res_counter_charge return value (patch 8)
- document res_counter_charge_until (patch 5)
- more comment in kconfig help (patch 9)
- fix various checkpatch reported issues

Frederic Weisbecker (11):
cgroups: Add res_counter_write_u64() API
cgroups: New resource counter inheritance API
cgroups: Add previous cgroup in can_attach_task/attach_task callbacks
cgroups: New cancel_attach_task subsystem callback
cgroups: Ability to stop res charge propagation on bounded ancestor
cgroups: Add res counter common ancestor searching
res_counter: Allow charge failure pointer to be null
cgroups: Pull up res counter charge failure interpretation to caller
cgroups: Add a task counter subsystem
cgroups: Allow subsystems to cancel a fork
cgroups: Convert task counter to use the subsys fork callback

 Documentation/cgroups/cgroups.txt          |   13 ++-
 Documentation/cgroups/resource_counter.txt |   20 +++-
 Documentation/cgroups/task_counter.txt     |  126 +++++++++++++++
 block/blk-cgroup.c                         |   12 +-
 include/linux/cgroup.h                     |   22 ++-
 include/linux/cgroup_subsys.h              |    8 +
 include/linux/res_counter.h                |   27 +++-
 init/Kconfig                               |    9 +
 kernel/Makefile                            |    1 +
 kernel/cgroup.c                            |   58 ++++++--
 kernel/cgroup_freezer.c                    |    9 +-
 kernel/cgroup_task_counter.c               |  239 ++++++++++++++++++++++++++++
 kernel/cpuset.c                            |    6 +-
 kernel/events/core.c                       |    5 +-
 kernel/exit.c                              |    2 +-
 kernel/fork.c                              |    7 +-
 kernel/res_counter.c                       |   86 +++++++++--
 kernel/sched.c                             |    6 +-
 18 files changed, 601 insertions(+), 55 deletions(-)
 create mode 100644 Documentation/cgroups/task_counter.txt
 create mode 100644 kernel/cgroup_task_counter.c
Signature · 1 line
1.7.5.4