From: Jakub Kicinski <kuba@kernel.org>
To: Mina Almasry <almasrymina@google.com>
Cc: Taehee Yoo <ap420073@gmail.com>,
davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
andrew+netdev@lunn.ch, shuah@kernel.org, sdf@fomichev.me,
jdamato@fastly.com, netdev@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v2 net-next] selftests: devmem: configure HDS threshold
Date: Mon, 7 Jul 2025 13:10:56 -0700 [thread overview]
Message-ID: <20250707131056.2d7971bd@kernel.org> (raw)
In-Reply-To: <CAHS8izPug-bFu3Tqc_sanCO-gip_e-pPY2Xx7qTAUV0+cKySXg@mail.gmail.com>
On Mon, 7 Jul 2025 11:48:53 -0700 Mina Almasry wrote:
> > On Wed, 2 Jul 2025 10:42:49 +0000 Taehee Yoo wrote:
> > > The devmem TCP requires the hds-thresh value to be 0, but it doesn't
> > > change it automatically.
> > > Therefore, make configure_headersplit() sets hds-thresh value to 0.
> >
> > I don't see any undoing of the configuration :(
> > The selftest should leave the system in the state that it started.
> > We should either add some code to undo at shutdown or (preferably)
> > move the logic to the Python script where we can handle this more
> > cleanly with defer().
>
> I'm sure you're aware but this test in general doesn't aim to undo any
> of it's configuration AFAIR :( that includes ethtool tcp-data-split,
> -X, -N and -L. Sorry about that.
>
> I wonder if you want this series to clean that up completely such that
> all configurations are cleaned up, or if you're asking Taehee to only
> clean up the hds-thres configuration for now.
Just the hds-thrs config for now. Avoid adding more problems.
> Also, sorry for the late reply, but FWIW, I prefer the configuration
> cleanup to be in ncdevmem itself. We use it outside of the ksft to run
> stress tests, and folks are going to copy-paste ncdevmem for their
> applications, so having it be as nice as possible is a plus. But if
> you feel strongly about doing this outside of ncdevmem.c itself I
> don't mind that much.
Stan & Bobby added devmem support to kperf I think that's a better
choice for stress testing: https://github.com/facebookexperimental/kperf
selftests are for testing the kernel, in the context of upstream CIs.
The experience with netdevsim teaches me that having "out of tree"
use cases as an explicit goal is a road to nowhere.
prev parent reply other threads:[~2025-07-07 20:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 10:42 [PATCH v2 net-next] selftests: devmem: configure HDS threshold Taehee Yoo
2025-07-02 15:37 ` Stanislav Fomichev
2025-07-02 16:12 ` Taehee Yoo
2025-07-03 15:41 ` Stanislav Fomichev
2025-07-02 18:39 ` Jakub Kicinski
2025-07-03 3:51 ` Taehee Yoo
2025-07-07 18:48 ` Mina Almasry
2025-07-07 20:10 ` Jakub Kicinski [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=20250707131056.2d7971bd@kernel.org \
--to=kuba@kernel.org \
--cc=almasrymina@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=ap420073@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jdamato@fastly.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.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