a few more performance tweaks #1651
Replies: 2 comments
-
Throw some traffic shaping at it - eth0 will default to qdisc mq even with BBR enabled. So, we can alter that.
CAKE (Common Applications Kept Enhanced) is a shaping-capable queue discipline which uses both AQM and FQ. What im asking this to do is change the queuing algorithm to use cake, im very remote so shape traffic with hi latency (oceanic) - my bandwidth is limited. I am being aggressive and filtering out acks where i can. And provide a reasonable queuing algorithm with diffserv3 and flows. Because im so remote, "oceanic" should smooth out some the latency issues. Heres some documentation on tc....https://man7.org/linux/man-pages/man8/tc-cake.8.html I think this setting has to be set on every boot to be in effect. And i think it requires host support bbr. http://arxiv.org/pdf/1804.07617 To see the results:
|
Beta Was this translation helpful? Give feedback.
-
https://cs.uwaterloo.ca/~brecht/servers/apic/SMP-affinity.txt |
Beta Was this translation helpful? Give feedback.
-
ootb rasperry wont load balance irqs properly across cpu's
The fix is manually set affinity - i tried installing irqbalance,but that didnt do anything.
some manual tweeks that added another 3-6mbps....this is with raspap + wireguard, bbr, affinity tweaks. Notice even distribution across cpu's:
https://tomcore.io/docs/articles/RaspberryPI/raspberry-pi-4b-network-performance/
And I added all of this to sysctl.conf and then sysctl -p
https://thelinuxnotes.com/index.php/how-to-tweak-sysctl-for-high-load/
I was able to push 60mbps from vnam to georgia over wireguard which i think is nothing short of amazing.
This is very close to actual speed to georgia w/o raspap:
iftop results
irq's are a bit better balanced
without these tweaks both mmc (the wifi interface) and eth0 are concentrated on cpu0 and not spread across cpu's
RaspAP is not optimized as CPU0 is doing all the work.
The nice to have would be to tweak configuration on install to optimal performance for heavy users.
Possibly a 2nd script for high optimize settings for insiders?
Beta Was this translation helpful? Give feedback.
All reactions