From b2f8b02ec27dfec9cbd23573f47aba494f2e9b5f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 25 Apr 2014 13:27:25 +0200 Subject: core: expose CFS CPU time quota as high-level unit properties --- man/systemd-system.conf.xml | 12 ++++++++++ man/systemd.resource-control.xml | 52 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 59 insertions(+), 5 deletions(-) (limited to 'man') diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index e2b2bd8b6f..3814bd2ad8 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -301,6 +301,18 @@ above. + + DefaultCPUQuotaPeriodSec= + + Sets the default CPU + quota period. Defaults to 100ms. This + controls th global default for the + CPUQuotaPeriodSec= + setting of units, see + systemd.resource-control5 + for details. + + DefaultTimeoutStartSec= DefaultTimeoutStopSec= diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index a51e600ebb..5a996fd6df 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -117,11 +117,53 @@ along with systemd; If not, see . CPUShares=weight - Assign the specified overall CPU time share weight to - the processes executed. Takes an integer value. This - controls the cpu.shares control group - attribute, which defaults to 1024. For details about this - control group attribute, see Assign the specified CPU time share weight to the + processes executed. Takes an integer value. This controls + 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 + slice relative to their CPU time share weight. + + Implies CPUAccounting=true. + + + + + CPUQuota= + + + Assign the specified CPU time quota to the processes + executed. Takes a percentage value (suffixed with "%") or an + absolute time (suffixed by one of the common time units, us, + ms, s, ...). The percentage specifies how much CPU time the + unit shall get at maximum, relative to the total CPU time + available on one CPU. Use values > 100% for alloting CPU + time on more than one CPU. If an absolute time is specified + the processes of this unit will get this much absolute time + within each quota period, at maximum. This controls the + cpu.cfs_quota_us control group + attribute. For details about this control group attribute, + see sched-design-CFS.txt. + + Example: CPUShares=20% ensures that + the executed processes will never get more than 20% CPU time + on one CPU. + + Implies CPUAccounting=true. + + + + + CPUQuotaPeriodSec= + + + Specify the CPU quota period to use. Defaults to + 100ms. This controls the cpu.cfs_period_us + control group attribute. For details about this control + group attribute, see sched-design-CFS.txt. Implies CPUAccounting=true. -- cgit v1.2.3-54-g00ecf