創(chuàng)新互聯(lián)建站專(zhuān)注于企業(yè)成都營(yíng)銷(xiāo)網(wǎng)站建設(shè)、網(wǎng)站重做改版、洞口網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5響應(yīng)式網(wǎng)站、成都做商城網(wǎng)站、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為洞口等各大城市提供網(wǎng)站開(kāi)發(fā)制作服務(wù)。
https://wiki.mikejung.biz/Benchmarking
譯文有增刪
FIO
Sysbench
Phoronix Test Suite (moved to it's own page)
IOzone
Ioping
UnixBench
Google's Perfkit Benchmarker
fio算是比較老的io測(cè)試工具了,作者是Jens Axboe。
主頁(yè)https://www.thomas-krenn.com/en/wiki/Fio
我的測(cè)試環(huán)境有centos7 redhat5因此要下載兩個(gè)版本的fio包
redhat5版本的需要去歸檔站點(diǎn)去下載
http://archives.fedoraproject.org/pub/archive/epel/
下載后的安裝 rpm -ivh fio-1.57-1.el5.x86_64.rpm
centos7則可以去很多鏡像站點(diǎn)下載,站點(diǎn)列表可以查詢
https://admin.fedoraproject.org/mirrormanager/mirrors/EPEL
如果配置了epel的yum源,直接yum install -y fio
示例 使用fio測(cè)試磁盤(pán)的隨機(jī)寫(xiě)
fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k \
--direct=0 --size=512M --numjobs=8 --runtime=240 --group_reporting
--rw=randwrite指定隨機(jī)寫(xiě)
--direct=0指定使用buffered IO還是direct IO。如果使用buffer,注意總大小不要超過(guò)物理內(nèi)存
--numjobs=8啟動(dòng)8個(gè)進(jìn)程
--size=512M每個(gè)進(jìn)程寫(xiě)512M
--group_reporting 將多個(gè)進(jìn)程的統(tǒng)計(jì)結(jié)果進(jìn)行聚合,更易閱讀
--runtime=240持續(xù)運(yùn)行時(shí)間4分鐘
--bs=4k --blocksize=4k (default)
--ioengine=libaio可用的io引擎可以使用 fio --enghelp查看(fio-2.2.8)
--iodepth=1缺省 測(cè)試ssd磁盤(pán)時(shí),可以擴(kuò)大到32,通常4就夠了
The iodepth option defines the amount of IO units that will continue to hammer a file with requests during the test.
避免使用buffer的方法是指定--direct=1或者使用比物理內(nèi)存大一倍的寫(xiě)文件
fio結(jié)果的重點(diǎn)關(guān)注項(xiàng)目:
iops=1416 iops = 1416
95.00th=[ 2] 95%的IO在2毫秒完成
util=99.62% 設(shè)備繁忙程度
示例 使用fio測(cè)試磁盤(pán)的隨機(jī)讀
fio --name=randread --ioengine=libaio --iodepth=16 --rw=randread --bs=4k \
--direct=0 --size=512M --numjobs=8 --runtime=240 --group_reporting
fio幫助
man fio
fio -h
fio -v
fio命令行中寫(xiě)上選項(xiàng),也可以將命令行選項(xiàng)寫(xiě)入一個(gè)參數(shù)文件job file中
fio安裝后,自帶了一些樣例
# rpm -ql -p fio-1.57-1.el5.x86_64.rpm
/usr/bin/fio
/usr/bin/fio_generate_plots
/usr/share/doc/fio-1.57
/usr/share/doc/fio-1.57/COPYING
/usr/share/doc/fio-1.57/HOWTO
/usr/share/doc/fio-1.57/README
/usr/share/doc/fio-1.57/REPORTING-BUGS
/usr/share/doc/fio-1.57/examples
/usr/share/doc/fio-1.57/examples/1mbs_clients
/usr/share/doc/fio-1.57/examples/aio-read
......
aio-read參數(shù)文件,修改一下可以馬上使用
# fio aio-read.bak
file1: (g=0): rw=randread, bs=128K-128K/128K-128K, ioengine=libaio, iodepth=4
file2: (g=0): rw=randread, bs=128K-128K/128K-128K, ioengine=libaio, iodepth=32
file3: (g=0): rw=randread, bs=128K-128K/128K-128K, ioengine=libaio, iodepth=8
file4: (g=0): rw=randread, bs=128K-128K/128K-128K, ioengine=libaio, iodepth=16
fio 1.57
......
fio輸出結(jié)果的一些注釋
io Number of megabytes of I/O performed.
bw Average data rate (bandwidth).
runt Threads run time.
slat Submission latency minimum, maximum, average and standard deviation. This
is the time it took to submit the I/O.
clat Completion latency minimum, maximum, average and standard deviation. This
is the time between submission and completion.
bw Bandwidth minimum, maximum, percentage of aggregate bandwidth received, average and standard deviation.
The group statistics show:
io Number of megabytes I/O performed.
aggrb Aggregate bandwidth of threads in the group.
minb Minimum average bandwidth a thread saw.
maxb Maximum average bandwidth a thread saw.
mint Shortest runtime of threads in the group.
maxt Longest runtime of threads in the group.
Finally, disk statistics are printed with reads first:
ios Number of I/Os performed by all groups.
merge Number of merges in the I/O scheduler.
ticks Number of ticks we kept the disk busy.
io_queue
Total time spent in the disk queue.
util Disk utilization.
示例 隨機(jī)讀直接IO
fio --name=randread --ioengine=libaio --iodepth=16 --rw=randread --bs=4k --direct=1 --size=1G --numjobs=8 --runtime=240 --group_reporting
csdn上一個(gè)翻譯成中文的帖子 http://blog.csdn.net/yuesichiu/article/details/8722417沒(méi)耐心看英文的估計(jì)中文的也不會(huì)看完。
sysbench可以測(cè)試cpu \ oltp MySQL\ fileio網(wǎng)上用來(lái)測(cè)試mysql的文章比較多。
在centos中,可以從epel直接安裝。安裝時(shí)需要mysql / postgresql
源文中的安裝方法
wget ftp://ftp.gnome.org/mirror/fedora/epel/6/x86_64/sysbench-0.4.12-5.el6.x86_64.rpm
wget http://downloads.mysql.com/archives/mysql-5.1/MySQL-shared-compat-5.1.49-1.rhel5.x86_64.rpm
rpm -iv MySQL-shared-compat-5.1.49-1.rhel5.x86_64.rpm
yum install postgresql-libs.x86_64
rpm -iv sysbench-0.4.12-5.el6.x86_64.rpm
實(shí)際安裝方法
rpm -ivh http://archives.fedoraproject.org/pub/archive/epel/epel-release-latest-5.noarch.rpm
or
rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install sysbench
先掌握sysbench的語(yǔ)法
# sysbench
Missing required command argument.
Usage:
sysbench [general-options]... --test= [test-options]... command
General options:
--num-threads=N number of threads to use [1]
--max-requests=N limit for total number of requests [10000]
--max-time=N limit for total execution time in seconds [0]
--forced-shutdown=STRING amount of time to wait after --max-time before forcing shutdown [off]
--thread-stack-size=SIZE size of stack per thread [32K]
--init-rng=[on|off] initialize random number generator [off]
--test=STRING test to run
--debug=[on|off] print more debugging info [off]
--validate=[on|off] perform validation checks where possible [off]
--help=[on|off] print help and exit
--version=[on|off] print version and exit
Compiled-in tests:
fileio - File I/O test
cpu - CPU performance test
memory - Memory functions speed test
threads - Threads subsystem performance test
mutex - Mutex performance test
oltp - OLTP test
Commands: prepare run cleanup help version
來(lái)一些命令
# run a random write test with "--file-extra-flags=direct"隨機(jī)寫(xiě)
sysbench --test=fileio --file-total-size=4G --file-num=2 --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=8K --num-threads=4 --file-extra-flags=direct
prepare
run
cleanup
sysbench --test=fileio --file-total-size=1G --file-num=10 --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=8K --file-extra-flags=direct
或者
隨機(jī)寫(xiě)
sysbench --test=fileio --file-total-size=2G --file-num=64 prepare
sysbench --test=fileio --file-total-size=2G --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=4K --file-num=64 --num-threads=1 run
for each in 1 4 8 16 32 64; do \
sysbench --test=fileio --file-total-size=2G --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=4K --file-num=64 --num-threads=$each run; \
sleep 10; done
隨機(jī)讀
sysbench --test=fileio --file-total-size=2G --file-test-mode=rndrd --max-time=240 --max-requests=0 --file-block-size=4K --file-num=64 --num-threads=1 run
for each in 1 4 8 16 32 64; do sysbench --test=fileio --file-total-size=2G --file-test-mode=rndrd --max-time=240 --max-requests=0 --file-block-size=4K --file-num=64 --num-threads=$each run; sleep 10; done
測(cè)試結(jié)果中的幾個(gè)重點(diǎn):
一個(gè)虛擬機(jī)(openstack)的測(cè)試結(jié)果
[root@v-yfb-cos72-sql05 test]# sysbench --test=fileio --file-total-size=4G --file-num=2 --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=8K --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Extra file open flags: 0
2 files, 2Gb each
4Gb total file size
Block size 8Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random write test
Threads started!
Time limit exceeded, exiting...
(last message repeated 3 times)
Done.
Operations performed: 0 Read, 14433721 Write, 288270 Other = 14721991 Total
Read 0b Written 110.12Gb Total transferred 110.12Gb (469.84Mb/sec) <---- 60140.13 * 8k = 469.84
60140.13 Requests/sec executed <----重點(diǎn)1 IOPS
Test execution summary:
total time: 240.0015s
total number of events: 14433721
total time taken by event execution: 66.3879
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 2.05ms
approx. 95 percentile: 0.01ms <----重點(diǎn)2每個(gè)請(qǐng)求的響應(yīng)時(shí)間
Threads fairness:
events (avg/stddev): 3608430.2500/38671.29
execution time (avg/stddev): 16.5970/0.16
另外一個(gè)虛擬機(jī)(VMware esx)的測(cè)試結(jié)果
[root@dbsrvb test]# sysbench --test=fileio --file-total-size=4G --file-num=2 --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=8K --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Extra file open flags: 0
2 files, 2Gb each
4Gb total file size
Block size 8Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random write test
Threads started!
FATAL: Failed to fsync file! file: -1667944680 errno = 9 ()
FATAL: Incorrect file discovered in request
(last message repeated 2 times)
Done.
Operations performed: 0 Read, 10503 Write, 208 Other = 10711 Total
Read 0b Written 82.055Mb Total transferred 82.055Mb (21.993Mb/sec)
2815.05 Requests/sec executed <----重點(diǎn)1 IOPS
Test execution summary:
total time: 3.7310s
total number of events: 10503
total time taken by event execution: 0.9682
per-request statistics:
min: 0.01ms
avg: 0.09ms
max: 17.76ms
approx. 95 percentile: 0.22ms <----重點(diǎn)2比上面的服務(wù)器要差一些
Threads fairness:
events (avg/stddev): 2625.7500/377.73
execution time (avg/stddev): 0.2421/0.02
另外一個(gè)虛擬機(jī)(筆記本上的VirtualBox)的測(cè)試結(jié)果
[root@node1 test]# sysbench --test=fileio --file-total-size=4G --file-num=2 --file-test-mode=rndwr --max-time=240 --max-requests=0 --file-block-size=8K --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Extra file open flags: 0
2 files, 2Gb each
4Gb total file size
Block size 8Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random write test
Threads started!
Time limit exceeded, exiting...
(last message repeated 3 times)
Done.
Operations performed: 0 Read, 635100 Write, 12701 Other = 647801 Total
Read 0b Written 4.8454Gb Total transferred 4.8454Gb (20.673Mb/sec)
2646.16 Requests/sec executed <--- Virtual Box的 IOPS比VMware稍微低一點(diǎn)
Test execution summary:
total time: 240.0086s
total number of events: 635100
total time taken by event execution: 2.7852
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 3.75ms
approx. 95 percentile: 0.01ms <---這個(gè)就比VMware快
Threads fairness:
events (avg/stddev): 158775.0000/3440.64
execution time (avg/stddev): 0.6963/0.02
如果測(cè)試硬件性能,要在物理服務(wù)器上進(jìn)行對(duì)比。
為了避免從內(nèi)存讀取數(shù)據(jù),測(cè)試文件要大于內(nèi)存的兩倍。
##Create Database
mysql‐u root‐ppassword‐e "CREATE DATABASE sysbench;"
##Create User
mysql‐u root‐ppassword‐e "CREATE USER 'sysbench'@'localhost' IDENTIFIED BY 'password';"
##Grant Access
mysql‐u root‐ppassword‐e "GRANT ALL PRIVILEGES ON *.* TO 'sysbench'@'localhost' IDENTIFIED BY 'password';"
或者
mysql> create database sysbench;
mysql> create user 'sysbench'@'%' identified by 'sysbench' ;
mysql> select host,user from mysql.user;
+-----------+-----------+
| host | user |
+-----------+-----------+
| % | sysbench |
| localhost | mysql.sys |
| localhost | root |
+-----------+-----------+
3 rows in set (0.00 sec)
mysql> grant all privileges on *.* to 'sysbench'@'%' ;
mysql> flush privileges;
數(shù)據(jù)庫(kù)環(huán)境準(zhǔn)備完畢后,準(zhǔn)備sysbench命令
sysbench --test=oltp --db-driver=mysql --oltp-table-size=1000000 \
--mysql-db=sysbench --mysql-user=sysbench --mysql-password=sysbench \
prepare
自動(dòng)產(chǎn)生的測(cè)試表的樣子
mysql> desc sbtest
-> ;
+-------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| k | int(10) unsigned | NO | MUL | 0 | |
| c | char(120) | NO | | | |
| pad | char(60) | NO | | | |
+-------+------------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
mysql>
mysql> select * from sbtest limit 5;
+----+---+---+----------------------------------------------------+
| id | k | c | pad |
+----+---+---+----------------------------------------------------+
| 1 | 0 | | qqqqqqqqqqwwwwwwwwwweeeeeeeeeerrrrrrrrrrtttttttttt |
| 2 | 0 | | qqqqqqqqqqwwwwwwwwwweeeeeeeeeerrrrrrrrrrtttttttttt |
| 3 | 0 | | qqqqqqqqqqwwwwwwwwwweeeeeeeeeerrrrrrrrrrtttttttttt |
| 4 | 0 | | qqqqqqqqqqwwwwwwwwwweeeeeeeeeerrrrrrrrrrtttttttttt |
| 5 | 0 | | qqqqqqqqqqwwwwwwwwwweeeeeeeeeerrrrrrrrrrtttttttttt |
+----+---+---+----------------------------------------------------+
5 rows in set (0.00 sec)
for each in 1 4 8 16 32 64; do \
sysbench --test=oltp --db-driver=mysql --oltp-table-size=10000000 \
--mysql-db=sysbench --mysql-user=sysbench --mysql-password=sysbench \
--max-time=240 --max-requests=0 --oltp-read-only --oltp-skip-trx \
--oltp-nontrxmode=select --num-threads=$each run; \
sleep 10; done
sysbench --test=oltp --db-driver=mysql --oltp-table-size=10000000 \
--mysql-db=sysbench --mysql-user=sysbench --mysql-password=sysbench \
--max-time=240 --max-requests=0 --oltp-read-only --oltp-skip-trx \
--oltp-nontrx-mode=select --num-threads=2 run;
Phoronix測(cè)試套件簡(jiǎn)稱pts,從官網(wǎng)http://phoronix-test-suite.com/?k=downloads下載安裝包 phoronix-test-suite-7.0.1.tar.gz
pts的安裝依賴php-cli等多個(gè)包
tar xvf phoronix-test-suite_6.2.2.tar.gz
cd phoronix-test-suite/
./install-sh
/usr/bin/phoronix-test-suite list-available-suites
/usr/bin/phoronix-test-suite list-available-tests
phoronix-test-suite info pts/disk
phoronix-test-suite install pts/iozon
phoronix-test-suite install pts/disk
pts/disk包括了fio iozone aio-stress等等多個(gè)工具,pts太過(guò)龐大,install時(shí)因?yàn)榫W(wǎng)速原因,耗時(shí)較長(zhǎng)。這里只使用一個(gè)iozone做個(gè)測(cè)試。
使用pts套件運(yùn)行iozone
[root@node1 ~]# phoronix-test-suite run pts/iozone-1.8.0
IOzone 3.405:
pts/iozone-1.8.0
Disk Test Configuration
1: 4Kb
2: 64Kb
3: 1MB
4: Test All Options
Record Size: 1
1: 512MB
2: 2GB
3: 4GB
4: 8GB
5: Test All Options
File Size: 4
1: Write Performance
2: Read Performance
3: Test All Options
Disk Test: 1
Phoronix Test Suite v6.6.0
System Information
Hardware:
Processor: Intel Core i7-3537U @ 2.49GHz (1 Core), Motherboard: Oracle VirtualBox v1.2, Chipset: Intel 440FX- 82441FX PMC, Memory: 4096MB, Disk: 72GB VBOX HDD, Graphics: InnoTek VirtualBox, Audio: Intel 82801AA AC 97 Audio, Network: Intel 82540EM Gigabit
Software:
OS: Oracle Linux Server 7.3, Kernel: 4.1.12-61.1.18.el7uek.x86_64 (x86_64), Compiler: GCC 4.8.5 20150623, File-System: xfs, System Layer: KVM VirtualBox
Would you like to save these test results (Y/n): y
Enter a name to save these results under: tmp
Enter a unique name to describe this test run / configuration: tmp
If desired, enter a new description below to better describe this result set / system configuration under test.
Press ENTER to proceed without changes.
Current Description: KVM VirtualBox testing on Oracle Linux Server 7.3 via the Phoronix Test Suite.
New Description:
IOzone 3.405:
pts/iozone-1.8.0 [Record Size: 4Kb - File Size: 8GB - Disk Test: Write Performance]
Test 1 of 1
Estimated Trial Run Count: 3
Estimated Time To Completion: 22 Minutes (04:14 CDT)
Started Run 1 @ 03:53:01
Started Run 2 @ 04:11:11
Started Run 3 @ 04:22:17 [Std. Dev: 108.27%]
Started Run 4 @ 04:26:15 [Std. Dev: 83.68%]
Started Run 5 @ 04:29:54 [Std. Dev: 69.61%]
Started Run 6 @ 04:33:32 [Std. Dev: 60.77%]
Test Results:
8.509765625
14.8359375
69.3681640625
74.802734375
74.82421875
76.93359375
Average: 53.21 MB/s
Do you want to view the results in your web browser (Y/n): n
Would you like to upload the results to OpenBenchmarking.org (Y/n): n
單獨(dú)運(yùn)行iozone
# find / -name iozone
/var/lib/phoronix-test-suite/installed-tests/pts/iozone-1.8.0/iozone3_405/src/current/iozone
/var/lib/phoronix-test-suite/installed-tests/pts/iozone-1.8.0/iozone
# cd /var/lib/phoronix-test-suite/installed-tests/pts/iozone-1.8.0/
# export LOG_FILE=1.log
# ./iozone -Ra -g 8G -i 0 -b iozone.xls
參考
http://phoronix-test-suite.com/documentation/phoronix-test-suite.html#GettingStarted
https://wiki.mikejung.biz/Phoronix_Test_Suite
官網(wǎng) http://iozone.org/
官方幫助文檔 IOzone_msword_98.doc
下載安裝包 [Stable tarball] iozone3_465.tar
安裝過(guò)程
150 mkdir test_iozone
151 mv iozone3_465.tar test_iozone/
152 cd test_iozone/
153 ls
154 tar -xf iozone3_465.tar
155 cd iozone3_465/src/current/
156 ls
157 make
158 uname -a
159 make linux-AMD64
160 yum provides cc
161 yum install -y gcc
162 make linux-AMD64
163 ll
164 ls -ort
165 date
166 iozone
167 ./iozone
168 ./iozone -h
169 ./iozone -Ra -g 8G -i 0 -b iozone.xls這個(gè)輸出到xls文件
運(yùn)行命令
./iozone -Ra -g 8G -i 0 這個(gè)輸出到屏幕
iozone產(chǎn)生的結(jié)果比較直觀地看到不同塊大小和不同文件大小對(duì)IO的影響。
apt‐get install make gcc
wget https://byte‐unixbench.googlecode.com/files/UnixBench6.1.3.tgz
tar zxvf UnixBench6.1.3.tgz
cd UnixBench
make
./Run ‐i 1
download UnixBench6.1.3.tgz from
https://code.google.com/archive/p/byte-unixbench/downloads
255 tar -xzf UnixBench6.1.3.tgz
256 ls
257 cd UnixBench
258 ls
259 make
260 ls -ort
261 ./Run -i 1
262 which perl
263 yum install -y perl
[root@v-yfb-cos72-sql05 UnixBench]#./Run -i 1
make all
make[1]: Entering directory `/root/UnixBench'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/root/UnixBench'
sh: 3dinfo: command not found
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
Sunnyvale, CA, USA
January 13, 2011 johantheghost at yahoo period com
......
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: v-yfb-cos72-sql05.novalocal: GNU/Linux
OS: GNU/Linux -- 3.10.0-327.el7.x86_64 -- #1 SMP Thu Nov 19 22:10:57 UTC 2015
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel Core Processor (Haswell, no TSX) (4600.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: Intel Core Processor (Haswell, no TSX) (4600.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
06:01:21 up 78 days, 3:34, 1 user, load average: 0.11, 0.04, 0.05; runlevel 3
------------------------------------------------------------------------
Benchmark Run: Thu May 04 2017 06:01:21 - 06:08:05
2 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 29114714.8 lps (10.0 s, 1 samples)
Double-Precision Whetstone 3660.1 MWIPS (9.8 s, 1 samples)
Execl Throughput 3227.4 lps (29.1 s, 1 samples)
File Copy 1024 bufsize 2000 maxblocks 962272.0 KBps (30.0 s, 1 samples)
File Copy 256 bufsize 500 maxblocks 256736.0 KBps (30.0 s, 1 samples)
File Copy 4096 bufsize 8000 maxblocks 2537028.0 KBps (30.0 s, 1 samples)
Pipe Throughput 1282585.0 lps (10.0 s, 1 samples)
Pipe-based Context Switching 284899.6 lps (10.0 s, 1 samples)
Process Creation 9563.0 lps (30.0 s, 1 samples)
Shell Scripts (1 concurrent) 6315.2 lpm (60.0 s, 1 samples)
Shell Scripts (8 concurrent) 1360.1 lpm (60.0 s, 1 samples)
System Call Overhead 2215239.6 lps (10.0 s, 1 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 29114714.8 2494.8
Double-Precision Whetstone 55.0 3660.1 665.5
Execl Throughput 43.0 3227.4 750.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 962272.0 2430.0
File Copy 256 bufsize 500 maxblocks 1655.0 256736.0 1551.3
File Copy 4096 bufsize 8000 maxblocks 5800.0 2537028.0 4374.2
Pipe Throughput 12440.0 1282585.0 1031.0
Pipe-based Context Switching 4000.0 284899.6 712.2
Process Creation 126.0 9563.0 759.0
Shell Scripts (1 concurrent) 42.4 6315.2 1489.4
Shell Scripts (8 concurrent) 6.0 1360.1 2266.8
System Call Overhead 15000.0 2215239.6 1476.8
========
System Benchmarks Index Score 1400.8
------------------------------------------------------------------------
Benchmark Run: Thu May 04 2017 06:08:05 - 06:14:49
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables 58393583.7 lps (10.0 s, 1 samples)
Double-Precision Whetstone 7356.6 MWIPS (9.8 s, 1 samples)
Execl Throughput 7037.2 lps (29.9 s, 1 samples)
File Copy 1024 bufsize 2000 maxblocks 1368114.0 KBps (30.0 s, 1 samples)
File Copy 256 bufsize 500 maxblocks 390873.0 KBps (30.0 s, 1 samples)
File Copy 4096 bufsize 8000 maxblocks 3596554.0 KBps (30.0 s, 1 samples)
Pipe Throughput 2688283.4 lps (10.0 s, 1 samples)
Pipe-based Context Switching 572723.9 lps (10.0 s, 1 samples)
Process Creation 22877.0 lps (30.0 s, 1 samples)
Shell Scripts (1 concurrent) 9545.3 lpm (60.0 s, 1 samples)
Shell Scripts (8 concurrent) 1391.3 lpm (60.0 s, 1 samples)
System Call Overhead 3284659.7 lps (10.0 s, 1 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 58393583.7 5003.7
Double-Precision Whetstone 55.0 7356.6 1337.6
Execl Throughput 43.0 7037.2 1636.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 1368114.0 3454.8
File Copy 256 bufsize 500 maxblocks 1655.0 390873.0 2361.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 3596554.0 6201.0
Pipe Throughput 12440.0 2688283.4 2161.0
Pipe-based Context Switching 4000.0 572723.9 1431.8
Process Creation 126.0 22877.0 1815.6
Shell Scripts (1 concurrent) 42.4 9545.3 2251.2
Shell Scripts (8 concurrent) 6.0 1391.3 2318.8
System Call Overhead 15000.0 3284659.7 2189.8
========
System Benchmarks Index Score 2394.8
[root@v-yfb-cos72-sql05 UnixBench]#
[root@node1 UnixBench]# ./Run -i 1
make all
make[1]: Entering directory `/root/UnixBench'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/root/UnixBench'
sh: 3dinfo: command not found
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
&n
網(wǎng)站題目:如何進(jìn)行磁盤(pán)的I/O測(cè)試
分享網(wǎng)址:http://www.chinadenli.net/article14/pejsge.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、域名注冊(cè)、網(wǎng)站收錄、服務(wù)器托管、建站公司、網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)