小文件性能评估

通过 mdtestopen in new window 进行小文件性能测试的结果如下:

配置

#!/bin/bash
set -e
TARGET_PATH="/home/service/chubaofs/adls/mnt-perform-test" # mount point of CubeFS volume
for FILE_SIZE in 1024 2048 4096 8192 16384 32768 65536 131072 # file size
do
    CMD="/usr/lib64/openmpi/bin/mpirun --allow-run-as-root -mca plm_rsh_args '-p 18822' -np 512 --hostfile hfile64 mdtest -n 1000 -w $FILE_SIZE -e $FILE_SIZE -y -u -i 3 -N 1 -F -R -d $TARGET_PATH"
   #CMD="/usr/lib64/openmpi/bin/mpirun --allow-run-as-root -mca plm_rsh_args '-p 18822' -np 512 --hostfile hfile64 mdtest -n 1000 -w $FILE_SIZE -e $FILE_SIZE -y -u -i 3 -N 1 -F -R -d $TARGET_PATH"
	echo
	echo $CMD
	eval $CMD | tee -a ${LOGPREFIX}.txt
	echo "start to sleep 5s"
	sleep 5
done

测试结果

Small File Benchmark

文件大小(KB)1248163264128
创建操作 (TPS)4980837726422964482641481356993160935622
读取操作 (TPS)7674381085848317539773165696656213553658
删除操作 (TPS)7252267749709196868969819716717156871647
信息查看 (TPS)188609185945188542180602188274174771171100183334
在github上编辑