- shell脚本 解决客户端运行vdbench过程中,抓取集群测的perf
- 当vdbench脚本中运行多个IO模型中时,需要对服务端集群抓取性能数据
- vdbench 运行命令:
nohup ./vdbench -f 8k -o wenjian/scm_nvme8k_E5203_923_>>out &
while true
do
num=`sed '$!N;$!D' /root/vdbench50407/out | grep "Starting RD=rd_"|wc -l`
echo "num"$num >> tt
s=`sed '$!N;$!D' /root/vdbench50407/out | grep "completed successfully"|wc -l`
echo "s":$s >>tt
if [ $num = 1 ]; then
sleep 200
echo `date`
ssh SDS_Admin@182.100.60.131 "sudo bash /root/mdsperf.sh 4k"
echo '集群perf'
fi
if [ $s = 1 ]; then
break
fi
done
- ssh SDS_Admin@182.100.X.X "sudo bash /root/mdsperf.sh 4k"这个自己去定义吧 需要执行啥脚本在服务端写好