From: NeilBrown <neilb@suse.de>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] NFS: Adapt readdirplus to application usage patterns
Date: Wed, 2 May 2012 09:22:50 +1000 [thread overview]
Message-ID: <20120502092250.37fc03eb@notabene.brown> (raw)
In-Reply-To: <1335913496.4060.49.camel@lade.trondhjem.org>
[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]
On Tue, 1 May 2012 23:04:51 +0000 "Myklebust, Trond"
<Trond.Myklebust@netapp.com> wrote:
> > Also, the current code will clear NFS_INO_ADVISE_RDPLUS if it gets -ETOOSMALL,
> > and it will stay cleared until the inode falls out of cache and is reloaded.
> > The new code will set it again a lot sooner. Is that likely to be a problem
> > (I don't remember what conditions lead to ETOOSMALL)?
> > In fact I think it will ignore the ETOOSMALL and always retry with
> > readdirplus for the first read in a directory. That doesn't seem good ?
>
> ETOOSMALL means that there isn't enough buffer space to fill a full
> record. Given that we now provide > 32k buffer space, that seems like it
> would be extremely difficult to produce. Even a Linux server, with its
> 4k total limit should be able to provide at least 1 readdirplus record.
>
> If we do find a directory that keeps triggering the ETOOSMALL, then I
> suppose we can add a NFS_INO_FORBID_RDPLUS flag to turn readdirplus off
> permanently for that directory. However until I find that particular
> beast, then I'd be inclined to wait.
>
I can't argue with that. And looking at the code again it does disable
readdirplus for at least the next request by setting "desc->plus = 0".
So: all good.
Thanks,
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2012-05-01 23:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 22:06 [PATCH] NFS: Adapt readdirplus to application usage patterns Trond Myklebust
2012-05-01 22:39 ` NeilBrown
2012-05-01 23:04 ` Myklebust, Trond
2012-05-01 23:22 ` NeilBrown [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=20120502092250.37fc03eb@notabene.brown \
--to=neilb@suse.de \
--cc=Trond.Myklebust@netapp.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).