[-] Jimbambuli@lemmy.world 2 points 3 days ago

Yes, the normal firewall ruleset was active during the tests, the traffic crossed two firewall zones. Software flow offloading only speeds up connections that the rules have already allowed.

27
submitted 3 days ago by Jimbambuli@lemmy.world to c/homelab@lemmy.ml

I have a 10G fiber line (XGS-PON) and ran OPNsense as a VM on Proxmox. Routing between two VLANs topped out at about 8.5 Gbit/s for a single TCP stream, with all 4 vCPUs at 100 %. Since I'm thinking about a 25G line, I switched the router VM to OpenWrt.

Same host, same NICs (Mellanox ConnectX-4, SR-IOV virtual functions at the time), iperf3 across VLANs through the router:

  • OPNsense: 8.49 Gbit/s single stream, 9.37 with more streams, 4 cores maxed
  • OpenWrt: 15.1 Gbit/s single stream at about 1.2 cores, 17.9 Gbit/s with 8 streams at about 1.8 cores (software flow offloading)

Upload to the internet, single stream: 4.07 Gbit/s on OPNsense (5.1 to 5.3 after a lot of TX ring tuning), 7.54 Gbit/s with 0 retransmits on OpenWrt without any tuning. 7.6 Gbit/s is the limit of my ONT anyway.

Things I learned on the way:

  • NethSecurity (OpenWrt based) has no mlx5 driver in its feed, and the upstream module doesn't load because the kernel config differs. With Intel cards it would have been an option.
  • On OpenWrt, busybox top and shell arithmetic overflow on byte counters above 4 GB. At 15 Gbit/s they showed "0 Mbit/s, 100 % idle". Use proper tools for measuring.
  • LuCI covers everything I used in OPNsense, except that I had to give up NTS (plain NTP is fine for me).

Since then I moved from SR-IOV to virtio and the numbers changed a bit, but the router is no longer the bottleneck. Anyone else running OpenWrt as a VM router at 10G or more? I'd be curious what you see with Intel NICs.

[-] Jimbambuli@lemmy.world 11 points 5 days ago

I use both in my Proxmox cluster: ZFS on the big storage node, LVM-thin on the smaller ones. ZFS is worth it where you want snapshots, send/receive and checksums, but it wants RAM and you should plan the pool layout up front. On small boxes LVM-thin is simpler and does the job.

61

I gave my old POCO X3 Pro (xiaomi-vayu) a second life with Nura edge and Phosh, and I'm honestly impressed how much already works on mainline.

What works for me:

  • Display and Phosh right away (Tianma panel)
  • Touch, after one small config change (see below)
  • Wi-Fi with WPA2, SSH over USB networking
  • Storage so far without problems (Samsung UFS)

What doesn't (yet):

  • WPA3 networks don't connect
  • The modem doesn't show up in ModemManager, and motion/light/proximity sensors aren't in the device tree yet

The touch tip, in case someone else has the same device: the kernel config sets CONFIG_TOUCHSCREEN_NT36672_SPI=m, but that option is a bool, so the driver isn't built at all. Setting it to =y makes the touchscreen work.

I used OpenRC because systemd failed during install on edge for me.

Big thanks to everyone who keeps these ports alive. It's great to see a phone from 2021 run a real Linux.

[-] Jimbambuli@lemmy.world 15 points 5 days ago

For me Flatpak is a big part of why this is true now. I package an app only as a Flatpak with its own repository, and the same build runs on Fedora, Debian, Arch and openSUSE without me touching distro packaging. The distro still matters for the base system and drivers, but for apps it mostly stopped mattering.

Jimbambuli

0 post score
0 comment score
joined 6 days ago