igb on APU4 with OPNS 21.7

Started by cookiemonster, July 30, 2021, 05:34:37 PM

Previous topic - Next topic
I am looking forward to performance improvements on these. One can hope.
With the release notes stating the release includes Intel contributions to the drivers, I'd like to know if there are any "old" tunables that aren't needed anymore.

Has anybody upgraded an APU4D4?, any observations?

With only 4 GB of RAM, do we need to use zfs tunables to prevent use of ARC?
What igb tunables are you using?

July 30, 2021, 06:48:26 PM #1 Last Edit: July 30, 2021, 06:54:50 PM by Darkopnsense
Hello,

The apu3A2 successfully migrated to 21.7 after patch 21.1.8_2.
21.1.8 opnsense environment, custom ports, clamav, freshclam, maltrail, ntopng, suricata, no sensei.

The apu4C4 is picking up the passage in 21.7 before the patch 21.1.8_2.
21.1.8 opnsense environment, custom ports, lamav, freshclam, maltrail, ntopng, suricata, with sensei.
https://forum.opnsense.org/index.php?topic=24136.0

Cordially,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Good to hear. Are you leaving tunables on 21.7, can you share?
Also are you using ZFS?

OPNsense ZFS defaults work fine on APUs with 4GB ram, installed on multiple APU4s and APU3s and restored the config, no need for additional tunables so far.

Same here, just did a test install on my apu4d4 before moving on to my main firewall later today.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thank you both.
It sounds like using zfs instead of ufs on these is not a problem with only 4GB of ram. That's one worry crossed out.
Is any of you on an ISP package of 500 Mb or more, and tested throughput? The reason to ask is that we know the throughput -going by threads here on 21.1- there were tunables used to squeeze igb to reach near 1 Gbps with NAT.

One more question, I'm itching to upgrade for ZFS.
Is ARC consuming most of the memory as expected?
I've experienced memory starvation on ZFS systems and I had to tune ARC, hence I ask if we need to do so on the APUs.

Could anyone in the know explain the benefits of ZFS over UFS with regards to OPNSense?
I did do some reading, but it looked to me like ZFS was more applicable within a virtualised environment...?
What are the benefits on a bare metal install?

Quote from: dave on August 03, 2021, 04:13:31 PM
Could anyone in the know explain the benefits of ZFS over UFS with regards to OPNSense?
I did do some reading, but it looked to me like ZFS was more applicable within a virtualised environment...?
What are the benefits on a bare metal install?
I'm familiar wiht ZFS for storage systems, not for firewalls. Therefore I can't answer this question.

On the other hand, I have now upgraded my APU4 to 21.7 with a fresh install & import. I did experience some niggles mostly to do with plugins, special configs and an external repo. I did get an error that seem to have not reappeared after a reboot but I'll look around for it in the system to be sure. All solved now except that one errot and I'm just monitoring for memory as I said, so that the ARC doesn't give me trouble.

All said a very nice update. It shows how much effort has gone into it.

August 04, 2021, 01:51:29 PM #9 Last Edit: August 04, 2021, 01:54:28 PM by pmhausen
Quote from: dave on August 03, 2021, 04:13:31 PM
Could anyone in the know explain the benefits of ZFS over UFS with regards to OPNSense?
Pull the power plug of your firewall at any random time. With ZFS not much will happen. With UFS the system might become unbootable. Simple as that.

https://www.truenas.com/docs/references/zfsprimer/
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Everyone without an UPS will silently agree even if they don't know they need it yet. ;)

What's been reported a number of times now is that after you safely unpack a new kernel and reboot cleanly UFS could have been corrupted anyway and the next boot will not work anymore.


Cheers,
Franco

Indeed Franco. In my opinion all things being equal ZFS is superior to UFS. That part for me is beyond debate.
The reason I've been asking is because ZFS benefits have a cost in the ARC memory consumption. With these APUs that are very memory-constrained, we need to see if ZFS is suitable or not.
Happily so far with 1 day uptime, my memory consumption has gone up to 54% but that's not a problem. I think it used to hover around 35% on 20.1 on UFS, the same services.

What I have been looking for is zfs tuning hints on loader.conf to limit the arc consumption so I don't end up with an out of memory system. So far none appear there.

May I ask if 21.7 is using freebsd zfs and arc defaults.

I think I have my answer listing the sysctl values.

One more question please. Do we have a boot environment utility included like deadm, or is the user expected to get it in order to use boot environments?
I'm loving this release!

bectl is in the base system in 12.x ...
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)