#!/bin/bash
logfile=/tmp/streelog.log
echo “stress -c 4 -i 4 –verbose –timeout 1m” >> logfile
stress -c 4 -i 4 –verbose –timeout 1m & >> $logfile
sleep 30
top -b -n 1 | head -n 15 >> $logfile
vmstat 2 1 >> $logfile
sleep 20
top -b -n 1 | head -n 15 >> $logfile
vmstat 2 1 >> $logfile
echo “” >> $logfile
/opt/soft/memtester-4.3.0/memtester 1G 1 >> $logfile
echo “” >> $logfile
echo “fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randread –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest” >> $logfile
fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randread –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest >> $logfile
echo “fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=read –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest” >>$logfile
fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=read –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest >> $logfile
echo “fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randwrite –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest” >>$logfile
fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randwrite –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest >>$logfile
echo “fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=write –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest” >>$logfile
fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=write –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest >>$logfile
echo “fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randrw –rwmixread=70 –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest –ioscheduler=noop” >>$logfile
fio –filename=/tmp/mytest.txt –direct=1 –iodepth 1 –thread –rw=randrw –rwmixread=70 –ioengine=psync –bs=4k –size=2G –numjobs=10 –runtime=100 –group_reporting –name=mytest –ioscheduler=noop >> $logfile
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/183242.html