Re: [Openvpn-devel] [PATCH v2] Require at least 100MB of mlock()-able memory if --mlock is used.

2021-03-09 Thread Selva Nair
Hi, On Mon, Mar 8, 2021 at 2:11 AM Gert Doering wrote: > If --mlock is used, the amount of memory OpenVPN can use is guarded > by the RLIMIT_MEMLOCK value (see mlockall(2)). The OS default for this > is usually 64 Kbyte, which is enough for OpenVPN to initialize, but > as soon as the first TLS

[Openvpn-devel] [PATCH v2] Require at least 100MB of mlock()-able memory if --mlock is used.

2021-03-07 Thread Gert Doering
If --mlock is used, the amount of memory OpenVPN can use is guarded by the RLIMIT_MEMLOCK value (see mlockall(2)). The OS default for this is usually 64 Kbyte, which is enough for OpenVPN to initialize, but as soon as the first TLS handshake comes it, OpenVPN will crash due to "ouf of memory", and