|
From: Matthew F. <mat...@ga...> - 2009-03-07 03:26:53
|
chpstcks wrote: > On Thu, 5 Mar 2009, François Thiebolt wrote: >> Ok, you need to modifiy both the kernel, the fuse kernel module (within >> kernel tree) along with the Fuse library. >> >> *KERNEL PART* (fuse module is already within the kernel repository) >> #define VM_MAX_READAHEAD (include/linux/mm.h) >> #define FUSE_MAX_PAGES_PER_REQ (fs/fuse/fuse_i.h) >> >> *FUSE LIB PART* >> /lib/fuse_kern_chan.c >> #define MIN_BUFSIZE *0x401000* (for 4M write request is that ok *miklos* >> ?) > > Modifying the 3 values works perfectly for me. > i set > > #define VM_MAX_READAHEAD 1024 > #define FUSE_MAX_PAGES_PER_REQ 256 > #define MIN_BUFSIZE 0x101000 > > and both read write are now at 1mb! > now i just need to figure out how to tell nfs3 and samba to send 1mb > requests to the kernel (if anyone has any insights, please let me know.) You would just increase the third parameter of write and/or pwrite (http://opengroup.org/onlinepubs/007908775/xsh/write.html). It can be up to SIZE_MAX. Of course you may sometimes need to change the program logic in non-trivial ways. Matt Flaschen |