Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Lonnie Abelbeck <lists@lonnie.abelbeck.com>
To: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: [ANNOUNCE] WireGuard Snapshot `0.0.20180620` Available
Date: Thu, 21 Jun 2018 08:51:41 -0500	[thread overview]
Message-ID: <123AC98A-9040-40E7-B894-CBEE9513EB58@lonnie.abelbeck.com> (raw)
In-Reply-To: <3052A12F-768F-4E3B-AF68-77CB34D58D98@lonnie.abelbeck.com>

[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]


> On Jun 20, 2018, at 7:22 PM, Lonnie Abelbeck <lists@lonnie.abelbeck.com> wrote:
> 
> 
>> On Jun 20, 2018, at 6:47 PM, Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>> 
>> Hey Lonnie,
>> 
>> Thanks for helping to debug this.
>> 
>> On Thu, Jun 21, 2018 at 12:37 AM Lonnie Abelbeck
>> <lists@lonnie.abelbeck.com> wrote:
>>> Hunk #1 only does the trick, though performance is ever so slightly slower than before overall.
>> 
>> It's good to hear that hunks #2 and #3 don't have much an effect,
>> though it does still seem to have _some_ effect.
>> 
>> Looks like hunk 1 is rather worrisome though. Can you try out
>> https://א.cc/eaxxpxbB and let me know if it has any effect?
> 
> That patch, as is, is very bad
> --
> [SUM]   0.00-30.00  sec  1.26 GBytes   360 Mbits/sec   98             sender
> [SUM]   0.00-30.03  sec  1.25 GBytes   358 Mbits/sec                  receiver
> 
> I then edited the patch to add back in local_bh_disable() / local_bh_enable(), much better
> --
> [SUM]   0.00-30.00  sec  2.62 GBytes   751 Mbits/sec  1389             sender
> [SUM]   0.00-30.00  sec  2.61 GBytes   748 Mbits/sec                  receiver
> 
> essentially back to 0.0.20180531 performance, hunk #1 from previous patch and hunk #1 from the latest patch.

Hey Jason,

I'm not sure if this helps, but the 0.0.20180620 performance loss is most noticeable on the box performing "iperf3 -s".

Also, here are a couple .png CPU utilizations of the "iperf3 -s" box via htop during the iperf3 test ...

Test: 0.0.20180620



Test: 0.0.20180620 + hunk #1 from previous patch and hunk #1 from the latest patch



Lonnie



[-- Attachment #2.1: Type: text/html, Size: 3434 bytes --]

[-- Attachment #2.2: unpatched.png --]
[-- Type: image/png, Size: 22254 bytes --]

[-- Attachment #2.3: patched.png --]
[-- Type: image/png, Size: 22442 bytes --]

      reply	other threads:[~2018-06-21 13:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 19:19 Jason A. Donenfeld
2018-06-20 20:11 ` Lonnie Abelbeck
2018-06-20 20:33   ` Matthias Urlichs
2018-06-20 21:24   ` Jason A. Donenfeld
2018-06-20 22:37     ` Lonnie Abelbeck
2018-06-20 23:47       ` Jason A. Donenfeld
2018-06-21  0:22         ` Lonnie Abelbeck
2018-06-21 13:51           ` Lonnie Abelbeck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=123AC98A-9040-40E7-B894-CBEE9513EB58@lonnie.abelbeck.com \
    --to=lists@lonnie.abelbeck.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).