You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I found the WireGuard Performance on Respbian is much worse than OpenWRT using my wireguard benchmark script. After some investigations, I found the performance was hindered by CONFIG_PREEMPT and CONFIG_IRQSOFF_TRACER, which hindered from ~1.1Gbps to only ~400Mbps. As Raspbian may be used as Desktop OS, we can only turn off CONFIG_IRQSOFF_TRACER. I also found that Debian has not enabled this configuration by default. IMHO such configuration which hindered too much performance should be removed. If we only remove CONFIG_IRQSOFF_TRACER=y but keep CONFIG_PREEMPT=y, we can also see the performance improvements from ~390Mbps to ~680Mbps. You can also see my investigation procedures here.
Raspberry Pi reference 2023-12-11Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 2acf7afcba7d11500313a7b93bb55a2aae20b2d6, stage2
Describe the bug
Recently, I found the WireGuard Performance on Respbian is much worse than OpenWRT using my wireguard benchmark script. After some investigations, I found the performance was hindered by
CONFIG_PREEMPT
andCONFIG_IRQSOFF_TRACER
, which hindered from ~1.1Gbps to only ~400Mbps. As Raspbian may be used as Desktop OS, we can only turn offCONFIG_IRQSOFF_TRACER
. I also found that Debian has not enabled this configuration by default. IMHO such configuration which hindered too much performance should be removed. If we only removeCONFIG_IRQSOFF_TRACER=y
but keepCONFIG_PREEMPT=y
, we can also see the performance improvements from ~390Mbps to ~680Mbps. You can also see my investigation procedures here.Steps to reproduce the behaviour
Using my WireGuard benchmark:
sudo apt install wireguard-tools iperf3 git git clone https://github.com/cyyself/wg-bench.git cd wg-bench sudo ./setup-netns.sh sudo ./benchmark.sh sudo ./clean-up.sh
Pi 4 should reach ~680Mbps instead of ~390Mbps.
Device (s)
Raspberry Pi 4 Mod. B
System
/etc/rpi-issue
:vcgencmd version
:uname -a
(self-compiled):Linux raspberrypi 6.1.68-v8+ #29 SMP PREEMPT Mon Dec 18 22:58:01 CST 2023 aarch64 GNU/Linux
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: