Skip to content

fuse: dynamically configure max pages limit through sysctl

Joanne Koong linux-fsdevel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 2 repliesIn review
  2. v2 posting 2/21 patch 6 repliesSuperseded
  3. v2 posting 1/21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Changes in v3 from the cover letter

* Gate sysctl.o behind CONFIG_SYSCTL in Makefile (kernel test robot)
* Reword commit message

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1fuse: enable dynamic configuration of fuse max pages limit (FUSE_MAX_MAX_PAGES)Documentation/admin-guide/sysctl/fs.rst fs/fuse/Makefile fs/fuse/fuse_i.h +3 more+75 -52 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJosef BacikSweet Tea Dorminy
1/1R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/1] fuse: dynamically configure max pages limit through sysctl

The motivation behind this patch is to increase the max buffer size allowed for a write request. Currently, this is gated by FUSE_MAX_MAX_PAGES which is statically set to 256 pages. As such, this limits the buffer size on a write request to 1 MiB on a 4k-page system. Perf improvements have been seen [1] with larger write buffer size limits.

This patch adds a sysctl for allowing system administrators to dynamically configure the max number of pages that can be used for servicing requests in FUSE. The default value is the original limit (256 pages).

[1] https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u

v2 -> v3:
* Gate sysctl.o behind CONFIG_SYSCTL in Makefile (kernel test robot)
* Reword commit message

v2:
https://lore.kernel.org/linux-fsdevel/[email protected]/
https://lore.kernel.org/linux-fsdevel/[email protected]/
v1 -> v2:
* Rename fuse_max_max_pages to fuse_max_pages_limit internally
* Rename /proc/sys/fs/fuse/fuse_max_max_pages to /proc/sys/fs/fuse/max_pages_limit
* Restrict fuse max_pages_limit sysctl values to between 1 and 65535 (inclusive)

v1: https://lore.kernel.org/linux-fsdevel/[email protected]/

Joanne Koong (1):
fuse: Enable dynamic configuration of fuse max pages limit
(FUSE_MAX_MAX_PAGES)

 Documentation/admin-guide/sysctl/fs.rst | 10 +++++++
 fs/fuse/Makefile                        |  1 +
 fs/fuse/fuse_i.h                        | 14 +++++++--
 fs/fuse/inode.c                         | 11 ++++++-
 fs/fuse/ioctl.c                         |  4 ++-
 fs/fuse/sysctl.c                        | 40 +++++++++++++++++++++++++
 6 files changed, 75 insertions(+), 5 deletions(-)
 create mode 100644 fs/fuse/sysctl.c
Signature · 1 line
2.43.5