linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trond Myklebust <trondmy@hammerspace.com>
To: "chuck.lever@oracle.com" <chuck.lever@oracle.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: recent intermittent fsx-related failures
Date: Sun, 19 Sep 2021 23:19:46 +0000	[thread overview]
Message-ID: <7bfcfea962bc88eca24fb6fdfcaa9ef47138e531.camel@hammerspace.com> (raw)
In-Reply-To: <680A4FB2-B90D-47E1-A390-36B3081B1464@oracle.com>

On Sun, 2021-09-19 at 23:03 +0000, Chuck Lever III wrote:
> 
> 
> > On Jul 23, 2021, at 4:24 PM, Trond Myklebust
> > <trondmy@hammerspace.com> wrote:
> > 
> > On Fri, 2021-07-23 at 20:12 +0000, Chuck Lever III wrote:
> > > Hi-
> > > 
> > > I noticed recently that generic/075, generic/112, and generic/127
> > > were
> > > failing intermittently on NFSv3 mounts. All three of these tests
> > > are
> > > based on fsx.
> > > 
> > > "git bisect" landed on this commit:
> > > 
> > > 7b24dacf0840 ("NFS: Another inode revalidation improvement")
> > > 
> > > After reverting 7b24dacf0840 on v5.14-rc1, I can no longer
> > > reproduce
> > > the test failures.
> > > 
> > > 
> > 
> > So you are seeing file metadata updates that end up not changing
> > the
> > ctime?
> 
> As far as I can tell, a WRITE and two SETATTRs are happening in
> sequence to the same file during the same jiffy. The WRITE does
> not report pre/post attributes, but the SETATTRs do. The reported
> pre- and post- mtime and ctime are all the same value for both
> SETATTRs, I believe due to timestamp_truncate().
> 
> My theory is that persistent-storage-backed filesystems seem to
> go slow enough that it doesn't become a significant problem. But
> with tmpfs, this can happen often enough that the client gets
> confused. And I can make the problem unreproducable if I enable
> enough debugging paraphernalia on the server to slow it down.
> 
> I'm not exactly sure how the client becomes confused by this
> behavior, but fsx reports a stale size value, or it can hit a
> bus error. I'm seeing at least four of the fsx-based xfs tests
> fail intermittently.
> 

It really isn't a client problem then. If the server is failing to
update the timestamps, then you gets what you gets.

This is one of the reasons why we need to move on from NFSv3.

-- 
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com



  reply	other threads:[~2021-09-19 23:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23 20:12 recent intermittent fsx-related failures Chuck Lever III
2021-07-23 20:24 ` Trond Myklebust
2021-07-23 21:31   ` Chuck Lever III
2021-08-23 15:21     ` Chuck Lever III
2021-09-19 23:03   ` Chuck Lever III
2021-09-19 23:19     ` Trond Myklebust [this message]
2021-09-20 20:05       ` Chuck Lever III
2021-09-21 19:00     ` Trond Myklebust
2021-09-24 15:30       ` Chuck Lever III
2021-09-24 22:09         ` Trond Myklebust
2021-09-25 17:26           ` Chuck Lever III

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=7bfcfea962bc88eca24fb6fdfcaa9ef47138e531.camel@hammerspace.com \
    --to=trondmy@hammerspace.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.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;
as well as URLs for NNTP newsgroup(s).