openvpn is only utilizing one core, why? [PINE64]

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
G33RT
Posts: 16
Joined: Mon Jun 04, 2018 1:20 pm

openvpn is only utilizing one core, why? [PINE64]

Post by G33RT »

Hi to all,

I have setup a PINE64 with DietPi v6.9 with OpenVPN as a VPN Gateway.
When I test the vpn throughput I noticed that only one core gets utilized.

Can we somehow spread the load over all 4 cores instead ?
Regards, G33RT
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: openvpn is only utilizing one core, why? [PINE64]

Post by WarHawk »

How many tunnels are being built? Try building multiple tunnels and see if it autobalances the different threads across the cores

Did some googlin'
OpenVPN 2.x series is a single-threaded application. Possible muti-core support in 3.x series I read somewhere. Currently your only option is to run OpenVPN on a more powerful device
https://forums.openvpn.net/viewtopic.php?t=19570

Looks like it's single core, but supports threading
https://community.openvpn.net/openvpn/w ... #Threading

I routinely have 2 VPN's up and running along with a TOR relay on an Orange Pi Zero and it hums along nicely...
A 64bit machine should run VPN and yawn while it's doing it
G33RT
Posts: 16
Joined: Mon Jun 04, 2018 1:20 pm

Re: openvpn is only utilizing one core, why? [PINE64]

Post by G33RT »

So you have a TOR Relay runnin besites an VPN on that little board, cool.
Regards, G33RT
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: openvpn is only utilizing one core, why? [PINE64]

Post by WarHawk »

Yes, TOR/VPN on an Orange Pi Zero headless
runs like a champ!
Post Reply