From: "flichtenheld (Code Review)" Date: Tue, 17 Feb 2026 15:56:35 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XVjNAVoVTf4="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: systemd: Change LimitNPROC to TasksMax List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --XVjNAVoVTf4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1539?usp=3Demail to review the following change. Change subject: systemd: Change LimitNPROC to TasksMax ...................................................................... systemd: Change LimitNPROC to TasksMax There were some complaints about valid setups that ran into problems with LimitNPROC. This is especially true since LimitNPROC limits the total amounts of threads running for the same uid, so if multiple openvpn services run under the same user, they will compete for resources. As suggested in the systemd documentation change this to TasksMax which really counts the threads running in one specific service. Github: Fixes #929 Change-Id: Ic877f9a9c6459c6eb97cde1099f47f0b196b8084 Signed-off-by: Frank Lichtenheld --- M distro/systemd/openvpn-client@...2221... M distro/systemd/openvpn-server@...2221... 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/1539/1 diff --git a/distro/systemd/openvpn-client@...2221... b/distro/systemd/open= vpn-client@...2221... index 326bb73..e311978 100644 --- a/distro/systemd/openvpn-client@...2221... +++ b/distro/systemd/openvpn-client@...2221... @@ -12,7 +12,7 @@ WorkingDirectory=3D/etc/openvpn/client ExecStart=3D@...2235...@/openvpn --suppress-timestamps --nobind --config %i.c= onf CapabilityBoundingSet=3DCAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID = CAP_SETUID CAP_SETPCAP CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_SYS_NICE -LimitNPROC=3D10 +TasksMax=3D10 DeviceAllow=3D/dev/null rw DeviceAllow=3D/dev/net/tun rw ProtectSystem=3Dtrue diff --git a/distro/systemd/openvpn-server@...2221... b/distro/systemd/open= vpn-server@...2221... index d43bce1..e3e9895 100644 --- a/distro/systemd/openvpn-server@...2221... +++ b/distro/systemd/openvpn-server@...2221... @@ -12,7 +12,7 @@ WorkingDirectory=3D/etc/openvpn/server ExecStart=3D@...2235...@/openvpn --status %t/openvpn-server/status-%i.log --s= tatus-version 2 --suppress-timestamps --config %i.conf CapabilityBoundingSet=3DCAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CA= P_NET_RAW CAP_SETGID CAP_SETUID CAP_SETPCAP CAP_SYS_CHROOT CAP_DAC_OVERRIDE= CAP_SYS_NICE CAP_AUDIT_WRITE -LimitNPROC=3D10 +TasksMax=3D10 DeviceAllow=3D/dev/null rw DeviceAllow=3D/dev/net/tun rw ProtectSystem=3Dtrue -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1539?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ic877f9a9c6459c6eb97cde1099f47f0b196b8084 Gerrit-Change-Number: 1539 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --XVjNAVoVTf4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

systemd: Change LimitNPROC to TasksMax
<= br>There were some complaints about valid setups
that ran into problems = with LimitNPROC. This
is especially true since LimitNPROC limits
the = total amounts of threads running for the
same uid, so if multiple openvp= n services run
under the same user, they will compete for
resources. = As suggested in the systemd
documentation change this to TasksMax which<= br>really counts the threads running in one
specific service.

Git= hub: Fixes #929
Change-Id: Ic877f9a9c6459c6eb97cde1099f47f0b196b8084
= Signed-off-by: Frank Lichtenheld <frank@...2641...>
---
M distr= o/systemd/openvpn-client@...2221...
M distro/systemd/openvpn-server@...1665...= 221...
2 files changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/= 1539/1
diff --git a/distro/systemd/openvpn-client@...2221... b/dist=
ro/systemd/openvpn-client@...2221...
index 326bb73..e311978= 100644
--- a/distro/systemd/openvpn-client@...2221...
+++ b/distro/systemd/openvpn-client@...2221...
= @@ -12,7 +12,7 @@
WorkingDirectory=3D/etc/openvpn/client
ExecStart=3D@...2235...@/openvpn --suppress-timestamps --nobin= d --config %i.conf
CapabilityBoundingSet=3DCAP_IPC_LOCK CA= P_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SETPCAP CAP_SYS_CHROOT CA= P_DAC_OVERRIDE CAP_SYS_NICE
-LimitNPROC=3D10
+TasksMax=3D10
DeviceAllow=3D/dev/null rw
DeviceAllow=3D/dev/net/tun rw

ProtectSystem=3Dtrue
diff --git a/distro/systemd/openvpn-server@...2221... b/distro/s= ystemd/openvpn-server@...2221...
index d43bce1..e3e9895 100= 644
--- a/distro/systemd/openvpn-server@...2221...+++ b/distro/systemd/openvpn-server@...2221...
@@ -= 12,7 +12,7 @@
WorkingDirectory=3D/etc/openvpn/server
ExecStart=3D@...2235...@/openvpn --status %t/openvpn-server/status= -%i.log --status-version 2 --suppress-timestamps --config %i.conf CapabilityBoundingSet=3DCAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SER= VICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SETPCAP CAP_SYS_CHROOT CAP_DAC_O= VERRIDE CAP_SYS_NICE CAP_AUDIT_WRITE
-LimitNPROC=3D10
+TasksMax=3D10
DeviceAllow=3D/dev/null rw=
DeviceAllow=3D/dev/net/tun rw
ProtectSystem=3Dt= rue

To view, visit change 1539. To unsubscr= ibe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic877f9a9c6459c6eb97cde1099f= 47f0b196b8084
Gerrit-Change-Number: 1539
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --XVjNAVoVTf4=--