Virtual Machine Performance --CPU(UnixBench)

Ubuntu install

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make gcc nfs-common postgresql-9.1 postgresql-contrib-9.1 mbw iperf

cd ~
wget http://www.iozone.org/src/current/iozone3_414.tar
wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
tar xvf iozone3_414.tar
tar zxvf UnixBench5.1.3.tgz

cd ~/iozone3_414/src/current
make

cd ~/UnixBench
make

此部分参看自:http://www.qyjohn.net/?p=2715




CentOS install


yum install gcc 

yum install time

yum install perl

yum install perf-Time-HiRes

cd ~

tar zxvf UnixBench5.1.3.tgz

cd ~/UnixBench
make



运行./Run

下面结果来自本地电脑上VMware创建的两台虚拟机,分别是Ubuntu系统和CentOS系统,

VMware

Ubuntu 

root@ubuntu:~/UnixBench# uname -r
3.2.0-24-generic
root@ubuntu:~/UnixBench# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 58
Stepping:              9
CPU MHz:               3192.939
BogoMIPS:              6385.87
Hypervisor vendor:     VMware
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
NUMA node0 CPU(s):     0


UnixBench检测结果

root@ubuntu:~/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: 1: 3dinfo: 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: ubuntu: GNU/Linux
   OS: GNU/Linux -- 3.2.0-24-generic -- #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (6385.9 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   19:45:09 up  4:28,  2 users,  load average: 0.20, 0.20, 0.14; runlevel 2


------------------------------------------------------------------------
Benchmark Run: Mon Aug 04 2014 19:45:09 - 20:13:18
1 CPU in system; running 1 parallel copy of tests


Dhrystone 2 using register variables       37515394.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4380.4 MWIPS (9.9 s, 7 samples)
Execl Throughput                               1901.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1300221.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          379882.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2522542.9 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2836363.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 389207.4 lps   (10.0 s, 7 samples)
Process Creation                              12480.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2919.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    328.8 lpm   (60.3 s, 2 samples)
System Call Overhead                        4885618.0 lps   (10.0 s, 7 samples)


System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   37515394.3   3214.7
Double-Precision Whetstone                       55.0       4380.4    796.4
Execl Throughput                                 43.0       1901.0    442.1
File Copy 1024 bufsize 2000 maxblocks          3960.0    1300221.0   3283.4
File Copy 256 bufsize 500 maxblocks            1655.0     379882.0   2295.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    2522542.9   4349.2
Pipe Throughput                               12440.0    2836363.9   2280.0
Pipe-based Context Switching                   4000.0     389207.4    973.0
Process Creation                                126.0      12480.5    990.5
Shell Scripts (1 concurrent)                     42.4       2919.0    688.5
Shell Scripts (8 concurrent)                      6.0        328.8    548.0
System Call Overhead                          15000.0    4885618.0   3257.1
                                                                   ========
System Benchmarks Index Score                                        1468.0

VMware

CentOS

[root@localhost UnixBench]# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 58
Stepping:              9
CPU MHz:               3192.859
BogoMIPS:              6385.71
Hypervisor vendor:     VMware
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
NUMA node0 CPU(s):     0
[root@localhost UnixBench]# uname -r
2.6.32-431.20.3.el6.x86_64


UnixBench测试结果

[root@localhost 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: localhost.localdomain: GNU/Linux
   OS: GNU/Linux -- 2.6.32-431.20.3.el6.x86_64 -- #1 SMP Thu Jun 19 21:14:45 UTC 2014
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (6385.7 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   20:41:58 up  4:47,  2 users,  load average: 0.07, 0.02, 0.00; runlevel 5


------------------------------------------------------------------------
Benchmark Run: Mon Aug 04 2014 20:41:58 - 21:10:06
1 CPU in system; running 1 parallel copy of tests


Dhrystone 2 using register variables       36342440.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3929.3 MWIPS (9.9 s, 7 samples)
Execl Throughput                               4314.1 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        742429.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          212395.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1892938.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1540215.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 305637.3 lps   (10.0 s, 7 samples)
Process Creation                              11857.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5649.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    741.0 lpm   (60.0 s, 2 samples)
System Call Overhead                        2694233.1 lps   (10.0 s, 7 samples)


System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   36342440.5   3114.2
Double-Precision Whetstone                       55.0       3929.3    714.4
Execl Throughput                                 43.0       4314.1   1003.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     742429.5   1874.8
File Copy 256 bufsize 500 maxblocks            1655.0     212395.9   1283.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    1892938.6   3263.7
Pipe Throughput                               12440.0    1540215.1   1238.1
Pipe-based Context Switching                   4000.0     305637.3    764.1
Process Creation                                126.0      11857.6    941.1
Shell Scripts (1 concurrent)                     42.4       5649.8   1332.5
Shell Scripts (8 concurrent)                      6.0        741.0   1235.0
System Call Overhead                          15000.0    2694233.1   1796.2
                                                                   ========
System Benchmarks Index Score                                        1376.1













评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值