<div dir="ltr"><div dir="ltr">Den ons 17 juli 2019 kl 22:53 skrev Roman Mamedov <<a href="mailto:rm@romanrm.net">rm@romanrm.net</a>>:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 29 Jun 2019 12:38:01 +0200<br>
Christopher Bachner <<a href="mailto:hello@chrisbox.org" target="_blank">hello@chrisbox.org</a>> wrote:<br>
> In htop I can see that one of the 4 cores is running at 99%. So I assume<br>
> that is the bottleneck.<br>
> Is there a way to improve this? I assume it does not matter which side is<br>
> the server and which is the client?<br>
<br>
You can see that the load from WireGuard encryption is about 42-43% per each<br>
core. But the thing is, one of them (the 1st) also gets to process interrupt<br>
load from the NIC, and that consumes the rest of it, causing the bottleneck. In<br>
theory, if you could limit WG to run encryption on all cores EXCEPT the first<br>
one, then maaaaybe...<br>
<br></blockquote><div><br></div><div>With taskset you should be able to:</div><div><a href="https://www.howtoforge.com/linux-taskset-command/">https://www.howtoforge.com/linux-taskset-command/</a><br></div><div><br></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">May the most significant bit of your life be positive.<br></div></div>