From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Antoine Tenart <atenart@kernel.org>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, stephen@networkplumber.org,
gregkh@linuxfoundation.org, netdev@vger.kernel.org,
Christophe Leroy <christophe.leroy@csgroup.eu>
Subject: Re: [PATCH net-next 0/4] net-sysfs: remove the rtnl_trylock/restart_syscall construction
Date: Wed, 22 Jan 2025 09:50:24 +0100 [thread overview]
Message-ID: <20250122095024.35c78381@device-291.home> (raw)
In-Reply-To: <20250117102612.132644-1-atenart@kernel.org>
Hi Antoine,
On Fri, 17 Jan 2025 11:26:07 +0100
Antoine Tenart <atenart@kernel.org> wrote:
> Hi,
>
> The series initially aimed at improving spins (and thus delays) while
> accessing net sysfs under rtnl lock contention[1]. The culprit was the
> trylock/restart_syscall constructions. There wasn't much interest at the
> time but it got traction recently for other reasons (lowering the rtnl
> lock pressure).
>
> Since the RFC[1]:
>
> - Limit the breaking of the sysfs protection to sysfs_rtnl_lock() only
> as this is not needed in the whole rtnl locking section thanks to the
> additional check on dev_isalive(). This simplifies error handling as
> well as the unlocking path.
> - Used an interruptible version of rtnl_lock, as done by Jakub in
> his experiments.
> - Removed a WARN_ONCE_ONCE call [Greg].
> - Removed explicit inline markers [Stephen].
>
> Most of the reasoning is explained in comments added in patch 1. This
> was tested by stress-testing net sysfs attributes (read/write ops) while
> adding/removing queues and adding/removing veths, all in parallel. I
> also used an OCP single node cluster, spawning lots of pods.
>
> Thanks,
> Antoine
>
> [1] https://lore.kernel.org/all/20231018154804.420823-1-atenart@kernel.org/T/
Thanks for that work, it looks like this would address this problem
faced recently by Christophe (in CC) :
https://lore.kernel.org/netdev/d416a14ec38c7ba463341b83a7a9ec6ccc435246.1734419614.git.christophe.leroy@csgroup.eu/
Thanks,
Maxime
next prev parent reply other threads:[~2025-01-22 8:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-17 10:26 [PATCH net-next 0/4] net-sysfs: remove the rtnl_trylock/restart_syscall construction Antoine Tenart
2025-01-17 10:26 ` [PATCH net-next 1/4] net-sysfs: remove rtnl_trylock from device attributes Antoine Tenart
2025-01-17 17:03 ` Stephen Hemminger
2025-01-17 18:35 ` Antoine Tenart
2025-01-17 10:26 ` [PATCH net-next 2/4] net-sysfs: move queue attribute groups outside the default groups Antoine Tenart
2025-01-17 10:26 ` [PATCH net-next 3/4] net-sysfs: prevent uncleared queues from being re-added Antoine Tenart
2025-01-20 19:44 ` Jakub Kicinski
2025-01-21 9:33 ` Antoine Tenart
2025-01-21 17:09 ` Jakub Kicinski
2025-01-22 8:34 ` Antoine Tenart
2025-01-17 10:26 ` [PATCH net-next 4/4] net-sysfs: remove rtnl_trylock from queue attributes Antoine Tenart
2025-01-20 19:40 ` [PATCH net-next 0/4] net-sysfs: remove the rtnl_trylock/restart_syscall construction Jakub Kicinski
2025-01-21 9:38 ` Antoine Tenart
2025-01-22 8:50 ` Maxime Chevallier [this message]
2025-01-22 9:09 ` Antoine Tenart
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=20250122095024.35c78381@device-291.home \
--to=maxime.chevallier@bootlin.com \
--cc=atenart@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stephen@networkplumber.org \
/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).