From: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
To: Joanne Koong <joannelkoong@gmail.com>,
miklos@szeredi.hu, linux-fsdevel@vger.kernel.org
Cc: josef@toxicpanda.com, bernd.schubert@fastmail.fm, kernel-team@meta.com
Subject: Re: [PATCH v2 RESEND] fuse: Enable dynamic configuration of fuse max pages limit (FUSE_MAX_MAX_PAGES)
Date: Thu, 5 Sep 2024 14:53:31 -0400 [thread overview]
Message-ID: <8a3d772c-04e7-49de-9598-6d3c6543bdd9@dorminy.me> (raw)
In-Reply-To: <20240905174541.392785-1-joannelkoong@gmail.com>
On 9/5/24 1:45 PM, Joanne Koong wrote:
> Introduce the capability to dynamically configure the fuse max pages
> limit (formerly #defined as FUSE_MAX_MAX_PAGES) through a sysctl.
> This enhancement allows system administrators to adjust the value
> based on system-specific requirements.
>
> This removes the previous static limit of 256 max pages, which limits
> the max write size of a request to 1 MiB (on 4096 pagesize systems).
> Having the ability to up the max write size beyond 1 MiB allows for the
> perf improvements detailed in this thread [1].
>
> $ sysctl -a | grep max_pages_limit
> fs.fuse.max_pages_limit = 256
>
> $ sysctl -n fs.fuse.max_pages_limit
> 256
>
> $ echo 1024 | sudo tee /proc/sys/fs/fuse/max_pages_limit
> 1024
>
> $ sysctl -n fs.fuse.max_pages_limit
> 1024
>
> $ echo 65536 | sudo tee /proc/sys/fs/fuse/max_pages_limit
> tee: /proc/sys/fs/fuse/max_pages_limit: Invalid argument
>
> $ echo 0 | sudo tee /proc/sys/fs/fuse/max_pages_limit
> tee: /proc/sys/fs/fuse/max_pages_limit: Invalid argument
>
> $ echo 65535 | sudo tee /proc/sys/fs/fuse/max_pages_limit
> 65535
>
> $ sysctl -n fs.fuse.max_pages_limit
> 65535
>
> v2 (original):
> https://lore.kernel.org/linux-fsdevel/20240702014627.4068146-1-joannelkoong@gmail.com/
>
> v1:
> https://lore.kernel.org/linux-fsdevel/20240628001355.243805-1-joannelkoong@gmail.com/
>
> Changes from v1:
> - 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)
>
> [1] https://lore.kernel.org/linux-fsdevel/20240124070512.52207-1-jefflexu@linux.alibaba.com/T/#u
>
> Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
> Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Thanks for doing this!!
next prev parent reply other threads:[~2024-09-05 19:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 17:45 [PATCH v2 RESEND] fuse: Enable dynamic configuration of fuse max pages limit (FUSE_MAX_MAX_PAGES) Joanne Koong
2024-09-05 18:53 ` Sweet Tea Dorminy [this message]
2024-09-05 21:16 ` Bernd Schubert
2024-09-05 22:32 ` Joanne Koong
2024-09-05 22:46 ` Joanne Koong
2024-09-06 3:37 ` Jingbo Xu
2024-09-06 3:18 ` Jingbo Xu
2024-09-06 18:37 ` kernel test robot
2024-09-06 20:00 ` kernel test robot
2024-09-06 21:52 ` kernel test robot
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=8a3d772c-04e7-49de-9598-6d3c6543bdd9@dorminy.me \
--to=sweettea-kernel@dorminy.me \
--cc=bernd.schubert@fastmail.fm \
--cc=joannelkoong@gmail.com \
--cc=josef@toxicpanda.com \
--cc=kernel-team@meta.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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