From: Lennart Poettering Date: Fri, 13 Nov 2015 18:32:37 +0000 (+0100) Subject: logind: change default to UserTasksMax= to 4096 X-Git-Tag: v228~16^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5bc6e5450981e1f3f88e083f5070038a0211b74;p=platform%2Fupstream%2Fsystemd.git logind: change default to UserTasksMax= to 4096 --- diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 3cde267..9437665 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -288,7 +288,7 @@ TasksMax= setting of the per-user slice unit, see systemd.resource-control5 - for details. + for details. Defaults to 4096. diff --git a/src/login/logind.c b/src/login/logind.c index c3a2fb5..7b41174 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -70,7 +70,7 @@ static Manager *manager_new(void) { m->idle_action_not_before_usec = now(CLOCK_MONOTONIC); m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */ - m->user_tasks_max = (uint64_t) -1; + m->user_tasks_max = UINT64_C(4096); m->devices = hashmap_new(&string_hash_ops); m->seats = hashmap_new(&string_hash_ops); diff --git a/src/login/logind.conf b/src/login/logind.conf index e8f1487..81f6695 100644 --- a/src/login/logind.conf +++ b/src/login/logind.conf @@ -32,4 +32,4 @@ #IdleActionSec=30min #RuntimeDirectorySize=10% #RemoveIPC=yes -#UserTasksMax= +#UserTasksMax=4096