]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: add the fuse parameter max_write 20855/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 13 Mar 2018 02:35:10 +0000 (10:35 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 19 Mar 2018 03:23:05 +0000 (11:23 +0800)
commit8dbc5c9d1c4db88f923ca2ada6a0e425c3d33b95
tree38ff59965f65082d071eb1828c0326524d3395c5
parent41ec4384139c00e737e0b07d3a2865141e45b892
client: add the fuse parameter max_write

This parameter has the following 2 advantages:
1. FUSE(version > 2.8) the default single IO write size is 128k (controlled by max_write), if I use bs=4M in the FIO tool test,
   you will find that 4*1024k/128=32 is needed, ie 32 IO operations are needed . If I adjust max_write to 4M,
   only one operation is needed, which greatly improves the write performance of cephfs during fuse mount.
   Of course, the above implementation requires libfuse and kernel fuse to support.
2. In addition, we can also limit the single IO write size by setting max_write to less than 128K.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
doc/cephfs/client-config-ref.rst
src/client/fuse_ll.cc
src/common/options.cc