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

Lennart Poettering lennart at poettering.net
Wed May 21 17:06:56 PDT 2014


On Fri, 16.05.14 00:09, WaLyong Cho (walyong.cho at samsung.com) wrote:

Heya,

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

I merged this now, however made a couple of changes afterwards. The
shares/weight values now default to (unsigned long) -1 if they are
unset, and we use that to determine whether to apply a weight/share also
during the startup phase. The startup unit set is now kept
unconditionally for good until next reload, I didn't really see the
benfit of emptying it while we process it. And a couple of other things.

Please verify that this still works for your!

Thanks!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list