Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - lyudalev

#1
24.1, 24.4 Legacy Series / Re: WAN speed is slow on APU2
February 29, 2024, 07:24:41 PM
Sorry for repeated postings, but just maybe it can be useful for somebody.

I borrowed these tweaks:
net.isr.defaultqlimit=2048
net.inet.tcp.soreceive_stream = 1
hw.ibrs_disable=1
From this very useful guide https://binaryimpulse.com/2022/11/opnsense-performance-tuning-for-multi-gigabit-internet/
#2
24.1, 24.4 Legacy Series / Re: WAN speed is slow on APU2
February 29, 2024, 07:04:06 PM
P.S.

Also after applying these (from opnsense manual https://docs.opnsense.org/troubleshooting/performance.html):

net.isr.bindthreads = 1
net.isr.maxthreads = -1
net.inet.rss.enabled = 1
net.inet.rss.bits = 2

I'm now at ~590 Mbps.
Does anybody know if it is possible to squeeze more from APU2?
#3
24.1, 24.4 Legacy Series / Re: WAN speed is slow on APU2
February 29, 2024, 06:15:31 PM
Thank you!

Meanwhile, I did some minor tweaking, which added ~100Mbps:
net.isr.numthreads=4
net.isr.maxthreads=4
net.isr.dispatch=deferred

Are there any more tweaks that can be applied?

BTW, I stumbled very interesting approach:
https://www.neelc.org/posts/multicore-pppoe/
https://www.neelc.org/posts/opnsense-pppoe-kvm/
#4
24.1, 24.4 Legacy Series / Re: WAN speed is slow on APU2
February 28, 2024, 09:57:53 PM
Thanks a lot for your fast response!

> From my observation, interface that shows like that tends to be "virtual one".
> That WAN Interface is assigned physical interface via Interfaces > Assignments?

Yes, it is assigned to pppoe0 (igb2)

> What is the configuration on that WAN interface?
> Also can you check how is the interface negotiated and details in Interface > Overview?

It reads as follows:
Flags      88d1
Capabilities   
Options   
MAC Address   00:00:00:00:00:00 - XEROX CORPORATION
Supported Media   
Physical   
Device   pppoe0
mtu   1492
Routes   default
1.1.1.1
8.8.4.4
8.8.8.8
109.226.1.20
Status   up
Identifier   wan
Description   WAN
Enabled   true
Link Type   pppoe
IPv4 Addresses   
109.226.17.116/32
VLAN Tag   
Gateways   109.226.1.20
Driver   ng0
Index   9
Promiscuous Listeners   0
Send Queue Length   0
Send Queue Max Length   50
Send Queue Drops   0
Type   Proprietary virtual interface
Address Length   0
Header Length   0
Link State   0
vhid   0
Data Length   152
Metric   0
Line Rate   64.00 Kbit/s
Packets Received   575236
Input Errors   0
Packets Transmitted   176952
Output Errors   0
Collisions   0
Bytes Received   698720893
Bytes Transmitted   33788670
Multicasts Received   0
Multicasts Transmitted   0
Input Queue Drops   0
Packets for Unknown Protocol   0
Hardware Offload Capabilities   0x0
Uptime at Attach or Statistics Reset   27858

> In regards of Throughput, I think you will not be able to get 800Mbit over APU2 without tuning.
> And even if tuned, you still may not reach it. There are several threads in regards of APU and Throughput.

Do you think I'd better upgrade my platform? If yes, what is recommended?

> BTW, are you running a SHAPER?

No

> Is there any other configuration expect the very base one? (like additional rules, NAT, etc.)

Not much; I have a vlan on igb0 as OPT1 (blocked by NAT), and some simple port forwrds.
But the point is that the very same setup worked fine for years with my previous slow (~100Mbps) WAN connection.

Thank you very much!
Sincerely,
Lev.
#5
24.1, 24.4 Legacy Series / WAN speed is slow on APU2
February 28, 2024, 08:13:38 PM
Hello,
I updated my WAN connection to fiber, so now if I connect directly to the modem (in bridge mode) I get ~800 Mbps, but through the OpnSense it's only ~250 Mbps. My OpnSense installation is running on PcEngines APU2 board with 3xi210AT NICs.
One strange observation: in the interfaces widget (contrary to LAN and OPT1 where `1000baseT <full-duplex>` is displayed) nothing is shown for WAN (screenshot attached).
I'd appreciate very much any hints/ideas/etc.
Thank you.