moby/contrib/init
Sebastiaan van Stijn 428d7337e8
Don't set ulimits (nproc)
There is a not-insignificant performance overhead for all containers (if
containerd is a child of Docker, which is the current setup) if rlimits are
set on the main Docker daemon process (because the limits
propogate to all children).

We recommend using cgroups to do container-local accounting.

This applies the change added in 8db61095a3
to other init scripts.

Note that nfile cannot be set to unlimited, and the limit
is hardcoded to 1048576 (2^20) , see:
http://stackoverflow.com/a/1213069/1811501

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-07-13 17:15:19 +02:00
..
openrc Don't set ulimits (nproc) 2016-07-13 17:15:19 +02:00
systemd Don't set ulimits (nproc) 2016-07-13 17:15:19 +02:00
sysvinit-debian Don't set ulimits (nproc) 2016-07-13 17:15:19 +02:00
sysvinit-redhat use tabs for indentation 2016-07-12 23:16:55 +02:00
upstart Don't set ulimits (nproc) 2016-07-13 17:15:19 +02:00