转载

unixbench测试Vps

1.unixbench是什么?
unixbench是一套unix系统基准测试套件。unixbench的设计目标是为类unix系统提供一套基本的指标,所以有许多项目测试系统各方面的性能。各项的测试有得分,然后有一个综合的得分,这样可以很方便的通过分数去比较。
unixbench也包含一些非常简单的2D和3D图形测试。
unixbench也支持多CPU系统的测试,默认的行为是测试两次,第一次是一个进程的测试,第二次是N份测试,N等于CPU个数。这样的设计是为了以下目标:
1)测试系统的单任务性能
2)测试系统的多任务性能
3)测试系统并行处理的能力
unixbench一个基于系统的基准测试工具,不单纯是CPU 内存 或者磁盘测试工具。测试结果不仅仅取决于硬件,也取决于系统、开发库、甚至是编译器。
2.安装依赖包

yum
-y install perl perl-Time-HiRes
3.注释掉Makefile中如下(如不测试图形)
#GRAPHIC_TESTS = defined

4.执行unixbench

[root@oracle unixbench-5.1.2]# ./Run

make all

make[1]: Entering directory `/root/unixbench-5.1.2'

Checking distribution of files

./pgms  exists

./src  exists

./testdir  exists

./tmp  exists

./results  exists

make[1]: Leaving directory `/root/unixbench-5.1.2'

sh: 3dinfo: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #

   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #

   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######

   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #

   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #

    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,

                                      Sunnyvale, CA, USA

   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================

   BYTE UNIX Benchmarks (Version 5.1.2)

   System: oracle: GNU/Linux

   OS: GNU/Linux -- 2.6.32-431.el6.x86_64 -- #1 SMP Fri Nov 22 03:15:09 UTC 2013

   Machine: x86_64 (x86_64)

   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")

   CPU 0: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (4600.0 bogomips)

          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET

   CPU 1: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (4600.0 bogomips)

          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET

   CPU 2: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (4600.0 bogomips)

          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET

   CPU 3: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (4600.0 bogomips)

          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET

   08:21:32 up 22:261 user,  load average: 0.01, 0.02, 0.00; runlevel 3

------------------------------------------------------------------------

Benchmark Run: Wed Apr 20 2016 08:21:32 - 08:49:45

4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       29973756.0 lps   (10.0 s, 7 samples)

Double-Precision Whetstone                     3214.1 MWIPS (10.0 s, 7 samples)

Execl Throughput                               3766.1 lps   (29.9 s, 2 samples)

File Copy 1024 bufsize 2000 maxblocks        915259.2 KBps  (30.0 s, 2 samples)

File Copy 256 bufsize 500 maxblocks          262994.8 KBps  (30.0 s, 2 samples)

File Copy 4096 bufsize 8000 maxblocks       1335157.9 KBps  (30.0 s, 2 samples)

Pipe Throughput                             2113988.0 lps   (10.0 s, 7 samples)

Pipe-based Context Switching                  53791.9 lps   (10.0 s, 7 samples)

Process Creation                               8258.4 lps   (30.0 s, 2 samples)

Shell Scripts (1 concurrent)                   6365.7 lpm   (60.0 s, 2 samples)

Shell Scripts (8 concurrent)                   2228.2 lpm   (60.0 s, 2 samples)

System Call Overhead                        3634805.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX

Dhrystone 2 using register variables         116700.0   29973756.0   2568.4

Double-Precision Whetstone                       55.0       3214.1    584.4

Execl Throughput                                 43.0       3766.1    875.8

File Copy 1024 bufsize 2000 maxblocks          3960.0     915259.2   2311.3

File Copy 256 bufsize 500 maxblocks            1655.0     262994.8   1589.1

File Copy 4096 bufsize 8000 maxblocks          5800.0    1335157.9   2302.0

Pipe Throughput                               12440.0    2113988.0   1699.3

Pipe-based Context Switching                   4000.0      53791.9    134.5

Process Creation                                126.0       8258.4    655.4

Shell Scripts (1 concurrent)                     42.4       6365.7   1501.3

Shell Scripts (8 concurrent)                      6.0       2228.2   3713.7

System Call Overhead                          15000.0    3634805.8   2423.2

                                                                   ========

System Benchmarks Index Score                                        1296.2

------------------------------------------------------------------------

Benchmark Run: Wed Apr 20 2016 08:49:45 - 09:17:58

4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables      116139760.9 lps   (10.0 s, 7 samples)

Double-Precision Whetstone                    12471.8 MWIPS (9.9 s, 7 samples)

Execl Throughput                              15226.8 lps   (29.9 s, 2 samples)

File Copy 1024 bufsize 2000 maxblocks        820350.6 KBps  (30.0 s, 2 samples)

File Copy 256 bufsize 500 maxblocks          220647.2 KBps  (30.0 s, 2 samples)

File Copy 4096 bufsize 8000 maxblocks       2454103.4 KBps  (30.0 s, 2 samples)

Pipe Throughput                             8132853.1 lps   (10.0 s, 7 samples)

Pipe-based Context Switching                1338315.2 lps   (10.0 s, 7 samples)

Process Creation                              40297.1 lps   (30.0 s, 2 samples)

Shell Scripts (1 concurrent)                  19227.0 lpm   (60.0 s, 2 samples)

Shell Scripts (8 concurrent)                   2647.9 lpm   (60.0 s, 2 samples)

System Call Overhead                        7184599.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX

Dhrystone 2 using register variables         116700.0  116139760.9   9952.0

Double-Precision Whetstone                       55.0      12471.8   2267.6

Execl Throughput                                 43.0      15226.8   3541.1

File Copy 1024 bufsize 2000 maxblocks          3960.0     820350.6   2071.6

File Copy 256 bufsize 500 maxblocks            1655.0     220647.2   1333.2

File Copy 4096 bufsize 8000 maxblocks          5800.0    2454103.4   4231.2

Pipe Throughput                               12440.0    8132853.1   6537.7

Pipe-based Context Switching                   4000.0    1338315.2   3345.8

Process Creation                                126.0      40297.1   3198.2

Shell Scripts (1 concurrent)                     42.4      19227.0   4534.7

Shell Scripts (8 concurrent)                      6.0       2647.9   4413.2

System Call Overhead                          15000.0    7184599.1   4789.7

                                                                   ========

System Benchmarks Index Score                                        3684.6


正文到此结束
Loading...