VM Router intermittently slow - possible powersaving issue?

veehexx

Member
Jun 9, 2022
9
1
8
I'm experiencing intermittent slowdowns of internet bandwidth and trying to find the cause of whats going on.

Host is Proxmox 7.4.3, with the opt-in kernel 6.1.15 (i've seen this issue for a few months over various versions), on a i5-10210u laptop. cpu governor is set to performance.

VM is Opnsense, with 'host' cpu type, AES enabled, 2 cores.

Clients vary from linux laptops, to windows desktop computers and not specific to one client.

what i'm seeing is when downloading (say, nvidia drivers), it'll run around 1.2MB/s. if i start a second download (say ubuntu iso), then those two downloads will jump to my line speed; >30MB/s (300mbit FTTP) and remain at full speed. i can then pause/cancel one of the downloads and the higher speed will continue. I'm swaying towards some sort of power-saving feature getting in the way but no idea where.
speedtest.net confirms the same behaviour. No line activity, then i'll see around 1.2MB/s max. if i start downloading mid-speedtest, then the speed will jump to whats expected.

clearly i've no issues with the raw performance of things as once the "threshold" is met i see the full expected 300mbit rate, but i'm at a loss to what is causing this type of behaviour.
What could be the problem?
 
yes, those are already disabled. Also, prox is set for virtIO nics, vlans enabled.

Do you think this is an OPN issue rather than prox side?

edit: might've found the issue. despite not actively using the parent interface for the vlans, you apparently need to assign it an interface & enable it. no IP config is needed. Appears it's a new requirement from v22.1 release. (https://www.reddit.com/r/opnsense/comments/vfj1ag/i_finally_found_out_why_throughput_was_so_slow/). hopefully this fixes it - initial tests are good so far.
 
Last edited:
  • Like
Reactions: Spoonman2002
Just a remark from me, nothing to do with the TS problem:
I see a lot of (YouTube) instructions where people configure the OPNsense vm as "OS Type : Linux".
In fact the OS is FreeBSD.
I set it as OS Type : Other.
 
i'm still testing the parent interface requirement on opnsense, some tests are definately better (testmy.net), speedtest.net can be a fit finiky. nvidia download intermittently run 1.2MB/s still, and other times at the full 30MB/300Mbit line speed, never anything else.

i'm resonably sure this is actually a opnsense/guest side problem rather than proxmox now (i had to start somewhere... base up, so prox was first on the list to ensure i hadnt overlooked something stupid.
 
Just a remark from me, nothing to do with the TS problem:
I see a lot of (YouTube) instructions where people configure the OPNsense vm as "OS Type : Linux".
In fact the OS is FreeBSD.
I set it as OS Type : Other.
interesting... i'm on linux type (didnt use youtube vids for this... i should know better, but i guess if it worked, then i wouldn't of gone changing things. i'll certainly look into changing that when i'm able to bring the router offline.
 
I have several OPNsense vm's for testing purposes in Proxmox.
When I run speedtest from the cli it gives my ISP speed correctly (even a bit higher speeds).
Do you use the cli FreeBSD version? And in Windows I use the Speedtest app from Microsoft Store (so not via a webbrowser).
 

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!