All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <trondmy@hammerspace.com>
To: "neilb@suse.de" <neilb@suse.de>
Cc: "anna@kernel.org" <anna@kernel.org>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
	"jlayton@kernel.org" <jlayton@kernel.org>,
	"bcodding@redhat.com" <bcodding@redhat.com>
Subject: Re: [PATCH 0/2] NFS: limit use of ACCESS cache for negative responses
Date: Mon, 5 Sep 2022 00:49:53 +0000	[thread overview]
Message-ID: <23bc916cd8ca2a7b4d1effaefd173a05e8c1af03.camel@hammerspace.com> (raw)
In-Reply-To: <166233657158.1168.394810496332729625@noble.neil.brown.name>

On Mon, 2022-09-05 at 10:09 +1000, NeilBrown wrote:
> On Mon, 05 Sep 2022, Trond Myklebust wrote:
> > On Mon, 2022-09-05 at 09:28 +1000, NeilBrown wrote:
> > > 
> > > When I was first presented with this problem I thought
> > > logout/login
> > > was
> > > the answer and even provided a patch which would mean different
> > > logins
> > > got different cache keys.  This wasn't very well received because
> > > it
> > > used to work without log out/in (because we didn't cache access
> > > indefinitely), but the killer was that it didn't even work
> > > reliably -
> > > because of propagation variability.
> > 
> > Then the onus is upon you and the people who don't want the two
> > proposed solutions to figure out new ones. Timeouts are not
> > acceptable.
> 
> Why not?  They have always been part of NFS.

In moderation, yes. However we don't gratuitously fling them at every
problem for the very good reason that they tend to create more problems
than they solve. Look at the proliferation of mount options that
already exist to solve the basic problem of tuning of all the timeouts
that we already have.

> But let's forget about timeouts for the moment.
> You still haven't answered my question:  What is the cost of not
> caching
> negative access results??
> 

What makes you think they are rare enough to compare to the 1 in a
billion cases you're talking about? You're the one who is claiming
without offering any shred of proof that negative results are rare.

As far as I'm concerned, all it takes is $PATH component that does not
have lookup rights set to allow 'other', or ditto for a library or
config file path component. Alternatively, you happen to have a file
that is not executable in $PATH, but with a name that matches a real
executable further down the list. Suddenly you are hammering the server
despite the fact that the permissions are never observed to change.

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



      reply	other threads:[~2022-09-05  0:50 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28  1:37 [PATCH 0/2] NFS: limit use of ACCESS cache for negative responses NeilBrown
2022-04-28  1:37 ` [PATCH 1/2] NFS: change nfs_access_get_cached() to nfs_access_check_cached() NeilBrown
2022-04-28  1:37 ` [PATCH 2/2] NFS: limit use of ACCESS cache for negative responses NeilBrown
2022-05-17  0:05 ` [PATCH 0/2] " NeilBrown
2022-05-17  0:20   ` Trond Myklebust
2022-05-17  0:40     ` NeilBrown
2022-05-17  0:55       ` Trond Myklebust
2022-05-17  1:05         ` NeilBrown
2022-05-17  1:14           ` Trond Myklebust
2022-05-17  1:22             ` NeilBrown
2022-05-17  1:36               ` Trond Myklebust
2022-08-26 14:59                 ` Benjamin Coddington
2022-08-26 15:44                   ` Trond Myklebust
2022-08-26 16:43                     ` Benjamin Coddington
2022-08-26 16:56                       ` Trond Myklebust
2022-08-26 18:27                         ` Benjamin Coddington
2022-08-27  0:52                           ` Trond Myklebust
2022-09-19 19:09                             ` Benjamin Coddington
2022-09-19 22:38                               ` NeilBrown
2022-09-20  1:18                                 ` Trond Myklebust
2022-08-26 23:39                     ` NeilBrown
2022-08-27  3:38                       ` Trond Myklebust
2022-08-28 23:32                         ` NeilBrown
2022-08-29 14:07                           ` Jeff Layton
2022-09-03  9:57                             ` NeilBrown
2022-09-03 15:49                               ` Trond Myklebust
2022-09-04 23:28                                 ` NeilBrown
2022-09-04 23:40                                   ` Trond Myklebust
2022-09-05  0:09                                     ` NeilBrown
2022-09-05  0:49                                       ` Trond Myklebust [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=23bc916cd8ca2a7b4d1effaefd173a05e8c1af03.camel@hammerspace.com \
    --to=trondmy@hammerspace.com \
    --cc=anna@kernel.org \
    --cc=bcodding@redhat.com \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.