* Speed on Raspberry Pi 4
@ 2019-06-29 10:38 Christopher Bachner
2019-07-17 20:50 ` Roman Mamedov
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Bachner @ 2019-06-29 10:38 UTC (permalink / raw)
To: WireGuard mailing list
[-- Attachment #1.1.1: Type: text/plain, Size: 457 bytes --]
Hello,
I got a Raspberry Pi 4 with 4GB Ram.
I ran some benchmarks. With pure iperf3 I get 950 Mbit/s.
With wireguard in the same network I can only get max 750 Mbit/s (which in
itself is already great).
In htop I can see that one of the 4 cores is running at 99%. So I assume
that is the bottleneck.
[image: image.png]
Is there a way to improve this? I assume it does not matter which side is
the server and which is the client?
Thanks,
Christopher
[-- Attachment #1.1.2: Type: text/html, Size: 739 bytes --]
[-- Attachment #1.2: image.png --]
[-- Type: image/png, Size: 9933 bytes --]
[-- Attachment #2: Type: text/plain, Size: 148 bytes --]
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Speed on Raspberry Pi 4
2019-06-29 10:38 Speed on Raspberry Pi 4 Christopher Bachner
@ 2019-07-17 20:50 ` Roman Mamedov
2019-07-18 6:38 ` Janne Johansson
0 siblings, 1 reply; 6+ messages in thread
From: Roman Mamedov @ 2019-07-17 20:50 UTC (permalink / raw)
To: Christopher Bachner; +Cc: WireGuard mailing list
On Sat, 29 Jun 2019 12:38:01 +0200
Christopher Bachner <hello@chrisbox.org> wrote:
> In htop I can see that one of the 4 cores is running at 99%. So I assume
> that is the bottleneck.
>
> Is there a way to improve this? I assume it does not matter which side is
> the server and which is the client?
You can see that the load from WireGuard encryption is about 42-43% per each
core. But the thing is, one of them (the 1st) also gets to process interrupt
load from the NIC, and that consumes the rest of it, causing the bottleneck. In
theory, if you could limit WG to run encryption on all cores EXCEPT the first
one, then maaaaybe...
Another way would be to use a NIC which is capable of splitting interrupt load
across multiple CPU cores. But I believe the RPi one can't do that, and no USB
NICs can.
--
With respect,
Roman
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Speed on Raspberry Pi 4
2019-07-17 20:50 ` Roman Mamedov
@ 2019-07-18 6:38 ` Janne Johansson
2019-07-18 6:56 ` Roman Mamedov
0 siblings, 1 reply; 6+ messages in thread
From: Janne Johansson @ 2019-07-18 6:38 UTC (permalink / raw)
To: Roman Mamedov; +Cc: Christopher Bachner, WireGuard mailing list
[-- Attachment #1.1: Type: text/plain, Size: 884 bytes --]
Den ons 17 juli 2019 kl 22:53 skrev Roman Mamedov <rm@romanrm.net>:
> On Sat, 29 Jun 2019 12:38:01 +0200
> Christopher Bachner <hello@chrisbox.org> wrote:
> > In htop I can see that one of the 4 cores is running at 99%. So I assume
> > that is the bottleneck.
> > Is there a way to improve this? I assume it does not matter which side is
> > the server and which is the client?
>
> You can see that the load from WireGuard encryption is about 42-43% per
> each
> core. But the thing is, one of them (the 1st) also gets to process
> interrupt
> load from the NIC, and that consumes the rest of it, causing the
> bottleneck. In
> theory, if you could limit WG to run encryption on all cores EXCEPT the
> first
> one, then maaaaybe...
>
>
With taskset you should be able to:
https://www.howtoforge.com/linux-taskset-command/
--
May the most significant bit of your life be positive.
[-- Attachment #1.2: Type: text/html, Size: 1422 bytes --]
[-- Attachment #2: Type: text/plain, Size: 148 bytes --]
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-07-18 8:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 10:38 Speed on Raspberry Pi 4 Christopher Bachner
2019-07-17 20:50 ` Roman Mamedov
2019-07-18 6:38 ` Janne Johansson
2019-07-18 6:56 ` Roman Mamedov
2019-07-18 8:01 ` Janne Johansson
2019-07-18 8:15 ` Matthias Urlichs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).