Internet Access Speed is slow in 1 VM, LAN is fine

bgk0018

New Member
Aug 17, 2024
2
0
1
I tried to follow suit to this post:
https://forum.proxmox.com/threads/slow-internet-performance-in-the-vm.121133/

# Problem

The throughput on my Home Server (Ubuntu 22.04.3 VM on Proxmox) to the internet isn't what I expected it to be. It's closer to 35mbps as opposed to my theoretical internet which is 1gbps.

## General Notes

Here are various speed tests from all wired devices on my network. Physically speaking, the NAS and Home Server are on the exact same switch, while the Personal Computer is wired, but elsewhere.

## Network

The network topology is pretty flat. I have a singular switch that plugs into the LAN port of my pfsense based router, the WAN port is directly plugged into the modem. That's basically it between the home server and the outside world.

## Speed Test CLI

Home Server (Ubuntu 22.04.3 VM on Proxmox, x.x.x.113)

$ speedtest-cli --secure
Retrieving speedtest.net configuration...
Testing from REDACTED...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by REDACTED [194.20 km]: 30.579 ms
Testing download speed................................................................................
Download: 35.80 Mbit/s
Testing upload speed......................................................................................................
Upload: 25.69 Mbit/s


Personal Computer (Windows 11, Direct Install, x.x.x.145)

Idle Latency: 14.98 ms (jitter: 0.82ms, low: 13.91ms, high: 15.99ms)
Download: 694.97 Mbps (data used: 1.2 GB)
183.62 ms (jitter: 56.45ms, low: 17.39ms, high: 615.47ms)
Upload: 24.47 Mbps (data used: 32.6 MB)
24.35 ms (jitter: 20.73ms, low: 13.64ms, high: 292.62ms)
Packet Loss: 0.0%


NAS (TrueNAS Scale, Direct Install, x.x.x.121)

Retrieving speedtest.net configuration...
Testing from REDACTED...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by REDACTED [246.80 km]: 18.836 ms
Testing download speed................................................................................
Download: 568.19 Mbit/s
Testing upload speed......................................................................................................
Upload: 23.54 Mbit/s


## iperf

Inside same LAN

Home Server (Ubuntu 22.04.3 VM on Proxmox) <--> Personal Computer (Windows 11, Direct Install)
1gbps~


Connecting to host 192.168.68.113, port 5201
[ 5] local 192.168.68.145 port 52986 connected to 192.168.68.113 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 114 MBytes 950 Mbits/sec
[ 5] 1.00-2.00 sec 113 MBytes 949 Mbits/sec
[ 5] 2.00-3.01 sec 115 MBytes 949 Mbits/sec
[ 5] 3.01-4.01 sec 113 MBytes 949 Mbits/sec
[ 5] 4.01-5.01 sec 113 MBytes 949 Mbits/sec
[ 5] 5.01-6.00 sec 112 MBytes 949 Mbits/sec
[ 5] 6.00-7.01 sec 115 MBytes 950 Mbits/sec
[ 5] 7.01-8.01 sec 113 MBytes 949 Mbits/sec
[ 5] 8.01-9.01 sec 113 MBytes 949 Mbits/sec
[ 5] 9.01-10.00 sec 113 MBytes 949 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.00 sec 1.11 GBytes 949 Mbits/sec sender
[ 5] 0.00-10.06 sec 1.10 GBytes 943 Mbits/sec receiver



Home Server <--> NAS (TrueNAS Scale, Direct Install)
1gpbs~


Connecting to host 192.168.68.121, port 5201
[ 5] local 192.168.68.113 port 33856 connected to 192.168.68.121 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 114 MBytes 956 Mbits/sec 0 3.15 MBytes
[ 5] 1.00-2.00 sec 112 MBytes 944 Mbits/sec 0 3.15 MBytes
[ 5] 2.00-3.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 3.00-4.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 4.00-5.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 5.00-6.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 6.00-7.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 7.00-8.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 8.00-9.00 sec 111 MBytes 933 Mbits/sec 0 3.15 MBytes
[ 5] 9.00-10.00 sec 110 MBytes 923 Mbits/sec 0 3.15 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.09 GBytes 935 Mbits/sec 0 sender
[ 5] 0.00-10.07 sec 1.09 GBytes 929 Mbits/sec receiver


## Replicating

I cloned the VM in question. The problem followed the clone as to be expected.


Excluding output here, can provide upon request, just don't want to spin all the services down since collisions...


I created a brand new VM from an Ubuntu 22.04.3 image and it does not exhibit the same problem.


Retrieving speedtest.net configuration...
Testing from REDACTED...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by REDACTED [246.80 km]: 41.458 ms
Testing download speed................................................................................
Download: 588.93 Mbit/s
Testing upload speed......................................................................................................
Upload: 26.62 Mbit/s


## Problematic VM Details

qm config

$ qm config 103
agent: 1
boot: order=scsi0;ide2;net0
cores: 3
cpu: x86-64-v2-AES
ide2: none,media=cdrom
memory: 8192
meta: creation-qemu=8.1.2,ctime=1702869034
name: container-services
net0: virtio=BC:24:11:EB:FF:A5,bridge=vmbr0,firewall=1,mtu=6000
numa: 0
onboot: 1
ostype: l26
scsi0: vmdata:vm-103-disk-0,iothread=1,size=64G
scsi1: nas-smb-homelab-services:103/vm-103-disk-0.qcow2,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=70175999-904c-4631-9ebd-26842a808698
sockets: 1
startup: up=10
tags: homelab
vmgenid: e86a2904-b4c6-48fc-9318-11a58d9ac72d


top

$ top -n 1
top - 22:36:51 up 9:57, 3 users, load average: 1.25, 0.82, 1.04
Tasks: 365 total, 1 running, 364 sleeping, 0 stopped, 0 zombie
%Cpu(s): 27.1 us, 18.8 sy, 0.0 ni, 54.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 7937.7 total, 1735.8 free, 3435.4 used, 2766.4 buff/cache
MiB Swap: 3911.0 total, 3909.1 free, 1.9 used. 4139.4 avail Mem


Something I noticed was the absurd number of network interfaces. I'm assuming these are generated by docker? They all show UP except the docker0 interface. ( Can provide specifics on request)

## Proxmox Details

pveversion

$ pveversion -v
proxmox-ve: 8.2.0 (running kernel: 6.8.4-3-pve)
pve-manager: 8.2.2 (running version: 8.2.2/9355359cd7afbae4)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.4-3
proxmox-kernel-6.8.4-3-pve-signed: 6.8.4-3
proxmox-kernel-6.5.13-5-pve-signed: 6.5.13-5
proxmox-kernel-6.5: 6.5.13-5
proxmox-kernel-6.5.11-7-pve-signed: 6.5.11-7
proxmox-kernel-6.5.11-4-pve-signed: 6.5.11-4
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
intel-microcode: 3.20231114.1~deb12u1
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.6
libpve-cluster-perl: 8.0.6
libpve-common-perl: 8.2.1
libpve-guest-common-perl: 5.1.2
libpve-http-server-perl: 5.1.0
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.2.1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.2.3-1
proxmox-backup-file-restore: 3.2.3-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-widget-toolkit: 4.2.3
pve-cluster: 8.0.6
pve-container: 5.1.10
pve-docs: 8.2.2
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.0
pve-firewall: 5.0.7
pve-firmware: 3.11-1
pve-ha-manager: 4.0.4
pve-i18n: 3.2.2
pve-qemu-kvm: 8.1.5-6
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.1
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.3-pve2


## Attempts to Fix

Honestly, I've mainly been trying to figure out where the actual problem is from. There's a lot I've left out ahead of this (originally noticed the performance issue from inside a docker container).

The only thing I've messed with with the MTU value because it seemed like low hanging fruit and easy to implement but it had no effect (and frankly it was a hail mary without digging in further). I have yet to revert that change.
 
Last edited:
Still experiencing this issue, are there more details I can provide that might help in diagnosing? Thanks.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!