diff options
author | Filipe Brandenburger <filbranden@google.com> | 2018-11-02 09:21:57 -0700 |
---|---|---|
committer | Filipe Brandenburger <filbranden@google.com> | 2019-02-14 11:04:42 -0800 |
commit | 10f28641115733c61754342d5dcbe70b083bea4b (patch) | |
tree | f0f8ab9e60ffa381fed0ad638e785ac601d29164 /src/core/load-fragment.c | |
parent | 7b61ce3c44ef5908e817009ce4f9d2a7a37722be (diff) | |
download | systemd-10f28641115733c61754342d5dcbe70b083bea4b.tar.gz |
core: add CPUQuotaPeriodSec=
This new setting allows configuration of CFS period on the CPU cgroup, instead
of using a hardcoded default of 100ms.
Tested:
- Legacy cgroup + Unified cgroup
- systemctl set-property
- systemctl show
- Confirmed that the cgroup settings (such as cpu.cfs_period_ns) were set
appropriately, including updating the CPU quota (cpu.cfs_quota_ns) when
CPUQuotaPeriodSec= is updated.
- Checked that clamping works properly when either period or (quota * period)
are below the resolution of 1ms, or if period is above the max of 1s.
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 44f00a3046..1d4a1bd343 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -54,6 +54,7 @@ #include "unit-name.h" #include "unit-printf.h" #include "user-util.h" +#include "time-util.h" #include "web-util.h" static int parse_socket_protocol(const char *s) { |