Browse code

Set TasksMax in addition to LimitNPROC in systemd service files

systemd sets an additional limit on processes and threads that defaults to 512 when run under Linux >= 4.3.
See more information here: http://unix.stackexchange.com/a/255603/59955

Signed-off-by: Candid Dauth <cdauth@cdauth.eu>

Candid Dauth authored on 2016/01/17 02:26:08
Showing 2 changed files
... ...
@@ -11,6 +11,7 @@ MountFlags=slave
11 11
 LimitNOFILE=1048576
12 12
 LimitNPROC=1048576
13 13
 LimitCORE=infinity
14
+TasksMax=1048576
14 15
 TimeoutStartSec=0
15 16
 
16 17
 [Install]
... ...
@@ -88,6 +88,7 @@ In this example, we'll assume that your `docker.service` file looks something li
88 88
     ExecStart=/usr/bin/docker daemon -H fd://
89 89
     LimitNOFILE=1048576
90 90
     LimitNPROC=1048576
91
+    TasksMax=1048576
91 92
 
92 93
     [Install]
93 94
     Also=docker.socket