Skip to content

exports: add support for new read_io= and write_io= export options

Jeff Layton linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20261014-master-b5afd69e3772

Versions newest first

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rename riomode=/wiomode= to read_io=/write_io= to match the kernel series.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4exportfs/mountd/exportd: track the svc_export policy highest attributesupport/export/export_policy.c support/include/exportfs.h+8 -10 replies
2/4exports: Add read_io= and write_io= export optionsconfigure.ac support/export/cache.c support/export/export_policy.c +5 more+160 -20 replies
3/4exportfs: Display and document read_io= and write_io=support/include/nfslib.h utils/exportfs/exportfs.c utils/exportfs/exports.man+57 -00 replies
4/4nfsd-iomode-advisor: recommend read_io= and write_io= for an exportconfigure.ac tools/Makefile.am tools/nfsd-iomode-advisor/Makefile.am +2 more+1446 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nfs-utils v2 0/4] exports: add support for new read_io= and write_io= export options

This is the companion patch series to [1]. Chuck suggested we change the export options to read_io= and write_io=. That's the only real change in this version.

The last patch in this adds a new nfsd-iomode-advisor script that watches various stats on the server and advises the admin what mode to use.

I consider the advisor optional as it was largely vibe-coded. I'm not sure I'd trust its advice that far, but it's probably better than guessing. I did test it on a range of different machine types and it seemed to do the right thing.

[1]: https://lore.kernel.org/linux-nfs/[email protected]/

---
Changes in v2:
- Rename riomode=/wiomode= to read_io=/write_io= to match the kernel series.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Jeff Layton (4):
exportfs/mountd/exportd: track the svc_export policy highest attribute
exports: Add read_io= and write_io= export options
exportfs: Display and document read_io= and write_io=
nfsd-iomode-advisor: recommend read_io= and write_io= for an export

 configure.ac                                      |    3 +-
 support/export/cache.c                            |   59 +-
 support/export/export_policy.c                    |   29 +-
 support/export/v4root.c                           |    2 +
 support/include/exportfs.h                        |    3 +
 support/include/nfsd_netlink.h                    |   12 +
 support/include/nfslib.h                          |   14 +
 support/nfs/exports.c                             |   51 +
 tools/Makefile.am                                 |    2 +-
 tools/nfsd-iomode-advisor/Makefile.am             |   14 +
 tools/nfsd-iomode-advisor/nfsd-iomode-advisor.man |  232 ++++
 tools/nfsd-iomode-advisor/nfsd-iomode-advisor.py  | 1198 +++++++++++++++++++++
 utils/exportfs/exportfs.c                         |   34 +
 utils/exportfs/exports.man                        |   22 +
 14 files changed, 1671 insertions(+), 4 deletions(-)

---
base-commit: 0ed4324cbbb8020039d338d597c1422a980f7085
change-id: 20261014-master-b5afd69e3772

Best regards,

Signature · 1 line
Jeff Layton <[email protected]>