chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:59 +0000 (10:12 +0200)
commit655e76df75ce4e5e0916388f23276fc88a607314
tree21bc5433fef26c9ea242b8cff1fad2c58fba8cdd
parent43d2b2215658e538a238415c89dce37897e3fd35
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.
src/core/cgroup.c
src/core/cgroup.h