diff mbox

[v1] fuse: increase FUSE_MAX_PAGES_PER_REQ

Message ID CAE7jHC9JKAoEhrL51gPxFuGhOBYCTtOH4nodO8dPCte95YyLBg@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Constantine Shulyupin July 11, 2017, 6:10 p.m. UTC
For 4 KB page size, old FUSE_MAX_PAGES_PER_REQ = 32  meant 128 KB,
which limits throughput to fast base filesystem.
For modern systems with plenty of memory, fast SSD and RAID this is
too limited. I recommend making this parameter configurable but
for demonstration, hardcode FUSE_MAX_PAGES_PER_REQ = 256, which is 1 MB.
How do you suggest to proceed?

Signed-off-by: Constantine Shulyupin <const@MakeLinux.co.il>
---
fs/fuse/fuse_i.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4
diff mbox

Patch

diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 1bd7ffd..0d54752 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -28,7 +28,7 @@ 
#include <linux/refcount.h>

/** Max number of pages that can be used in a single read request */
-#define FUSE_MAX_PAGES_PER_REQ 32
+#define FUSE_MAX_PAGES_PER_REQ 256

/** Bias for fi->writectr, meaning new writepages must not be sent */
#define FUSE_NOWRITE INT_MIN