Little Star Blog

路在脚下,心向远方

如何测试磁盘性能


生成测试文件

生成40万个测试文件 mkdir tmp/; seq 1 400000 | xargs -I{} touch tmp/file_{}

centos 7.7安装jq

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-altarch-7.repo yum clean all yum makecache yum update yum install epel-release -y yum install jq -y jq --version