From: Nikolaus Rath <Nikolaus@rath.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: fuse-devel <fuse-devel@lists.sourceforge.net>,
linux-fsdevel@vger.kernel.org
Subject: Re: [fuse-devel] [fuse] Unexpectedly large number of getattr() and lookup requests
Date: Wed, 05 Dec 2018 18:06:48 +0000 [thread overview]
Message-ID: <87zhtj6e6f.fsf@thinkpad.rath.org> (raw)
In-Reply-To: <CAJfpegvSfGtcTvoCheXTQtJN=Tt2gQYuS5Sxjnmcq4SUiPgWBQ@mail.gmail.com> (Miklos Szeredi's message of "Wed, 5 Dec 2018 10:25:53 +0100")
On Dec 05 2018, Miklos Szeredi <miklos@szeredi.hu> wrote:
> On Tue, Dec 4, 2018 at 8:04 PM Nikolaus Rath <Nikolaus@rath.org> wrote:
>>
>> On Dec 04 2018, Miklos Szeredi <miklos@szeredi.hu> wrote:
>
>> > The GETATTR requests are due atime invalidations.
>>
>> Could you elaborate? I'm not sure what that means here. What is an atime
>> invalidation?
>
> POSIX states that on read(2), readdir(3), readlink(2), etc, the
> st_atime of the file/directory/symlink needs to be updated to the
> current time. So when e.g. a READ request is sent, fuse will
> invalidate the cache in the belief that the server will update the
> atime. In this casea subsequent stat(2) will find the invalid cache
> and will issue a GETATTR to the server, which will reply with an
> updated atime value.
This sounds like it should not happen when writeback is active, because
in that case userspace doesn't know the right attributes either.
Or is there special code that only prevents invalidation if there
already is dirty data for the inode? If so, is there a reason for not
updating atime in the kernel whenever writeback is active?
Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
next prev parent reply other threads:[~2018-12-05 18:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-29 21:20 [fuse] Unexpectedly large number of getattr() and lookup requests Nikolaus Rath
2018-11-30 7:58 ` Miklos Szeredi
2018-12-01 10:00 ` [fuse-devel] " Nikolaus Rath
2018-12-04 9:36 ` Miklos Szeredi
2018-12-04 19:04 ` Nikolaus Rath
2018-12-05 9:25 ` Miklos Szeredi
2018-12-05 18:06 ` Nikolaus Rath [this message]
2018-12-06 9:26 ` Miklos Szeredi
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=87zhtj6e6f.fsf@thinkpad.rath.org \
--to=nikolaus@rath.org \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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).