mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
logind,machined: bump TasksMax=
Issue #2388 suggests the current TasksMax= setting for user processes is to low. Bump it to 12K. Also, bump the container TasksMax= from 8K to 16K, so that it remains higher than the one for user processes. (Compare: the kernel default limit for processes system-wide is 32K). Fixes #2388
This commit is contained in:
parent
147d3751d8
commit
cf7d1a30e4
@ -70,7 +70,7 @@ static Manager *manager_new(void) {
|
|||||||
m->idle_action_not_before_usec = now(CLOCK_MONOTONIC);
|
m->idle_action_not_before_usec = now(CLOCK_MONOTONIC);
|
||||||
|
|
||||||
m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */
|
m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */
|
||||||
m->user_tasks_max = UINT64_C(4096);
|
m->user_tasks_max = UINT64_C(12288);
|
||||||
|
|
||||||
m->devices = hashmap_new(&string_hash_ops);
|
m->devices = hashmap_new(&string_hash_ops);
|
||||||
m->seats = hashmap_new(&string_hash_ops);
|
m->seats = hashmap_new(&string_hash_ops);
|
||||||
|
@ -1325,7 +1325,7 @@ int manager_start_scope(
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = sd_bus_message_append(m, "(sv)", "TasksMax", "t", 8192);
|
r = sd_bus_message_append(m, "(sv)", "TasksMax", "t", UINT64_C(16384));
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return bus_log_create_error(r);
|
return bus_log_create_error(r);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user