Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Virtio just 1gb instead of 10gb
« previous
next »
Print
Pages: [
1
]
Author
Topic: Virtio just 1gb instead of 10gb (Read 2376 times)
unraider
Newbie
Posts: 6
Karma: 0
Virtio just 1gb instead of 10gb
«
on:
May 14, 2022, 11:31:38 pm »
hello, I run OPNsense as a VM using Unraid as Host.
All Interfaces als virualized using VIRTIO (also tested VIRTIO-NET and E1000).
In Web-UI they are shown as "10Gbase-T <full-duplex>".
When copying files (and testing with iperf3) I only get 1 gbit speed (iperf3 shows 850 Mbits/sec).
Other VMs on the same Host (ubuntu, freebsd13) are running successfully with 10gbit speed (iperf3 shows 18 Gbits/sec).
Settings in OPNsense: CRC, TSO, LRO are deactivated.
Tested on fresh install withoud Shaper.
My Network runs at 10gb and 2.5gbit and 1gbit - and OPNsense is the only limiting element.
Please give some hints what I could try to get full speed.
Logged
Grossartig
Jr. Member
Posts: 76
Karma: 4
Re: Virtio just 1gb instead of 10gb
«
Reply #1 on:
May 15, 2022, 12:03:02 am »
You could try the speedtest plugin from this repository to measure your outgoing speed directly from OPNsense to give you another data point:
https://www.routerperformance.net/opnsense-repo/
Logged
unraider
Newbie
Posts: 6
Karma: 0
Re: Virtio just 1gb instead of 10gb
«
Reply #2 on:
May 15, 2022, 12:07:48 am »
I don't need another method to test network speed.
I need a method to improve speed to a level all other VMs (Ubuntu, FreeBSD13) reach "out of the box", and OPNsense does not.
Logged
5SpeedFun
Full Member
Posts: 119
Karma: 7
Re: Virtio just 1gb instead of 10gb
«
Reply #3 on:
May 17, 2022, 03:09:11 am »
What speed is your cpu on the host?
I greatly increased my throughput by passing the pci device directly to opnsense to work with. Speed improved tremendously. Is this an option for you?
«
Last Edit: May 18, 2022, 02:30:24 am by 5SpeedFun
»
Logged
unraider
Newbie
Posts: 6
Karma: 0
Re: Virtio just 1gb instead of 10gb
«
Reply #4 on:
May 18, 2022, 08:03:47 am »
you are right, CPU Speed does matter.
I've tested following:
My Unraid Server (HOST System) runs on an older XEON 4-Core at 3,3Ghz (Xeon® CPU E3-1230 V2)
with following results testing VM-to-Host-Networkspeed via iperf3:
OPNSense only 850mbit/s
Other VMs on the same Host (ubuntu, freebsd13) 18 Gbits/sec
Other VMs on a newer Test-System (Ryzen7-5750G): 25GBits/sec
=> so CPU speed is not the reason for such poor values on OPNSense (hmm.. maybe OPNSense implements some kind of huge overhead, so it's so much slower than other Operating Systems???)
=> passing through PCIe devices is not an option for me, because I use Brigdes on Host for other VMs and Dockers.
«
Last Edit: May 18, 2022, 08:24:07 am by unraider
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Virtio just 1gb instead of 10gb
«
Reply #5 on:
May 18, 2022, 08:41:16 am »
Since OPNsense 22.1
is
FreeBSD 13 I would first use ifconfig to compare the interface settings of a generic FreeBSD VM that - as you wrote - performs well and the OPNsense VM.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Virtio just 1gb instead of 10gb