服务器性能测试

#!/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

新闻标题:服务器性能测试
文章链接:https://www.cdcxhl.com/article34/jddpse.html

成都网站建设公司_创新互联,为您提供动态网站响应式网站外贸建站网站营销商城网站网页设计公司

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

手机网站建设