theghost31000
Hi guys, i'm new here, i created this issue in stackoverflow, but now, i found you so i decided to ask here, in the hope you can help me 🙂
So, I want to have the best network speed. I have the Gigabit network on my odroid C1 ( looks like a Raspberry pi 2 ). But I have a bad download speed with OpenVPN ( between 10 and 15Mb/s ) with 20% CPU use and a Upload between 40-50Mb/s).
The upload is normal because i'm limited by the CPU. Indeed, Openvpn runs on only 1 core.
The command top says : 99,9% for openvpn. When an application runs on 2-4 cores , i see something like 231% CPU use etc. So i can conclude that openvpn runs on 1 core. Is it wrong ?
How can i run openvpn on multi core ? Is it possible ?
For information, this is myserver.conf :
port 443
proto tcp
dev tun
comp-lzo
persist-key
persist-tun
keepalive 10 20
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
ca ca.crt
cert MyVPNServer.crt
key MyVPNServer.key
dh dh.pem
sndbuf 256000
rcvbuf 256000
push "sndbuf 256000"
push "rcvbuf 256000"
status openvpn-status.log
verb 3
This is my client.conf :
client
dev tun
proto tcp
remote X.X.X.X 443
resolv-retry infinite
remote-cert-tls server
nobind
ca ca.crt
cert kevinPortable.crt
key kevinPortable.key
persist-key
persist-tun
rcvbuf 256000
sndbuf 256000
comp-lzo
verb 3
I have set the buffer size at 256K for better perf. At the begin i had 40mb/s on Download and upload thanks to 256K of buffer, but now it's only 15Mb/s on Download like before the change of buffer ... i tried to reboot but no change, so i don't understand why it's so slow now ... Without the VPN i have 500Mb/s on Download and 250 on Upload with the odroid C1.
NB0: I use Openvpn 2.3.10
NB1 : Easy-RSA 3 KEY: 2048 BITS
NB2: lzo-comp for compression is really usefull today or not ?
Thank you in advance 🙂