[systemd-devel] [PATCH] core: add startup resource control option

Lennart Poettering lennart at poettering.net
Mon Mar 10 21:06:27 PDT 2014


On Wed, 05.03.14 17:41, WaLyong Cho (walyong.cho at samsung.com) wrote:

> 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.

Looks good, though there appears to be missing that we refresh all
cgroup props when we finished booting?

Before I merge this I'd like to add a system-wide state enum that can
export over the bus, that formalizes the startup/running/shutdown state
machine we can make use of for this.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list