]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/cgroup-util.c
core: add support for the "pids" cgroup controller 1239/head
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Sep 2015 10:32:16 +0000 (12:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Sep 2015 16:41:06 +0000 (18:41 +0200)
commit03a7b521e3ffb7f5d153d90480ba5d4bc29d1e8f
treed18052ac68aae77bcce3813e64bf1f956cc9ad7d
parent15af581253a3f25a71d4fa723bf1fdd22f842728
core: add support for the "pids" cgroup controller

This adds support for the new "pids" cgroup controller of 4.3 kernels.
It allows accounting the number of tasks in a cgroup and enforcing
limits on it.

This adds two new setting TasksAccounting= and TasksMax= to each unit,
as well as a gloabl option DefaultTasksAccounting=.

This also updated "cgtop" to optionally make use of the new
kernel-provided accounting.

systemctl has been updated to show the number of tasks for each service
if it is available.

This patch also adds correct support for undoing memory limits for units
using a MemoryLimit=infinity syntax. We do the same for TasksMax= now
and hence keep things in sync here.
18 files changed:
man/systemd-cgtop.xml
man/systemd-system.conf.xml
man/systemd.resource-control.xml
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/cgtop/cgtop.c
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-cgroup.c
src/core/dbus-unit.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/main.c
src/core/manager.h
src/core/unit.c
src/shared/bus-util.c
src/systemctl/systemctl.c