From 9a0549093332880df47c4218209ce126b8586835 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 May 2014 11:53:12 +0900 Subject: cgroups: simplify CPUQuota= logic Only accept cpu quota values in percentages, get rid of period definition. It's not clear whether the CFS period controllable per-cgroup even has a future in the kernel, hence let's simplify all this, hardcode the period to 100ms and only accept percentage based quota values. --- man/systemd-system.conf.xml | 12 ------------ man/systemd.resource-control.xml | 27 +++++---------------------- 2 files changed, 5 insertions(+), 34 deletions(-) (limited to 'man') diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 3814bd2ad8..e2b2bd8b6f 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -301,18 +301,6 @@ 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 a1f63dd66b..e0e49db7d1 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -143,14 +143,11 @@ along with systemd; If not, see . 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 + executed. Takes a percentage value, suffixed with "%". 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. This controls the cpu.cfs_quota_us control group attribute. For details about this control group attribute, see . - - 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. - - - MemoryAccounting= -- cgit v1.2.3-54-g00ecf