#LTP https://github.com/linux-test-project/ltp git clone https://github.com/linux-test-project/ltp.git cd ltp make autotools ./configure && make && make install cd /opt/ltp ./runltp ./runltp -l result.log -R -t 24h cd testscripts/ ./ltpstress.sh -n -t 20 -p -l /opt/ltp/ltpstress.result ./runltp -l result.log -R -t 24h #离线版本优化设置 hostnamectl set-hostname ltptest export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" mount -t tmpfs -o size=50G none /tmp sudo yum install gcc git make pkgconf autoconf automake bison flex m4 kernel-headers glibc-headers psmisc libtirpc-devel rpcsvc-proto-devel sysstat -y #跑特定测试 ./runltp -f syscalls ./runltp -l result.log -n -t 24h ~' -d:指定日志文件,默认/tmp/ltpstress.data -l:记录测试结果到/tmp/ltpstress.log -I:记录"iostat"结果到iofile,默认是/tmp/ltpstress.iostat -i:指定sar或top快照时间间隔,默认为10秒 -m: 指定最小的内存使用,默认为: RAM + 1/2 swap -n:不对网络进行压力测试 -S :用sar捕捉数据 -T:利用LTP修改过的top工具捕捉数据 -t: 指定测试时间,默认为小时' #执行ltpstress时需要添加”sar”或”top”工具 yum install -y sysstat cd /opt/ltp/testscripts ./ltpstress.sh -d /tmp/ltpstress.data -l /tmp/ltpstress.log -I /tmp/ltpstress.iostat -Sim -t 1 #统信测试 国产系统 tar -xvf ltp-full-20160510.tar.bz2 cd ltp-full-20160510 #拷贝两个补丁包到该目录 cp rpcsvc.tar changed_by_yupeng.patch /ltp-full-20160510 tar xvf rpcsvc.tar -C /usr/include/ ./configure cd .. patch -p0 < ./ltp-full-20160510/changed_by_yupeng.patch cd ltp-full-20160510 make all make install cd /opt/ltp/testscripts sh ltpstress.sh -n -t 1 #信创测试 20200515版 sudo cp ltpstress20200515.sh /opt/ltp/testscripts sudo cp stress.part1 /opt/ltp/runtest sudo cp stress.part2 /opt/ltp/runtest sudo cp stress.part3 /opt/ltp/runtest cd /opt/ltp/testscripts sudo chmod +x ltpstress20200515.sh sudo ./ltpstress20200515.sh -n -t 48 -p -l /opt/ltp/ltpstress.result