Skip to content

Commit 9013d31

Browse files
dthorseneljohnson92
authored andcommitted
Increase RLIMIT_MEMLOCK in containers
1 parent 758c935 commit 9013d31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/pre-kubeadminit.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,18 @@ KillMode=process
8888
Restart=always
8989
RestartSec=5
9090
91-
# Having non-zero Limit*s causes performance problems due to accounting overhead
91+
# Having non-zero Limits causes performance problems due to accounting overhead
9292
# in the kernel. We recommend using cgroups to do container-local accounting.
9393
LimitNPROC=infinity
9494
LimitCORE=infinity
95+
96+
# Increase the open file limit to the kernel default
9597
LimitNOFILE=infinity
9698
99+
# Increase RLIMIT_MEMLOCK to the newer linux kernel default.
100+
# This improves support for certain workloads running on linux kernel versions <= 5.15
101+
LimitMEMLOCK=8388608
102+
97103
# Comment TasksMax if your systemd version does not supports it.
98104
# Only systemd 226 and above support this version.
99105
TasksMax=infinity

0 commit comments

Comments
 (0)