Problem: Speedtest extremely slow in lxc or host shell, but ok in VMs

Sep 21, 2022
5
0
6
I created a VPN service using OpenVPN and I was trying to figure out where the bottleneck is because it's very slow compare to the internet speed I have on the server. But during the process I found things very confusing (the sevice is in LXC):

1. speedtest in the PVE host and LXCs have much higher Pings than in VM's (~7mms v.s. ~4mms)
2. speedtest extremly slow in host and LXCs compare to in VM's, ( 6-7 Mbps v.s. ~940Mbps )
3. the VPN service is in one of the LXCs, and when I connect to it using my phone, it's able to hit up to 300Mbps. (This is the one that confuses me the most, my connection to this VPN service within LXC is able to hit 300Mbps, which from my understanding, it means the bottleneck of my phone <=> the LXC <=> VPN processing <=> the testing server is 300Mbps, but I cannot hit even 10Mbps if I run it directly in the LXC) . Besides, if I put the VPN service in the VM, it performs the same (300Mbps).

VM:
1685109271207.png
1685109591998.png
1685110686560.png




the PVE host:
1685109122138.png
1685109642241.png


LXC:
1685109162037.png

1685109702006.png


1685110584777.png
(I've tested both vmbr0 and vmbr1 for VM, host and the lxc, they have the same results)
 

Attachments

  • 1685109678060.png
    1685109678060.png
    52.5 KB · Views: 9
I have this issue two with Wireguard lxc

The speed over wan is slow, iperf between peers is slow with same speed as you

Reboot host solves the issue but only few days