chiark / gitweb /
core: add startup resource control option
authorWaLyong Cho <walyong.cho@samsung.com>
Thu, 15 May 2014 15:09:34 +0000 (00:09 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 May 2014 22:13:56 +0000 (07:13 +0900)
commit95ae05c0e79868c22b3e8e6fbc53432786876730
tree874e9eb9902db34ded1e65ef88bbaf29d2f5aa4e
parent7e4f9431caf4be39f39b64634f7708d7ca217d41
core: add startup resource control option

Similar to CPUShares= and BlockIOWeight= respectively. However only
assign the specified weight during startup. Each control group
attribute is re-assigned as weight by CPUShares=weight and
BlockIOWeight=weight after startup.  If not CPUShares= or
BlockIOWeight= be specified, then the attribute is re-assigned to each
default attribute value. (default cpu.shares=1024, blkio.weight=1000)
If only CPUShares=weight or BlockIOWeight=weight be specified, then
that implies StartupCPUShares=weight and StartupBlockIOWeight=weight.
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/core/load-fragment.h
src/core/manager.c
src/core/manager.h
src/core/unit.c