New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set TasksMax in addition to LimitNPROC in systemd service files #19391
Conversation
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>
ping @jfrazelle because you're our systemd master now 😄 |
This is controlling the pids cgroup, it seems. So not related to #9868 it would seem. |
I'm going to set the 1.10 milestone as the current behavior will be horrible for anyone on the newer kernel. |
LGTM |
1 similar comment
LGTM |
Set TasksMax in addition to LimitNPROC in systemd service files
@dandric-activevideo, you are absolutely right, Do you have any alternate solution to set TasksMax for CentOS 7? |
@dandric-activevideo: I’m not sure that’s relevant. This commit only affects the systemd example service files. It is up to the package maintainers what service files they actually distribute. @mcmohd: In systemd before 228 there is no need to set it, as the task limit is not implemented yet. It is basically always set to |
systemd sets an additional limit on processes and threads that defaults to 512 when run under Linux >= 4.3 (see here). The problem has been described in #9868 and #19124.
This patch sets the
TasksMax
in the example systemd service files provided with docker.