Systemd/src/shared
Filipe Brandenburger 10f2864111 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.
2019-02-14 11:04:42 -08:00
..
linux libbpf.h: add BPF_JMP_A macro 2018-10-09 09:46:36 -07:00
linux-3.13 Avoid strict DM interface version dependencies (#5519) 2017-03-02 19:11:37 +01:00
acl-util.c shared: Revert commit 49fe5c099 in parts for function parse_acl. 2019-02-02 12:46:32 +01:00
acl-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
acpi-fpdt.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
acpi-fpdt.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
apparmor-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
apparmor-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
ask-password-api.c ask-password-api: do not call ask_password_keyring() if keyname == NULL 2018-12-30 21:13:47 +09:00
ask-password-api.h ask-password: make ask_password_keyring() static 2018-12-30 21:09:41 +09:00
barrier.c tree-wide: use SWAP_TWO a bit more 2018-11-26 22:17:34 +01:00
barrier.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
base-filesystem.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
base-filesystem.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
bitmap.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
bitmap.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
blkid-util.h shared/blkid-util: do not include util.h needlessly 2018-12-07 02:49:03 +01:00
boot-timestamps.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
boot-timestamps.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
bootspec.c tree-wide: port various parts of the code over to the new device_major_minor_path() calls 2018-11-29 20:21:39 +01:00
bootspec.h bootspec: reduce number of functions we export 2018-10-08 21:40:44 +02:00
bpf-program.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
bpf-program.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
bus-unit-util.c core: add CPUQuotaPeriodSec= 2019-02-14 11:04:42 -08:00
bus-unit-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
bus-util.c tree-wide: whenever we allocate a new bus object, close it before dropping final ref 2019-01-17 16:12:38 +01:00
bus-util.h tree-wide: remove various unused functions 2018-12-02 13:35:34 +09:00
calendarspec.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
calendarspec.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
cgroup-show.c locale-util: prefix special glyph enum values with SPECIAL_GLYPH_ 2018-12-14 08:22:54 +01:00
cgroup-show.h tree-wide: remove various unused functions 2018-12-02 13:35:34 +09:00
clean-ipc.c Move LONG_LINE_MAX definition to fileio.h 2018-11-14 16:25:32 +01:00
clean-ipc.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
clock-util.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
clock-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
condition.c util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
condition.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
conf-parser.c time-util: Introduce parse_sec_def_infinity 2019-02-14 11:04:42 -08:00
conf-parser.h time-util: Introduce parse_sec_def_infinity 2019-02-14 11:04:42 -08:00
cpu-set-util.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
cpu-set-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
crypt-util.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
crypt-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
daemon-util.h sd-daemon: add notify_start() and notify_on_cleanup() helper function 2018-12-08 18:09:25 +09:00
dev-setup.c dev-setup: generalize logic we use to create "inaccessible" device nodes 2018-11-29 20:21:40 +01:00
dev-setup.h dev-setup: generalize logic we use to create "inaccessible" device nodes 2018-11-29 20:21:40 +01:00
dissect-image.c shared/dissect-image: make sure that we don't truncate device name 2019-01-27 09:35:36 +01:00
dissect-image.h gpt-auto-generator: don't wait for udev 2018-12-19 23:27:47 +01:00
dns-domain.c Partially unify hostname_is_valid() and dns_name_is_valid() 2018-12-10 09:56:56 +01:00
dns-domain.h resolve: reject host names with leading or trailing dashes in /etc/hosts 2018-12-10 09:56:56 +01:00
dropin.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
dropin.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
efivars.c efivars: remove direct access to unaligned structure members 2019-02-05 18:15:00 +01:00
efivars.h efivars: let's add some validation of boot menu entry name syntax 2018-11-16 15:52:22 +01:00
enable-mempool.c mempool: only enable mempool use when linked to libsystemd-shared.so 2018-10-11 11:10:37 +02:00
env-file-label.c util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
env-file-label.h util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
exec-util.c tree-wide: Remove O_CLOEXEC from fdopen 2018-12-12 20:47:40 +01:00
exec-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
exit-status.c exit-status: introduce EXIT_EXCEPTION mapping to 255 2018-11-20 17:04:07 +01:00
exit-status.h exit-status: introduce EXIT_EXCEPTION mapping to 255 2018-11-20 17:04:07 +01:00
fdset.c do not try to allocate 0 bytes 2018-10-12 14:51:35 +02:00
fdset.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
fileio-label.c util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
fileio-label.h util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
firewall-util.c firewall-util: add an assert that we're not overwriting a buffer 2018-10-12 14:51:35 +02:00
firewall-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
format-table.c format-table: never try to reuse cells that have color/url/uppercase set 2018-12-03 22:42:38 +01:00
format-table.h format-table: add option to uppercase cells on display 2018-12-03 22:42:38 +01:00
fstab-util.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
fstab-util.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
generate-ip-protocol-list.sh util: rename socket_protocol_{from,to}_name() to ip_protocol_{from,to}_name() 2018-12-02 05:48:27 +01:00
generator.c shared/generator: reword comment for clarity 2018-12-03 23:55:29 +01:00
generator.h generators: define custom main func definer and use it where applicable 2018-12-12 21:58:00 +01:00
gpt.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
id128-print.c Split out pretty-print.c and move pager.c and main-func.h to shared/ 2018-11-20 18:40:02 +01:00
id128-print.h systemd-id128: a new tool to print machine/boot/invocation/app-specific ids 2018-10-02 15:15:10 +02:00
ima-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
ima-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
import-util.c import-util: downgrade log message about quota to LOG_DEBUG 2018-11-26 18:09:01 +01:00
import-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
initreq.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
install-printf.c Mark *data and *userdata params to specifier_printf() as const 2018-12-12 16:45:33 +01:00
install-printf.h Mark *data and *userdata params to specifier_printf() as const 2018-12-12 16:45:33 +01:00
install.c Remove 'inline' attributes from static functions in .c files (#11426) 2019-01-15 08:12:28 +01:00
install.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
ip-protocol-list.c ip-protocol-list: sort headers 2018-12-04 09:18:21 +01:00
ip-protocol-list.h util: introduce parse_ip_protocol() 2018-12-02 06:13:41 +01:00
ip-protocol-to-name.awk util: rename socket_protocol_{from,to}_name() to ip_protocol_{from,to}_name() 2018-12-02 05:48:27 +01:00
journal-importer.c journal-remote: set a limit on the number of fields in a message 2019-01-09 23:44:17 +01:00
journal-importer.h journald: set a limit on the number of fields (1k) 2019-01-09 23:41:53 +01:00
journal-util.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-util.h tree-wide: add multiple inclusion guard 2018-06-25 13:04:59 +09:00
json-internal.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
json.c json: handle NULL explicitly in json_variant_has_type() 2019-01-07 17:50:39 +01:00
json.h json: fix typo 2019-01-07 17:50:39 +01:00
libshared.sym tree-wide: tabs suck (#8527) 2018-03-23 15:21:35 +01:00
lockfile-util.c lockfile-util.c: fix build without F_OFD_SETLK 2019-01-11 17:37:36 +01:00
lockfile-util.h lockfile: drop unnecessary headers from lockfile-util.h 2018-12-06 13:31:16 +01:00
logs-show.c tree-wide: use '"' instead of '\"' 2019-01-17 16:46:29 +00:00
logs-show.h logs-show: make highlight parameter const (#10311) 2018-10-09 16:43:47 +09:00
loop-util.c loop-util: tweak codepath when a loopback file is "created" from an existing block device 2019-01-07 17:50:39 +01:00
loop-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
machine-image.c lockfile: drop unnecessary headers from lockfile-util.h 2018-12-06 13:31:16 +01:00
machine-image.h machine-image: introduce image_hash_ops and use it 2018-12-02 12:18:54 +01:00
machine-pool.c import: drop logic of setting up /var/lib/machines as btrfs loopback mount 2018-11-26 18:09:01 +01:00
machine-pool.h import: drop logic of setting up /var/lib/machines as btrfs loopback mount 2018-11-26 18:09:01 +01:00
main-func.h generators: define custom main func definer and use it where applicable 2018-12-12 21:58:00 +01:00
meson.build shared: add helper for flushing nscd caches 2018-12-15 12:10:19 +01:00
module-util.c shared/module-util: fix preexisting mixup with errno sign 2018-07-19 18:28:21 +02:00
module-util.h udev-builtin-kmod: use the generic module_load() function 2018-07-19 18:28:21 +02:00
mount-util.c Move mount-util.c to shared/ 2018-11-29 21:03:44 +01:00
mount-util.h Move mount-util.c to shared/ 2018-11-29 21:03:44 +01:00
nscd-flush.c shared: add helper for flushing nscd caches 2018-12-15 12:10:19 +01:00
nscd-flush.h shared: add helper for flushing nscd caches 2018-12-15 12:10:19 +01:00
nsflags.c util: drop missing.h from socket-util.h 2018-12-06 13:31:16 +01:00
nsflags.h nsflsgs: drop missing.h and use missing_sched.h 2018-12-06 13:31:16 +01:00
os-util.c tree-wide: Remove O_CLOEXEC from fdopen 2018-12-12 20:47:40 +01:00
os-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
output-mode.c output-mode: add generic helper to pick right JsonFormatFlags for given OutputMode 2018-12-03 22:42:38 +01:00
output-mode.h output-mode: add new helper OUTPUT_MODE_IS_JSON() 2018-12-03 22:42:38 +01:00
pager.c pager: improve english a bit 2019-01-31 13:37:58 +01:00
pager.h Split out pretty-print.c and move pager.c and main-func.h to shared/ 2018-11-20 18:40:02 +01:00
path-lookup.c util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00
path-lookup.h path-lookup: define explicit unit file directory for attached unit files 2018-10-08 18:49:45 +02:00
pretty-print.c path-util: allow NULLs in arguments to path_join() 2018-11-30 22:21:17 +01:00
pretty-print.h terminal-util: split out file:// generation from terminal_urlify_path() 2018-11-30 16:46:10 +01:00
ptyfwd.c ptyfwd: optionally override terminal width/height 2018-11-29 20:21:39 +01:00
ptyfwd.h tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
reboot-util.c Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
reboot-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
resolve-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
resolve-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
seccomp-util.c seccomp: drop mincore() from @system-service syscall filter group 2019-01-16 18:08:35 +01:00
seccomp-util.h seccomp: reduce logging about failure to add syscall to seccomp 2018-09-24 17:21:09 +02:00
securebits-util.c missing: rename securebits.h to missing_securebits.h 2018-12-04 07:49:24 +01:00
securebits-util.h missing: rename securebits.h to missing_securebits.h 2018-12-04 07:49:24 +01:00
serialize.c util: drop missing.h from util.h 2018-12-04 10:00:34 +01:00
serialize.h util-lib: move open_serialization_fd() to serialize.c 2018-12-02 13:22:29 +01:00
sleep-config.c Revert "sleep: offer hibernation only if the kernel image still exists" 2018-12-21 18:23:17 +01:00
sleep-config.h shared/sleep-config: add switches to kill specific sleep modes 2018-10-08 18:21:00 +02:00
spawn-ask-password-agent.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
spawn-ask-password-agent.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
spawn-polkit-agent.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
spawn-polkit-agent.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
specifier.c Mark *data and *userdata params to specifier_printf() as const 2018-12-12 16:45:33 +01:00
specifier.h Mark *data and *userdata params to specifier_printf() as const 2018-12-12 16:45:33 +01:00
switch-root.c switch-root: fix error message 2018-12-28 15:37:15 +09:00
switch-root.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
sysctl-util.c sysctl: when debug logging about sysctl changes, truncate trailing newline 2018-11-22 11:45:37 +01:00
sysctl-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-tables.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
tests.c util-lib: split out env file parsing code into env-file.c 2018-12-02 13:22:29 +01:00
tests.h tests: add helper call have_namespaces() to test whether Linux namespaces are available 2018-10-24 19:40:24 +02:00
tmpfile-util-label.c util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00
tmpfile-util-label.h util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00
tomoyo-util.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
tomoyo-util.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
udev-util.c rfkill: move wait_for_initialized() to shared/ 2018-12-17 13:50:51 +01:00
udev-util.h rfkill: move wait_for_initialized() to shared/ 2018-12-17 13:50:51 +01:00
uid-range.c tree-wide: use typesafe_qsort() 2018-09-19 08:02:52 +09:00
uid-range.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
utmp-wtmp.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
utmp-wtmp.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
verbs.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
verbs.h tree-wide: fix a few missing includes 2018-11-26 18:09:01 +01:00
vlan-util.c vlan-util: add assertions to parse_vlanid() 2018-11-04 00:31:46 +09:00
vlan-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
volatile-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
volatile-util.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
watchdog.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
watchdog.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
web-util.c tree-wide: port various places over to STARTSWITH_SET() 2018-11-26 14:08:46 +01:00
web-util.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00
wireguard-netlink.h networkd: add support for wireguard interface type 2018-01-09 14:00:49 +01:00
xml.c tree-wide: use '"' instead of '\"' 2019-01-17 16:46:29 +00:00
xml.h Move various files that don't need to be in basic/ to shared/ 2018-11-20 07:27:37 +01:00