Skip to content

Conversation

@cyphar
Copy link
Contributor

@cyphar cyphar commented Jul 4, 2016

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 [email protected]

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 <[email protected]>
@cyphar
Copy link
Contributor Author

cyphar commented Jul 5, 2016

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
Contributor

LGTM

1 similar comment
@runcom
Copy link
Member

runcom commented Jul 5, 2016

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