logind: change default to UserTasksMax= to 4096
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 18:32:37 +0000 (19:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Nov 2015 10:58:04 +0000 (11:58 +0100)
man/logind.conf.xml
src/login/logind.c
src/login/logind.conf

index 3cde267..9437665 100644 (file)
         <varname>TasksMax=</varname> setting of the per-user slice
         unit, see
         <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
-        for details.</para></listitem>
+        for details. Defaults to 4096.</para></listitem>
       </varlistentry>
 
       <varlistentry>
index c3a2fb5..7b41174 100644 (file)
@@ -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);
index e8f1487..81f6695 100644 (file)
@@ -32,4 +32,4 @@
 #IdleActionSec=30min
 #RuntimeDirectorySize=10%
 #RemoveIPC=yes
-#UserTasksMax=
+#UserTasksMax=4096