WireGuard Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrii Pasichnyk <apasichnik9@gmail.com>
To: "Jason A . Donenfeld" <Jason@zx2c4.com>
Cc: wireguard@lists.zx2c4.com, netdev@vger.kernel.org,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Shuah Khan <shuah@kernel.org>,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2 2/2] wireguard: selftests: remove a peer under load
Date: Fri, 27 Nov 2026 11:59:44 +0200	[thread overview]
Message-ID: <20261127095944.17844-2-apasichnik9@gmail.com> (raw)
In-Reply-To: <179577288974.3135.10854019193613008297@kernel.org>

Sashiko AI review wrote:
> [Severity: Medium]
> Does 1 MiB leave enough headroom for what the new loop can log?

In the runs I made it stayed well below that: about 217 lines per
removal on average over 200 removals, and 340-400 KB for the busiest ten
in a row. But the worst case is what you computed, so v3 raises
CONFIG_LOG_BUF_SHIFT to 21.

> Would setting a non-zero message_cost while the loop runs avoid relying
> on such a thin margin?

No: the "Keypair N created/destroyed" lines are rate limited by the same
setting, and the object check at the end needs all of them.

> [Severity: Low]
> Could the commit message give the detection rate with the default
> NR_CPUS? Or it could say that NR_CPUS=1 is needed to reproduce the
> regression reliably.

I only have single unpatched runs there: one with 2 CPUs failed, one
with 4 CPUs passed. v3 says that NR_CPUS=1 is the configuration that
checks for this.

> [Severity: Low]
> Does anything confirm that the peer is actually under load when it is
> removed?

Not in the script. In the runs above every iteration had an accepted
iperf3 connection before the removal (10 of 10 and 200 of 200), on KVM;
I have not run it under TCG. I kept the loop minimal as Jason asked, and
can add a transfer check if that is preferred.

Thanks,
Andrii

  reply	other threads:[~2026-11-27 10:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  9:47 [PATCH net v2 0/2] wireguard: free queued packets on peer removal, and test it Andrii Pasichnyk
2026-11-26  9:47 ` [PATCH net v2 1/2] wireguard: peer: free packets left on the per-peer queues on removal Andrii Pasichnyk
2026-11-27  9:48   ` netdev-bot+sashiko
2026-11-27  9:59     ` Andrii Pasichnyk
2026-11-26  9:47 ` [PATCH net v2 2/2] wireguard: selftests: remove a peer under load Andrii Pasichnyk
2026-11-27  9:48   ` netdev-bot+sashiko
2026-11-27  9:59     ` Andrii Pasichnyk [this message]
2026-11-26  9:52 ` [PATCH net v2 0/2] wireguard: free queued packets on peer removal, and test it netdev-bot+sinfo
2026-11-27 10:22   ` Andrii Pasichnyk

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=20261127095944.17844-2-apasichnik9@gmail.com \
    --to=apasichnik9@gmail.com \
    --cc=Jason@zx2c4.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --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