OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: axel2078 on March 08, 2024, 06:30:17 PM

Title: ZanArmor cut my Internet speed in half
Post by: axel2078 on March 08, 2024, 06:30:17 PM
I have a 1 GB fiber connection from AT&T.  I normally get around 980 - 995 MB/s through the LAN connections in my house.  About a month ago, I enabled ZenArmor on my OPNsense system and it was doing just the basic functions since I was using the free version.  I noticed recently that whenever I run speed checks, I'm seeing around 450 MB/s at my LAN connections.  The highest I got was around 500 MB/s.  I thought this was kind of odd given the speeds I used to get.  I thought that maybe something was wrong on AT&T's end, so I logged into the AT&T gateway device that sits in front of OPNsense and I ran a speed test from it and it was pulling down around 995 MB/s, so I knew the issue was downstream and most likely on OPNsense.  I knew that the only change I had made recently was enabling ZenArmor, so I turned it off, and then my download speeds increased dramatically, just like I was getting before.  It's staying off for now.
Title: Re: ZanArmor cut my Internet speed in half
Post by: athurdent on March 08, 2024, 06:37:19 PM
You might want to list your OPNsense hardware.
My N100 HUNSN appliance does 2.5G Zenarmor just fine.
Title: Re: ZanArmor cut my Internet speed in half
Post by: axel2078 on March 08, 2024, 06:59:51 PM
I'm running it on a Protectli system that I got back in 2021 I think.  Maybe it's not beefy enough?  Is there a way OPNsense can dump an export of the hardware config?
Title: Re: ZanArmor cut my Internet speed in half
Post by: Seimus on March 11, 2024, 05:27:15 PM
So most likely you have a device with CPU "J3160, J3710, J4125"

ZenArmor doesn't currently support multi-core, performance is thus heavily dependent on single core performance

https://www.zenarmor.com/docs/introduction/hardware-requirements

Regards,
S.
Title: Re: ZanArmor cut my Internet speed in half
Post by: almodovaris on March 22, 2024, 07:16:32 PM
Yup, at 113 MB/s downloads from Usenet, one core of my N100 is used by Eastpect maximally 75% (usually in the 60s, sometimes in the 50s, using Debian, it can be very similar for OPNsense).

That's 904 Mbps effective speed (using yenc and TLS 1.3 connections).
Title: Re: ZanArmor cut my Internet speed in half
Post by: Greg_E on March 22, 2024, 09:29:09 PM
I haven't heard anyone mention Usenet in a very long time!
Title: Re: ZanArmor cut my Internet speed in half
Post by: almodovaris on March 22, 2024, 10:04:41 PM
And at about 100 MB/s it is usually in the 50s, sometimes in the lower 60s.
Title: Re: ZanArmor cut my Internet speed in half
Post by: almodovaris on March 23, 2024, 10:49:44 PM
And with a T-Bao N9N Eastpect at one core stays below 60%, at 110 MB/s download.
Title: Re: ZanArmor cut my Internet speed in half
Post by: almodovaris on March 24, 2024, 04:17:51 AM
Coming back to the N100, that one core is now mostly in the 50s, rarely in the 60s, at 110 MB/s download.
Title: Re: ZanArmor cut my Internet speed in half
Post by: Greg_E on March 25, 2024, 02:31:54 PM
How are you monitoring the cores? The best I can find is temperature for each core, but even then all cores seem to run up at about the same rate. This is with an AMD processor so it may not work the same, but thought I would ask so I can see how Zenarmor might be messing with my system.

Overall, I'm not seeing a lot of CPU and as I mention all 8 threads (4 cores) show roughly the same temperature.

AMD Ryzen Embedded V1756B with Radeon Vega Gfx (4 cores, 8 threads)

Title: Re: ZanArmor cut my Internet speed in half
Post by: almodovaris on March 25, 2024, 03:06:13 PM
How?

# top

If a process is 100% or below, it is only one core.
Title: Re: ZanArmor cut my Internet speed in half
Post by: Greg_E on March 25, 2024, 03:40:41 PM
OK, I've just been monitoring from the GUI.
Title: Re: ZanArmor cut my Internet speed in half
Post by: athurdent on March 25, 2024, 04:11:30 PM
Quote from: almodovaris on March 25, 2024, 03:06:13 PM
How?

# top

If a process is 100% or below, it is only one core.

top -aHSs1 usually works well for me there.
Title: Re: ZanArmor cut my Internet speed in half
Post by: Greg_E on March 25, 2024, 06:34:08 PM
I'll have to open up SSH on my LAN so I can get into that part of the system, or is there a hidden terminal that I can use through the GUI (I haven't found one yet but might be looking in the wrong places).
Title: Re: ZanArmor cut my Internet speed in half
Post by: Patrick M. Hausen on March 25, 2024, 06:52:31 PM
SSH it is. No terminal in the UI.