Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Server performance testing

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report