From: Petr Vorel <pvorel@suse.cz>
To: NeilBrown <neilb@suse.de>
Cc: Jeff Layton <jlayton@kernel.org>,
Chuck Lever III <chuck.lever@oracle.com>,
Greg KH <greg@kroah.com>, Sherry Yang <sherry.yang@oracle.com>,
Calum Mackay <calum.mackay@oracle.com>,
linux-stable <stable@vger.kernel.org>,
Trond Myklebust <trondmy@hammerspace.com>,
Anna Schumaker <anna@kernel.org>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
"kernel-team@fb.com" <kernel-team@fb.com>,
"ltp@lists.linux.it" <ltp@lists.linux.it>,
Avinesh Kumar <akumar@suse.de>,
Josef Bacik <josef@toxicpanda.com>
Subject: Re: [LTP] [PATCH 1/1] nfsstat01: Update client RPC calls for kernel 6.9
Date: Wed, 14 Aug 2024 22:55:19 +0200 [thread overview]
Message-ID: <20240814205519.GA550121@pevik> (raw)
In-Reply-To: <172078283934.15471.13377048166707693692@noble.neil.brown.name>
> On Fri, 12 Jul 2024, Jeff Layton wrote:
> > On Fri, 2024-07-12 at 16:12 +1000, NeilBrown wrote:
> > > My point is that if we are going to change the kernel to accommodate LTP
> > > at all, we should accommodate LTP as it is today. If we are going to
> > > change LTP to accommodate the kernel, then it should accommodate the
> > > kernel as it is today.
> > The problem is that there is no way for userland tell the difference
> > between the older and newer behavior. That was what I was suggesting we
> > add.
> To make sure I wasn't talking through my hat, I had a look at the ltp
> code.
> The test in question simply tests that the count of RPC calls increases.
> It can get the count of RPC calls in one of 2 ways :
> 1/ "lhost" - look directly in /proc/net/rpc/{nfs,nfsd}
> 2/ "rhost" - ssh to the server and look in that file.
FYI "rhost" in LTP can be either using namespaces (Single Host Configuration [1]),
which is run by default, or SSH based (Two Host Configuration [2]). IMHO most of
the testers (including myself run tests simply via network namespaces).
NOTE: I suppose CONFIG_NAMESPACES=y is a must for 'ip netns' to be working, thus
tests would hopefully failed early on kernel having that disabled.
> The current test to "fix" this for kernels -ge "6.9" is to force the use
> of "rhost".
> I'm guessing that always using "rhost" for the nfsd stats would always
> work.
FYI this old commit [3] allowed these tests to be working in network namespaces.
It reads for network namespaces both /proc/net/rpc/{nfs,nfsd} from non-namespace
("lhost"). This is the subject of the change in 6.9, which now fails.
And for SSH based we obviously look on "rhost" already.
> But if not, the code could get both the local and remote nfsd stats, and
> check that at least one of them increases (and neither decrease).
This sounds reasonable, thanks for a hint. I'll just look for client RPC calls
(/proc/net/rpc/nfs) in both non-namespace and namespace. The only think is that
we effectively give up checking where it should be (if it for whatever reason in
the future changes again, we miss that). I'm not sure if this would be treated
the same as the current situation (Josef Bacik had obvious reasons for this to
be working).
@Josef @NFS maintainers: WDYT?
Kind regards,
Petr
> So ltp doesn't need to know which kernel is being used - it can be
> written to work safely on either.
> NeilBrown
[1] https://github.com/linux-test-project/ltp/tree/master/testcases/network#single-host-configuration
[2] https://github.com/linux-test-project/ltp/tree/master/testcases/network#two-host-configuration
[3] https://github.com/linux-test-project/ltp/commit/40958772f11d90e4b5052e7e772a3837d285cf89
> > To be clear, I hold this opinion loosely. If the consensus is that we
> > need to revert things then so be it. I just don't see the value of
> > doing that in this particular situation.
> > --
> > Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2024-08-14 20:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d4b235df-4ee5-4824-9d48-e3b3c1f1f4d1@oracle.com>
2024-07-02 22:55 ` [LTP] [PATCH 1/1] nfsstat01: Update client RPC calls for kernel 6.9 Calum Mackay
2024-07-05 14:19 ` Chuck Lever III
2024-07-06 7:11 ` Greg KH
2024-07-06 7:46 ` Sherry Yang
2024-07-08 10:36 ` Greg KH
2024-07-08 17:49 ` Chuck Lever III
2024-07-09 6:48 ` Cyril Hrubis
2024-07-11 21:18 ` Jeff Layton
2024-07-11 22:58 ` NeilBrown
2024-07-12 0:40 ` Jeff Layton
2024-07-12 6:12 ` NeilBrown
2024-07-12 10:16 ` Jeff Layton
2024-07-12 11:07 ` Petr Vorel
2024-07-12 14:03 ` Chuck Lever III
2024-07-12 11:13 ` NeilBrown
2024-08-14 20:55 ` Petr Vorel [this message]
2024-08-14 22:17 ` NeilBrown
2024-08-15 6:53 ` Petr Vorel
2024-07-12 13:45 ` Thorsten Leemhuis
2024-07-12 14:07 ` Jeff Layton
2024-07-08 4:02 ` Petr Vorel
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=20240814205519.GA550121@pevik \
--to=pvorel@suse.cz \
--cc=akumar@suse.de \
--cc=anna@kernel.org \
--cc=calum.mackay@oracle.com \
--cc=chuck.lever@oracle.com \
--cc=greg@kroah.com \
--cc=jlayton@kernel.org \
--cc=josef@toxicpanda.com \
--cc=kernel-team@fb.com \
--cc=linux-nfs@vger.kernel.org \
--cc=ltp@lists.linux.it \
--cc=neilb@suse.de \
--cc=sherry.yang@oracle.com \
--cc=stable@vger.kernel.org \
--cc=trondmy@hammerspace.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