From db785129c9bce9294a118484cbc9bb6935ca34c2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 May 2014 07:06:16 +0900 Subject: cgroup: rework startup logic Introduce a (unsigned long) -1 as "unset" state for cpu shares/block io weights, and keep the startup unit set around all the time. --- man/systemd.resource-control.xml | 65 +++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 38 deletions(-) (limited to 'man/systemd.resource-control.xml') diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 33d2f2e102..a1f63dd66b 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -115,6 +115,7 @@ along with systemd; If not, see . CPUShares=weight + StartupCPUShares=weight Assign the specified CPU time share weight to the @@ -122,10 +123,17 @@ along with systemd; If not, see . the cpu.shares control group attribute, which defaults to 1024. For details about this control group attribute, see sched-design-CFS.txt - The available CPU time is split up among all units within a + url="https://www.kernel.org/doc/Documentation/scheduler/sched-design-CFS.txt">sched-design-CFS.txt. + The available CPU time is split up among all units within one slice relative to their CPU time share weight. + While StartupCPUShares= only + applies to the startup phase of the system, + CPUShares= applies to the later runtime + of the system, and if the former is not set also to the + startup phase. This allows priorizing specific services at + boot-up differently than during runtime. + Implies CPUAccounting=true. @@ -170,18 +178,6 @@ along with systemd; If not, see . - - StartupCPUShares=weight - - - Similar to CPUShares=. However, - only be assigned on startup state. After finishing startup, will be - re-assigned by CPUShares=. If - CPUShares= is not specified, then it will be - assigned to default(1024). - - - MemoryAccounting= @@ -233,37 +229,30 @@ along with systemd; If not, see . BlockIOWeight=weight + StartupBlockIOWeight=weight - Set the default - overall block IO weight for the - executed processes. Takes a single - weight value (between 10 and 1000) to - set the default block IO weight. This - controls the - blkio.weight - control group attribute, which - defaults to 1000. For details about - this control group attribute, see - blkio-controller.txt. + Set the default overall block IO weight for + the executed processes. Takes a single weight value (between + 10 and 1000) to set the default block IO weight. This controls + the blkio.weight control group attribute, + which defaults to 1000. For details about this control group + attribute, see blkio-controller.txt. + The available IO bandwidth is split up among all units within + one slice relative to their block IO weight. + + While StartupBlockIOWeight= only + applies to the startup phase of the system, + BlockIOWeight= applies to the later runtime + of the system, and if the former is not set also to the + startup phase. This allows priorizing specific services at + boot-up differently than during runtime. Implies BlockIOAccounting=true. - - StartupBlockIOWeight=weight - - - Similar to BlockIOWeight=. However, - only be assigned on startup state. After finishing startup, will be - re-assigned by BlockIOWeight=. If - BlockIOWeight= is not specified, then it will be - assigned to default(1000). - - - BlockIODeviceWeight=device weight -- cgit v1.2.3-54-g00ecf