On 08/12/16 09:07, Chris Anderson wrote: > Hi > > I have a problem with openvpn running from systemd (not using the > suplied systemd unit files) consuming 100% cpu on single thread when > running from systemd. When I run this from a root shell the CPU usage is > nominal but with rc1 when I run the same command from a systemd unit > file the CPU on a single core hits 100%. This problem doesn't appear on > 2.3.13. > > I tried compiling with and without --[en|dis]able-systemd configure > option and added the Type=notify for startup notifictions but th this > didn't help.
First of all, please fix your mail agent to send text/plain in addition to text/html (if you insist on sending html based contents). In regards to Type=notify in the unit file, that *requires* a build with --enable-systemd. Without that, the systemd service manager will not get a response from the openvpn process at all. Which leads to a time out and systemd will kill the OpenVPN process within (iirc) 90 seconds. There is also another bug, where a patch [1] resolving this for the v2.4.0 is on the -devel mailing list. This bug is related to OpenVPN configurations using --chroot. Further, it would be good to see your ./configure arguments (you'll find them in the config.log in the source tree). If you use --enable-async-push, Gert is most likely right; the patch is here [2]. [1] <https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13416.html> [2] <https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13415.html> -- kind regards, David Sommerseth OpenVPN Technologies, Inc
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users