Skip to content

Make fuse param max-write tunable #4500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chen1195585098 opened this issue Mar 23, 2025 · 0 comments
Open

Make fuse param max-write tunable #4500

chen1195585098 opened this issue Mar 23, 2025 · 0 comments

Comments

@chen1195585098
Copy link
Contributor

The kernel FUSE driver introduced a new feature called max-pages starting from kernel version 4.20. This feature allows an IO request to utilize up to 256 pages at most. However, in the case of GlusterFS, the maximum write request size is currently limited to 128K, which corresponds to 32 pages. As a result, when handling a write request of 1M data, it will be split into 8 separate requests. This fragmentation can potentially lead to a FUSE IO bottleneck.
Given this situation, it would be beneficial to investigate whether we can adjust the size of the write request in GlusterFS to better leverage the max-pages feature and thereby improve write performance.

chen1195585098 added a commit to chen1195585098/glusterfs that referenced this issue Mar 23, 2025
Since kernel 4.20, the FUSE driver introduced the max-pages feature.
To enhance write performance, this patch exports a new mount option
fuse-max-write to let users specify the maximum write bytes for FUSE.
The max-pages parameter for fuse connection will be adjusted accordingly.

Updates: gluster#4500
Signed-off-by: chenjinhao <1195585098@qq.com>
chen1195585098 added a commit to chen1195585098/glusterfs that referenced this issue Apr 15, 2025
Since kernel 4.20, the FUSE driver introduced the max-pages feature.
To enhance write performance, this patch exports mount options
fuse-max-write and fuse-max-read to let users specify the maximum
write/read bytes for FUSE.
The max-pages parameter for fuse connection will be adjusted accordingly.

Updates: gluster#4500
Signed-off-by: chenjinhao <1195585098@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant