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

WaLyong Cho walyong.cho at samsung.com
Thu May 15 08:12:53 PDT 2014


On 05/16/2014 12:09 AM, WaLyong Cho 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.
> ---
>  man/systemd.resource-control.xml      | 24 ++++++++++
>  src/core/cgroup.c                     | 40 ++++++++++++-----
>  src/core/cgroup.h                     |  8 +++-
>  src/core/dbus-cgroup.c                | 42 ++++++++++++++++++
>  src/core/load-fragment-gperf.gperf.m4 |  2 +
>  src/core/load-fragment.c              | 83 +++++++++++++++++++++++++++++++++++
>  src/core/load-fragment.h              |  2 +
>  src/core/manager.c                    | 16 +++++++
>  src/core/manager.h                    |  3 ++
>  src/core/unit.c                       | 18 ++++++++
>  10 files changed, 226 insertions(+), 12 deletions(-)
> 

--- snipped ---

Previous my patch looks too old. So I rebase and resolve conflicts with
simple test.

WaLyong


More information about the systemd-devel mailing list