]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add CPUQuotaPeriodSec=
authorFilipe Brandenburger <filbranden@google.com>
Fri, 2 Nov 2018 16:21:57 +0000 (09:21 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Thu, 14 Feb 2019 19:04:42 +0000 (11:04 -0800)
commit10f28641115733c61754342d5dcbe70b083bea4b
treef0f8ab9e60ffa381fed0ad638e785ac601d29164
parent7b61ce3c44ef5908e817009ce4f9d2a7a37722be
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.
docs/TRANSIENT-SETTINGS.md
man/systemd.resource-control.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-cgroup.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/shared/bus-unit-util.c
src/test/meson.build
src/test/test-cgroup-cpu.c [new file with mode: 0644]