mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
nspawn: set TasksMax= for containers to 8192 by default
This commit is contained in:
parent
a5bc6e5450
commit
541ec33075
@ -105,6 +105,10 @@ int register_machine(
|
|||||||
return bus_log_create_error(r);
|
return bus_log_create_error(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r = sd_bus_message_append(m, "(sv)", "TasksMax", "t", 8192);
|
||||||
|
if (r < 0)
|
||||||
|
return bus_log_create_error(r);
|
||||||
|
|
||||||
r = sd_bus_message_append(m, "(sv)", "DevicePolicy", "s", "strict");
|
r = sd_bus_message_append(m, "(sv)", "DevicePolicy", "s", "strict");
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return bus_log_create_error(r);
|
return bus_log_create_error(r);
|
||||||
|
@ -20,6 +20,7 @@ RestartForceExitStatus=133
|
|||||||
SuccessExitStatus=133
|
SuccessExitStatus=133
|
||||||
Slice=machine.slice
|
Slice=machine.slice
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
|
TasksMax=8192
|
||||||
|
|
||||||
# Enforce a strict device policy, similar to the one nspawn configures
|
# Enforce a strict device policy, similar to the one nspawn configures
|
||||||
# when it allocates its own scope unit. Make sure to keep these
|
# when it allocates its own scope unit. Make sure to keep these
|
||||||
|
Loading…
Reference in New Issue
Block a user