]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
core: add cgroup memory controller support on the unified hierarchy (#3315)
authorTejun Heo <htejun@fb.com>
Fri, 27 May 2016 16:10:18 +0000 (09:10 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 May 2016 16:10:18 +0000 (18:10 +0200)
commitda4d897e75e574911cb73ac91fdeef7d4fce8fbe
treecfa92fa7f77cdccd2f1807f205f795ae40a0a39d
parentffe54bf4bfb5a210861a3cde47ff07d9ffdebca7
core: add cgroup memory controller support on the unified hierarchy (#3315)

On the unified hierarchy, memory controller implements three control knobs -
low, high and max which enables more useable and versatile control over memory
usage.  This patch implements support for the three control knobs.

* MemoryLow, MemoryHigh and MemoryMax are added for memory.low, memory.high and
  memory.max, respectively.

* As all absolute limits on the unified hierarchy use "max" for no limit, make
  memory limit parse functions accept "max" in addition to "infinity" and
  document "max" for the new knobs.

* Implement compatibility translation between MemoryMax and MemoryLimit.

v2:

- Fixed missing else's in config_parse_memory_limit().
- Fixed missing newline when writing out drop-ins.
- Coding style updates to use "val > 0" instead of "val".
- Minor updates to documentation.
man/systemd.resource-control.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-cgroup.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/shared/bus-unit-util.c
src/systemctl/systemctl.c