OPNsense Forum

English Forums => General Discussion => Topic started by: Nito8 on November 12, 2021, 05:31:07 PM

Title: Slow Speed - can't find the mistake
Post by: Nito8 on November 12, 2021, 05:31:07 PM
Hi everyone,

i am new in the opnsense environment after i changed from pfsense.

I have the issue, that my speed on every interface is very low.

I have installed opnsense on an intel nuc with i3 and 4GB RAM. The used percentage of the ressources are ok. My internet connection is about 220 Mbit down and 20 Mbit up. I have three interfaces configured: WAN, DMZ, and LAN. When i try to make a speed test in LAN, i only get 45 Mbit/s down.

Iperf test got the same rates on every interface. When connection directly to the wan cable with a notebook, i got good traffic, nearly full speed.

I allready tried to make a fresh install and tested directly - same behaviour. I also tried to make a fresh install only with wan and lan interface - same behaviour :-/.

Can anyone give me a tip where the problem could be?


best regards
Title: Re: Slow Speed - can't find the mistake
Post by: Nito8 on November 19, 2021, 06:58:01 PM
I tried some things, but nothing helped until.

But while searching to solve the issue, i figured out an interesting thing:

vmstat -i
interrupt                          total       rate
irq4: uart0                          255          1
irq23: ehci0                        1058          2
cpu0:timer                        365010        739
cpu1:timer                         48509         98
cpu2:timer                        380730        771
cpu3:timer                        366495        742
irq264: hdac0                          5          0
irq265: xhci0                    1261981       2557
irq266: em0:irq0                 1011842       2050
irq267: hdac1                         37          0
irq268: ahci0                      16005         32
Total                            3451927       6993

So there are many interrupts on wan port irq266, which are also shown in the gui under interfaces --> overview.

Can someone tell me how to fix it?


best regards
Title: Re: Slow Speed - can't find the mistake
Post by: pankaj on November 21, 2021, 06:10:13 AM
Just configure one interface at a time and then connect one machine at a time to the subnet (& check speed).

You most likely have either a faulty wire or a closed loop if you are using switches.

Just curious how many client machines/devices do you have on the network?
Title: Re: Slow Speed - can't find the mistake
Post by: Nito8 on November 27, 2021, 10:54:40 PM
If anyone else has the same issue, here is what i have done:

After i didn't got a solution to solve the issue with the internal nic and two USB to Ethernet adapter for using LAN and DMZ, i decided to use another way with VLANs.

Here is the explanation of the way to implement it:

https://www.joe0.com/2019/11/16/converting-single-nic-mini-pc-into-pfsense-router-firewall-by-using-virtual-lan-configuration-on-a-managed-switch/


best regards
Title: Re: Slow Speed - can't find the mistake
Post by: Patrick M. Hausen on November 28, 2021, 12:46:25 AM
And what precisely has this got to do with OPNsense? pfSense is a completely different product. They run their own forum.
Title: Re: Slow Speed - can't find the mistake
Post by: chrisw75 on November 28, 2021, 04:32:27 AM
Switch info in that article was very useful to me as I was able to remap it to mine and VLANs are on my to-do (similar interface/layout.)