summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorPeter Morrow <pemorrow@linux.microsoft.com>2021-09-14 18:14:53 +0200
committerPeter Morrow <pemorrow@linux.microsoft.com>2021-09-15 10:30:12 +0200
commit31d3a520297980ac31186e27396a05f928fde49f (patch)
treeb51a6ceddd6847ffddd7f49a0510a119cdd660c4 /src/shared
parentpo: Translated using Weblate (Finnish) (diff)
downloadsystemd-31d3a520297980ac31186e27396a05f928fde49f.tar.xz
systemd-31d3a520297980ac31186e27396a05f928fde49f.zip
cgroup: add support for StartupAllowedCPUs and StartupAllowedMemoryNodes
Add new settings which can be used to control cpuset based cpu affinity during the startup phase only. Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/bus-unit-util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
index 669d0df058..f9637ac0cc 100644
--- a/src/shared/bus-unit-util.c
+++ b/src/shared/bus-unit-util.c
@@ -474,7 +474,9 @@ static int bus_append_cgroup_property(sd_bus_message *m, const char *field, cons
return bus_append_cg_cpu_shares_parse(m, field, eq);
if (STR_IN_SET(field, "AllowedCPUs",
- "AllowedMemoryNodes")) {
+ "StartupAllowedCPUs",
+ "AllowedMemoryNodes",
+ "StartupAllowedMemoryNodes")) {
_cleanup_(cpu_set_reset) CPUSet cpuset = {};
_cleanup_free_ uint8_t *array = NULL;
size_t allocated;