UnixBench 测试linux云服务器的性能

UnixBench在Centos下的安装
#需要事先安装gcc和time,如果系统中有Perl,需要安装perl-Time-HiRes。用yum install安装

wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz

tar -zxvf UnixBench5.1.3.tgz
cd unixbench
make
./Run

Ucloud 3天试用云主机 UnixBench 测试
 
[root@10-6-14-18 UnixBench]# ./Run 
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


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

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

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

2 x Execl Throughput  1 2 3

2 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

2 x File Copy 256 bufsize 500 maxblocks  1 2 3

2 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

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

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

2 x Process Creation  1 2 3

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

2 x Shell Scripts (1 concurrent)  1 2 3

2 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: 10-6-14-18: GNU/Linux
   OS: GNU/Linux -- 2.6.32-358.23.2.el6.centos.plus.x86_64 -- #1 SMP Thu Oct 17 00:31:29 UTC 2013
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: QEMU Virtual CPU version (cpu64-rhel6) (5000.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET
   CPU 1: QEMU Virtual CPU version (cpu64-rhel6) (5000.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET
   08:53:03 up 0 min,  1 user,  load average: 0.07, 0.02, 0.00; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Wed Nov 13 2013 08:53:03 - 09:21:16
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       26803216.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2678.1 MWIPS (9.9 s, 7 samples)
Execl Throughput                               2947.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        884198.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          246655.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1888737.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1922251.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 297272.3 lps   (10.0 s, 7 samples)
Process Creation                               7216.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5379.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1202.1 lpm   (60.0 s, 2 samples)
System Call Overhead                        3314276.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   26803216.9   2296.8
Double-Precision Whetstone                       55.0       2678.1    486.9
Execl Throughput                                 43.0       2947.6    685.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     884198.5   2232.8
File Copy 256 bufsize 500 maxblocks            1655.0     246655.4   1490.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    1888737.5   3256.4
Pipe Throughput                               12440.0    1922251.3   1545.2
Pipe-based Context Switching                   4000.0     297272.3    743.2
Process Creation                                126.0       7216.4    572.7
Shell Scripts (1 concurrent)                     42.4       5379.6   1268.8
Shell Scripts (8 concurrent)                      6.0       1202.1   2003.6
System Call Overhead                          15000.0    3314276.1   2209.5
                                                                   ========
System Benchmarks Index Score                                        1330.2

------------------------------------------------------------------------
Benchmark Run: Wed Nov 13 2013 09:21:16 - 09:49:31
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       53457038.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5354.9 MWIPS (10.0 s, 7 samples)
Execl Throughput                               7629.7 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1007526.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          267395.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2635098.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                             3784546.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 594677.6 lps   (10.0 s, 7 samples)
Process Creation                              22359.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   9146.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1224.2 lpm   (60.0 s, 2 samples)
System Call Overhead                        4593809.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   53457038.0   4580.7
Double-Precision Whetstone                       55.0       5354.9    973.6
Execl Throughput                                 43.0       7629.7   1774.3
File Copy 1024 bufsize 2000 maxblocks          3960.0    1007526.7   2544.3
File Copy 256 bufsize 500 maxblocks            1655.0     267395.8   1615.7
File Copy 4096 bufsize 8000 maxblocks          5800.0    2635098.1   4543.3
Pipe Throughput                               12440.0    3784546.9   3042.2
Pipe-based Context Switching                   4000.0     594677.6   1486.7
Process Creation                                126.0      22359.1   1774.5
Shell Scripts (1 concurrent)                     42.4       9146.3   2157.1
Shell Scripts (8 concurrent)                      6.0       1224.2   2040.3
System Call Overhead                          15000.0    4593809.0   3062.5
                                                                   ========
System Benchmarks Index Score                                        2240.4

[root@10-6-14-18 UnixBench]#
蓝汛云主机
=============
配置
——————–
内存:512m cpu: X5690 单核
[root@bjnginxpro UnixBench]# cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 3458.019
cache size	: 12288 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush mmx fxsr sse sse2 syscall lm up rep_good unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips	: 6916.03
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

[root@bjnginxpro UnixBench]# free -m
             total       used       free     shared    buffers     cached
Mem:           234        229          5          0         50        110
-/+ buffers/cache:         68        166
Swap:         2015          0       2015
[root@bjnginxpro UnixBench]#
评分
———————
[root@bjnginxpro UnixBench]# ./Run 
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


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

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: bjnginxpro: GNU/Linux
   OS: GNU/Linux -- 2.6.32-358.18.1.el6.x86_64 -- #1 SMP Wed Aug 28 17:19:38 UTC 2013
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU X5690 @ 3.47GHz (6916.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET
   19:51:12 up 35 days, 22:16,  1 user,  load average: 0.00, 0.00, 0.00; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Tue Nov 12 2013 19:51:12 - 20:18:41
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       30899240.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4149.0 MWIPS (7.1 s, 7 samples)
Execl Throughput                               5516.1 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1258264.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          349326.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1900320.9 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2583286.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 432771.0 lps   (10.0 s, 7 samples)
Process Creation                              16571.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6610.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    862.2 lpm   (60.0 s, 2 samples)
System Call Overhead                        4891289.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   30899240.3   2647.7
Double-Precision Whetstone                       55.0       4149.0    754.4
Execl Throughput                                 43.0       5516.1   1282.8
File Copy 1024 bufsize 2000 maxblocks          3960.0    1258264.0   3177.4
File Copy 256 bufsize 500 maxblocks            1655.0     349326.4   2110.7
File Copy 4096 bufsize 8000 maxblocks          5800.0    1900320.9   3276.4
Pipe Throughput                               12440.0    2583286.9   2076.6
Pipe-based Context Switching                   4000.0     432771.0   1081.9
Process Creation                                126.0      16571.9   1315.2
Shell Scripts (1 concurrent)                     42.4       6610.8   1559.1
Shell Scripts (8 concurrent)                      6.0        862.2   1436.9
System Call Overhead                          15000.0    4891289.1   3260.9
                                                                   ========
System Benchmarks Index Score                                        1807.4
打赏

发表评论

电子邮件地址不会被公开。 必填项已用*标注