summaryrefslogtreecommitdiff
path: root/mkosi.default
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-05 13:50:28 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-05 20:53:47 +0100
commitf7d2991539635b25ab1005887e1502dd8b98f18d (patch)
tree4014a8d334efa21fb6068887e8d8aec1eb1587f6 /mkosi.default
parentc631c3d6a340c13adf05dc9b06bd7bd566bd6c9e (diff)
downloadsystemd-f7d2991539635b25ab1005887e1502dd8b98f18d.tar.gz
core: make TasksMax a partially dynamic property
TasksMax= and DefaultTasksMax= can be specified as percentages. We don't actually document of what the percentage is relative to, but the implementation uses the smallest of /proc/sys/kernel/pid_max, /proc/sys/kernel/threads-max, and /sys/fs/cgroup/pids.max (when present). When the value is a percentage, we immediately convert it to an absolute value. If the limit later changes (which can happen e.g. when systemd-sysctl runs), the absolute value becomes outdated. So let's store either the percentage or absolute value, whatever was specified, and only convert to an absolute value when the value is used. For example, when starting a unit, the absolute value will be calculated when the cgroup for the unit is created. Fixes #13419.
Diffstat (limited to 'mkosi.default')
0 files changed, 0 insertions, 0 deletions