From: trondmy@kernel.org
To: linux-nfs@vger.kernel.org
Subject: [PATCH v4 0/5] Readdir improvements
Date: Thu, 17 Feb 2022 17:33:18 -0500 [thread overview]
Message-ID: <20220217223323.696173-1-trondmy@kernel.org> (raw)
From: Trond Myklebust <trond.myklebust@hammerspace.com>
The current NFS readdir code will always try to maximise the amount of
readahead it performs on the assumption that we can cache anything that
isn't immediately read by the process.
There are several cases where this assumption breaks down, including
when the 'ls -l' heuristic kicks in to try to force use of readdirplus
as a batch replacement for lookup/getattr.
--
v2: Remove reset of dtsize when NFS_INO_FORCE_READDIR is set
v3: Avoid excessive window shrinking in uncached_readdir case
v4: Track 'ls -l' cache hit/miss statistics
Improved algorithm for falling back to uncached readdir
Skip readdirplus when files are being written to
Trond Myklebust (5):
NFS: Adjust the amount of readahead performed by NFS readdir
NFS: Simplify nfs_readdir_xdr_to_array()
NFS: Improve algorithm for falling back to uncached readdir
NFS: Improve heuristic for readdirplus
NFS: Don't ask for readdirplus if files are being written to
fs/nfs/dir.c | 210 ++++++++++++++++++++++++++---------------
fs/nfs/inode.c | 17 ++--
fs/nfs/internal.h | 4 +-
fs/nfs/nfstrace.h | 1 -
include/linux/nfs_fs.h | 7 +-
5 files changed, 153 insertions(+), 86 deletions(-)
--
2.35.1
next reply other threads:[~2022-02-17 22:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 22:33 trondmy [this message]
2022-02-17 22:33 ` [PATCH v4 1/5] NFS: Adjust the amount of readahead performed by NFS readdir trondmy
2022-02-17 22:33 ` [PATCH v4 2/5] NFS: Simplify nfs_readdir_xdr_to_array() trondmy
2022-02-17 22:33 ` [PATCH v4 3/5] NFS: Improve algorithm for falling back to uncached readdir trondmy
2022-02-17 22:33 ` [PATCH v4 4/5] NFS: Improve heuristic for readdirplus trondmy
2022-02-17 22:33 ` [PATCH v4 5/5] NFS: Don't ask for readdirplus if files are being written to trondmy
2022-02-18 11:40 ` Trond Myklebust
2022-02-18 11:37 ` [PATCH v4 4/5] NFS: Improve heuristic for readdirplus Trond Myklebust
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=20220217223323.696173-1-trondmy@kernel.org \
--to=trondmy@kernel.org \
--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