Skip to content

contrib: systemd: set Limit* to infinity - #24307

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
cyphar:remove-systemd-rlimits
Jul 5, 2016
Merged

cpuguy83 merged 1 commit into
moby:masterfrom
cyphar:remove-systemd-rlimits

Conversation

@cyphar

@cyphar cyphar commented Jul 4, 2016

Copy link
Copy Markdown
Contributor

There is a not-insignificant performance overhead for all containers (if
containerd is a child of Docker, which is the current setup) if systemd
sets rlimits on the main Docker daemon process (because the limits
propogate to all children).

cute

Signed-off-by: Aleksa Sarai asarai@suse.de

There is a not-insignificant performance overhead for all containers (if
containerd is a child of Docker, which is the current setup) if systemd
sets rlimits on the main Docker daemon process (because the limits
propogate to all children).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar

cyphar commented Jul 5, 2016 •

Copy link
Copy Markdown
Contributor Author

If you look at the original commit that added these limits (291d5e6, #4455), it looks like it was just to make sure that we don't hit the limits as Docker (it wasn't a limiting feature). This commit fixes the performance problem without causing issues with the daemon opening too many files or processes.

@justincormack

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@runcom

runcom commented Jul 5, 2016

Copy link
Copy Markdown
Member

LGTM

@justincormack justincormack mentioned this pull request Jul 5, 2016
@cpuguy83
cpuguy83 merged commit 34a9e9d into moby:master Jul 5, 2016
@cpuguy83 cpuguy83 added this to the 1.12.0 milestone Jul 5, 2016
@cyphar
cyphar deleted the remove-systemd-rlimits branch July 6, 2016 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants