We have a Debian system with Asterisk and several hundred phones connected via OpenVPN.
Currently, Asterisk runs with realtime priority (as is its default) and OpenVPN with the standard scheduling policy but with priority 10 (nice -10).
I am thinking about the benefits or drawbacks of running the openvpn process also with realtime priority, since it has to transfer most of the SIP and audio traffic going to and from Asterisk. It seems that if Asterisk is running realtime to get everything processed and out the door asap, and this traffic is then handled to a daemon that is not running realtime, you may get unwanted delays if the host gets a higher load. On the other hand, nowhere have I found the advice to do this, so it might be unneccesary.
Note that we aren’t experiencing any issues currently, but I wonder if running openvpn realtime will prevent some in the future.
Any thoughts on this subject?
Thanks a lot, Roel