[PATCH v1] fuse: increase FUSE_MAX_PAGES_PER_REQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
fs/fuse/fuse_i.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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
--
2.7.4



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux