NFSD: add "NFSD DIRECT" and "NFSD DONTCACHE" IO modes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest9 patches 0 repliesNew
- v87 patches 16 repliesSuperseded
- v77 patches 7 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 7 patches | 1 reply | Superseded | |
| v5 posting 2/2 | 7 patches | 17 replies | Superseded | |
| v5 posting 1/2 | 13 patches | 8 replies | Superseded | |
| v4 | 5 patches | 6 replies | Superseded | |
| v3 | 5 patches | 7 replies | Superseded |
Changes in v9 from the cover letter
- Remove a few WARN_ON_ONCE from the misaligned DIO READ and WRITE paths
- pr_warn_ratelimited if EINVAL on misaligned READ and WRITE paths
- handle DIO WRITE -ENOTBLK return by falling back to using buffered IO.
- fix misaligned DIO READ to not use a start_extra_page
- use /end/ of rq_pages for front_pad page
- fix checkpatch warning about 'unsigned' in nfsd_iov_iter_aligned_bvec
- fix NFSD debugfs interfaces to no longer use UNSPECIFIED state, explicitly default to NFSD_IO_BUFFERED
- add Documentation/filesystems/nfs/nfsd-io-modes.rst
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN supportfs/ fs/ fs/ | +40 | 0 replies | |
| 2/9 | NFSD: pass nfsd_file to nfsd_iter_read()fs/ fs/ fs/ | +9 | 0 replies | |
| 3/9 | NFSD: add io_cache_read controls to debugfs interfacefs/ fs/ fs/ | +82 | 0 replies | |
| 4/9 | NFSD: add io_cache_write controls to debugfs interfacefs/ fs/ fs/ | +58 | 0 replies | |
| 5/9 | NFSD: issue READs using O_DIRECT even if IO is misalignedfs/ include/ | +178 | 0 replies | |
| 6/9 | NFSD: issue WRITEs using O_DIRECT even if IO is misalignedfs/ | +183 | 0 replies | |
| 7/9 | NFSD: add nfsd_analyze_read_dio and nfsd_analyze_write_dio trace eventsfs/ fs/ | +72 | 0 replies | |
| 8/9 | NFSD: add Documentation/filesystems/nfs/nfsd-io-modes.rstDocumentation/ | +144 | 0 replies | |
| 9/9 | NFSD: use /end/ of rq_pages for misaligned DIO READ's start_extra pagefs/ | +6 | 0 replies |
Reviews trailers per patch
2 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Jeff Layton |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v9 0/9] NFSD: add "NFSD DIRECT" and "NFSD DONTCACHE" IO modes
Hi,
Some workloads benefit from NFSD avoiding the page cache, particularly those with a working set that is significantly larger than available system memory. This patchset introduces _optional_ support to configure the use of O_DIRECT or DONTCACHE for NFSD's READ and WRITE support. The NFSD default to use page cache is left unchanged.
This code has proven to work well during my testing. Any suggestions for further refinement are welcome.
Thanks,
Mike
Changes since v8:
- Remove a few WARN_ON_ONCE from the misaligned DIO READ and WRITE paths
- pr_warn_ratelimited if EINVAL on misaligned READ and WRITE paths
- handle DIO WRITE -ENOTBLK return by falling back to using buffered IO.
- fix misaligned DIO READ to not use a start_extra_page
- use /end/ of rq_pages for front_pad page
- fix checkpatch warning about 'unsigned' in nfsd_iov_iter_aligned_bvec
- fix NFSD debugfs interfaces to no longer use UNSPECIFIED state, explicitly default to NFSD_IO_BUFFERED
- add Documentation/filesystems/nfs/nfsd-io-modes.rst
Mike Snitzer (9):
NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support
NFSD: pass nfsd_file to nfsd_iter_read()
NFSD: add io_cache_read controls to debugfs interface
NFSD: add io_cache_write controls to debugfs interface
NFSD: issue READs using O_DIRECT even if IO is misaligned
NFSD: issue WRITEs using O_DIRECT even if IO is misaligned
NFSD: add nfsd_analyze_read_dio and nfsd_analyze_write_dio trace events
NFSD: add Documentation/filesystems/nfs/nfsd-io-modes.rst
NFSD: use /end/ of rq_pages for misaligned DIO READ's start_extra page
.../filesystems/nfs/nfsd-io-modes.rst | 144 ++++++ fs/nfsd/debugfs.c | 98 +++++ fs/nfsd/filecache.c | 32 ++ fs/nfsd/filecache.h | 4 + fs/nfsd/nfs4xdr.c | 8 +- fs/nfsd/nfsd.h | 10 + fs/nfsd/nfsfh.c | 4 + fs/nfsd/trace.h | 61 +++ fs/nfsd/vfs.c | 409 +++++++++++++++++- fs/nfsd/vfs.h | 2 +- include/linux/sunrpc/svc.h | 5 +- 11 files changed, 759 insertions(+), 18 deletions(-) create mode 100644 Documentation/filesystems/nfs/nfsd-io-modes.rst
Signature · 1 line
2.44.0