Skip to contentSkip to conversation

How to enlarge the max write pages of fuse request

QUESTION piaojun 1 participant 1 message Mar 8, 2020 VFS

lore
Share & tools
lore

piaojun

author
#0 lore raw

Hi Miklos,

I want to enlarge the fuse request's bufsize from 128K to 1MB for more bandwidth as follows, but it does not work.

1. In libfuse, setting fuse_init_out:
outarg->max_write = 1024 * 1024; // 1MB
outarg->max_pages = 256; // 1MB

2. In kernel, fuse_send_write just handle 4B once a time, and failed at last despite 'req->max_pages' is already set to 256. I wonder if some more adaption needed or I just went the wrong way? Looking forward to your rely.

Thanks,
Jun