mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-05 11:41:13 +00:00
update the chinese and english docs architecture Signed-off-by: mingwei <gongmingwei@oppo.com>
1.3 KiB
Executable File
1.3 KiB
Executable File
Optimizing FUSE Parameters
Properly adjusting the kernel FUSE parameters can achieve better performance in sequential writing and high-concurrency scenarios. You can refer to the following steps:
-
Obtain the Linux kernel source code.
Download the corresponding Linux kernel source code package and install the source code. The source code installation directory is
~/rpmbuild/BUILD/.rpm -i kernel-3.10.0-327.28.3.el7.src.rpm 2>&1 | grep -v exist cd ~/rpmbuild/SPECS rpmbuild -bp --target=$(uname -m) kernel.spec -
Optimize the Linux FUSE kernel module parameters.
To achieve optimal performance, you can modify the FUSE parameters
FUSE_MAX_PAGES_PER_REQandFUSE_DEFAULT_MAX_BACKGROUND. The optimized reference values are as follows:/* fs/fuse/fuse_i.h */ #define FUSE_MAX_PAGES_PER_REQ 256 /* fs/fuse/inode.c */ #define FUSE_DEFAULT_MAX_BACKGROUND 32 -
Compile the corresponding version of the Linux kernel module.
yum install kernel-devel-3.10.0-327.28.3.el7.x86_64 cd ~/rpmbuild/BUILD/kernel-3.10.0-327.28.3.el7/linux-3.10.0-327.28.3.el7.x86_64/fs/fuse make -C /lib/modules/`uname -r`/build M=$PWD -
Insert the kernel module.
cp fuse.ko /lib/modules/`uname -r`/kernel/fs/fuse rmmod fuse depmod -a modprobe fuse