1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

nspawn: set TasksMax= for containers to 8192 by default

This commit is contained in:
Lennart Poettering 2015-11-13 19:38:40 +01:00
parent a5bc6e5450
commit 541ec33075
2 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,10 @@ int register_machine(
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");
if (r < 0)
return bus_log_create_error(r);

View File

@ -20,6 +20,7 @@ RestartForceExitStatus=133
SuccessExitStatus=133
Slice=machine.slice
Delegate=yes
TasksMax=8192
# Enforce a strict device policy, similar to the one nspawn configures
# when it allocates its own scope unit. Make sure to keep these