S
S
sereja3222015-08-06 02:28:07
Debian
sereja322, 2015-08-06 02:28:07

Will combining several OpenVPN daemons give a speed boost?

There is a server (VDS) with configured OpenVPN. The speed is less than ~ 1Mbps from the speed of the provider (10Mbps), achieved by increasing the size of the packets. I read in one article that you can run several openvpns and combine them through a bond interface, but I could not do this. So, will it give an increase in speed? And is it possible, at least theoretically, to achieve, due to compression , a speed greater than that of the provider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Filimonov, 2015-08-06
@sereja322

The only reason that justifies several daemons and which I know is that OpenVPN is single-threaded, and therefore, in a multi-core system, the scheduler will throw the process from core to core, but you will not utilize all resources in this way. If you run several OpenVPN processes, then in theory you should use the processor more efficiently. This is relevant if you have a large channel, for example, gigabit or higher, and encryption / packet processing slows down .
As for the connection speed, you won’t get more than your channel, run at least a dozen of any VPNs. The provider will shape your traffic, i.e. all packets over a certain limit will be dropped (the simplest case).
Accordingly, in your case (10 Mbps) there is no reason to raise several processes, to raise bonding (which, by the way, has different algorithms and not each of them will be effective specifically for increasing throughput). Now, if you had several channels with different bandwidth, then yes, it would make sense.
I could suggest tweaking OpenVPN, but it looks like you've already done it. The increase in speed can also be obtained by disabling compression, fixing mss, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question