Skip to contentSkip to conversation

fuse: how to enlarge the max pages per request

RFC piaojun 2 participants 4 messages Mar 10, 2020 – Mar 16, 2020 VFS

lore
Share & tools
lore

piaojun

author
#0 lore raw

Hi Miklos,

From my test, a fuse write req can only contain 128KB which seems limited by FUSE_DEFAULT_MAX_PAGES_PER_REQ in kernel. I wonder if I could enlarge this macro to get more bandwidth, or some other adaption should be done?

Up to now, many userspace filesystem is designed for big data which needs big bandwidth, such as 2MB or more. So could we add a feature to let the user config the max pages per request? Looking forward for your reply.

Thanks,
Jun

author
#1 lore raw

ping?

Quoted 15 lines · piaojun

Hi Miklos,

Quoted 1 line

From my test, a fuse write req can only contain 128KB which seems

limited by FUSE_DEFAULT_MAX_PAGES_PER_REQ in kernel. I wonder if I could enlarge this macro to get more bandwidth, or some other adaption should be done?

Up to now, many userspace filesystem is designed for big data which needs big bandwidth, such as 2MB or more. So could we add a feature to let the user config the max pages per request? Looking forward for your reply.

Thanks,
Jun

#2 lore raw
In reply to piaojun
Quoted 11 lines · piaojun

Hi Miklos,

From my test, a fuse write req can only contain 128KB which seems limited by FUSE_DEFAULT_MAX_PAGES_PER_REQ in kernel. I wonder if I could enlarge this macro to get more bandwidth, or some other adaption should be done?

Up to now, many userspace filesystem is designed for big data which needs big bandwidth, such as 2MB or more. So could we add a feature to let the user config the max pages per request? Looking forward for your

Currently maximum 1MB per write request is possible by setting FUSE_MAX_PAGES flag and max_pages=256 in INIT reply.

Thanks,
Miklos

author
#3 lore raw
Quoted 9 lines · Miklos Szeredi
Quoted 8 lines · piaojun

Hi Miklos,

From my test, a fuse write req can only contain 128KB which seems limited by FUSE_DEFAULT_MAX_PAGES_PER_REQ in kernel. I wonder if I could enlarge this macro to get more bandwidth, or some other adaption should be done?

Quoted 6 lines
Quoted 3 lines

Up to now, many userspace filesystem is designed for big data which needs big bandwidth, such as 2MB or more. So could we add a feature to let the user config the max pages per request? Looking forward for your

Currently maximum 1MB per write request is possible by setting FUSE_MAX_PAGES flag and max_pages=256 in INIT reply.

Thanks for your reply. I got the point.

Jun