3種VM的效能比較(VMWare VBox Hyper-V) - 3C

By Tom
at 2012-10-05T06:19
at 2012-10-05T06:19
Table of Contents
我在之前有做過了一個關於Hyper-V虛擬伺服器的效能測試
(不過好像太久以前的已經被砍了)
發現Hyper-V的虛擬化效能非常好
於是這次我就想來測測看一般最常用的三種虛擬機器軟體 效能誰勝出
本次測試主要是"CPU運算"部分
單核心效能使用Super Pi測試
多核心效能使用Fritz Chess Benchmark測試
至於I/O 目前還沒有想到適當的方法測
所以就沒打算測了
測試平台:
硬體部分:
CPU:Intel Core i7 3930K
RAM:創見JET DDR3 1333 4G*8
主機板:Rampage IV Extreme
主硬碟:Hitachi HDS721010CLA332
軟體部分:
Host OS:Windows Server 2012
Hyper-V:Server 2012內建
VMWare:VMware workstation 9.0
VirtualBox:VirtualBox-4.2.0
測試用Guest OS:Windows Server 2008 R2
測試用軟體:
CPU-Z 1.60.1
Super Pi mod 1.5 XS
Fritz Chess Benchmark 4.3.2.0
在測試 VMWare VirtualBox 時
是在Windows Server 2012 without Hyper-V 模式下運行的(有興趣請Google)
每次測試只單獨裝有一種VM軟體
由於VMWare最多只能支援到8個虛擬邏輯處理器
為了公平起見
在Windows 安裝測試時 三種都是設6個邏輯處理器 來進行測試
關於Windows安裝時間的測試 是在分割完硬碟後 按下"下一步"起
一直到第一次重啟 算是Part I 因為這樣時間相對好抓
而且因為這部分主要是展開Windows檔案和準備工作
即使硬體配備不同 也是做相同的事
比較能夠比較出個虛擬機器的效能
安裝Windows Part II 從"第一次重啟" 到 "完全進入Windows"
這部分 相對時間會比較沒參考性 因為這部分包含了驅動程式安裝
比較會受到硬體的影響
1.VMWare
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/VMWare01.png
VM的介面
http://www.nctucs.org/VM/VMWare02.png
安裝Windows的時間:
Part I : 290(秒)
Part II: 261(秒)
總共:551(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/VMWare03.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.203s 2M 22.573s
Fritz Chess Benchmark 6線程是13246(27.60倍)
http://www.nctucs.org/VM/VMWare04.png
接下來改成8個邏輯處理器
http://www.nctucs.org/VM/VMWare05.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.187s 2M 沒有進步 還略多 所以還是之前的數字
Fritz Chess Benchmark 8線程是14858(30.96倍)
http://www.nctucs.org/VM/VMWare06.png
2.VirtualBox
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/VBox01.png
VM的介面
http://www.nctucs.org/VM/VBox02.png
安裝Windows的時間:
Part I : 297(秒)
Part II: 257(秒)
總共:554(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/VBox03.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 11.031s 2M 24.969s
Fritz Chess Benchmark 6線程是14374(29.95倍)
http://www.nctucs.org/VM/VBox04.png
接下來改成12個邏輯處理器
http://www.nctucs.org/VM/VBox05.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 沒有進步 2M 24.938s
Fritz Chess Benchmark 12線程是17156(35.74倍)
http://www.nctucs.org/VM/VBox06.png
3.Hyper-V
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/HyperV01.png
安裝Windows的時間:
Part I : 223(秒)
Part II: 330(秒)
總共:553(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/HyperV03.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.000s 2M 22.453s
Fritz Chess Benchmark 6線程是14690(30.61倍)
http://www.nctucs.org/VM/HyperV04.png
接下來改成12個邏輯處理器
http://www.nctucs.org/VM/HyperV05.png
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 沒有進步 2M 沒有進步
Fritz Chess Benchmark 12線程是18592(38.74倍)
http://www.nctucs.org/VM/HyperV06.png
4.最後是對照組 實體機的效能測試結果
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 09.907s 2M 22.018s
Fritz Chess Benchmark 12線程是18685(38.93倍)
http://www.nctucs.org/VM/HOST.png
比較 6邏輯處理器下
=========================================================
VMWARE VBox Hyper-V
=========================================================
安裝Windows PartI 290s 297s 223s
安裝Windows PartII 261s 257s 330s
Super Pi 1M 10.203s 11.031s 10.000s
Super Pi 2M 22.573s 24.969s 22.453s
Fritz Chess Benchmark 13246 14374 14858
=========================================================
比較 最高極限(括弧中為邏輯處理器數)
=========================================================
VMWARE(8) VBox(12) Hyper-V(12)
=========================================================
Super Pi 1M 10.187s 11.031s 10.000s
Super Pi 2M 22.573s 24.938s 22.453s
Fritz Chess Benchmark 14858 17156 18592
=========================================================
比較 最高極限和實體機的差距(括弧中為邏輯處理器數)
=========================================================
VMWARE(8) VBox(12) Hyper-V(12)
=========================================================
Super Pi 1M +0.280s +1.124s +0.093s
Super Pi 2M +0.555s +2.920s +0.435s
Fritz Chess Benchmark -3827 -1529 -93
=========================================================
結論:除了在Windows安裝Part II部分外 Hyper-V 幾乎是完勝
甚至可以很接近實體機的性能
另外在VMWare和VirtualBox比較的部分 VMWare可惜了 最高只能8邏輯處理器
但是還是能稍微看出 VMWare似乎在單核心效能上比VirtualBox略好
之後在Windows 8將內建Hyper-V 勢必會影響到另2家虛擬機器的市場
不過這篇的測試點是在"Windows下虛擬Windows"
所以由微軟本家出的Hyper-V效能會最高 這樣的結果 並不會太意外
如果是其他的系統 想必Hyper-V就不會這麼的有利了
非Windows系統光是驅動程式就很麻煩(Hyper-V下裝FreeBSD的經驗)
--
(不過好像太久以前的已經被砍了)
發現Hyper-V的虛擬化效能非常好
於是這次我就想來測測看一般最常用的三種虛擬機器軟體 效能誰勝出
本次測試主要是"CPU運算"部分
單核心效能使用Super Pi測試
多核心效能使用Fritz Chess Benchmark測試
至於I/O 目前還沒有想到適當的方法測
所以就沒打算測了
測試平台:
硬體部分:
CPU:Intel Core i7 3930K
RAM:創見JET DDR3 1333 4G*8
主機板:Rampage IV Extreme
主硬碟:Hitachi HDS721010CLA332
軟體部分:
Host OS:Windows Server 2012
Hyper-V:Server 2012內建
VMWare:VMware workstation 9.0
VirtualBox:VirtualBox-4.2.0
測試用Guest OS:Windows Server 2008 R2
測試用軟體:
CPU-Z 1.60.1
Super Pi mod 1.5 XS
Fritz Chess Benchmark 4.3.2.0
在測試 VMWare VirtualBox 時
是在Windows Server 2012 without Hyper-V 模式下運行的(有興趣請Google)
每次測試只單獨裝有一種VM軟體
由於VMWare最多只能支援到8個虛擬邏輯處理器
為了公平起見
在Windows 安裝測試時 三種都是設6個邏輯處理器 來進行測試
關於Windows安裝時間的測試 是在分割完硬碟後 按下"下一步"起
一直到第一次重啟 算是Part I 因為這樣時間相對好抓
而且因為這部分主要是展開Windows檔案和準備工作
即使硬體配備不同 也是做相同的事
比較能夠比較出個虛擬機器的效能
安裝Windows Part II 從"第一次重啟" 到 "完全進入Windows"
這部分 相對時間會比較沒參考性 因為這部分包含了驅動程式安裝
比較會受到硬體的影響
1.VMWare
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/VMWare01.png

VM的介面
http://www.nctucs.org/VM/VMWare02.png

安裝Windows的時間:
Part I : 290(秒)
Part II: 261(秒)
總共:551(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/VMWare03.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.203s 2M 22.573s
Fritz Chess Benchmark 6線程是13246(27.60倍)
http://www.nctucs.org/VM/VMWare04.png

接下來改成8個邏輯處理器
http://www.nctucs.org/VM/VMWare05.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.187s 2M 沒有進步 還略多 所以還是之前的數字
Fritz Chess Benchmark 8線程是14858(30.96倍)
http://www.nctucs.org/VM/VMWare06.png

2.VirtualBox
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/VBox01.png

VM的介面
http://www.nctucs.org/VM/VBox02.png

安裝Windows的時間:
Part I : 297(秒)
Part II: 257(秒)
總共:554(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/VBox03.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 11.031s 2M 24.969s
Fritz Chess Benchmark 6線程是14374(29.95倍)
http://www.nctucs.org/VM/VBox04.png

接下來改成12個邏輯處理器
http://www.nctucs.org/VM/VBox05.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 沒有進步 2M 24.938s
Fritz Chess Benchmark 12線程是17156(35.74倍)
http://www.nctucs.org/VM/VBox06.png

3.Hyper-V
設定狀況 6個邏輯處理器 8G記憶體 虛擬硬碟127G
http://www.nctucs.org/VM/HyperV01.png

安裝Windows的時間:
Part I : 223(秒)
Part II: 330(秒)
總共:553(秒)
虛擬機下CPUZ畫面
http://www.nctucs.org/VM/HyperV03.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 10.000s 2M 22.453s
Fritz Chess Benchmark 6線程是14690(30.61倍)
http://www.nctucs.org/VM/HyperV04.png

接下來改成12個邏輯處理器
http://www.nctucs.org/VM/HyperV05.png

Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 沒有進步 2M 沒有進步
Fritz Chess Benchmark 12線程是18592(38.74倍)
http://www.nctucs.org/VM/HyperV06.png

4.最後是對照組 實體機的效能測試結果
Super Pi 與 Fritz Chess Benchmark測試
Super Pi 1M 09.907s 2M 22.018s
Fritz Chess Benchmark 12線程是18685(38.93倍)
http://www.nctucs.org/VM/HOST.png

比較 6邏輯處理器下
=========================================================
VMWARE VBox Hyper-V
=========================================================
安裝Windows PartI 290s 297s 223s
安裝Windows PartII 261s 257s 330s
Super Pi 1M 10.203s 11.031s 10.000s
Super Pi 2M 22.573s 24.969s 22.453s
Fritz Chess Benchmark 13246 14374 14858
=========================================================
比較 最高極限(括弧中為邏輯處理器數)
=========================================================
VMWARE(8) VBox(12) Hyper-V(12)
=========================================================
Super Pi 1M 10.187s 11.031s 10.000s
Super Pi 2M 22.573s 24.938s 22.453s
Fritz Chess Benchmark 14858 17156 18592
=========================================================
比較 最高極限和實體機的差距(括弧中為邏輯處理器數)
=========================================================
VMWARE(8) VBox(12) Hyper-V(12)
=========================================================
Super Pi 1M +0.280s +1.124s +0.093s
Super Pi 2M +0.555s +2.920s +0.435s
Fritz Chess Benchmark -3827 -1529 -93
=========================================================
結論:除了在Windows安裝Part II部分外 Hyper-V 幾乎是完勝
甚至可以很接近實體機的性能
另外在VMWare和VirtualBox比較的部分 VMWare可惜了 最高只能8邏輯處理器
但是還是能稍微看出 VMWare似乎在單核心效能上比VirtualBox略好
之後在Windows 8將內建Hyper-V 勢必會影響到另2家虛擬機器的市場
不過這篇的測試點是在"Windows下虛擬Windows"
所以由微軟本家出的Hyper-V效能會最高 這樣的結果 並不會太意外
如果是其他的系統 想必Hyper-V就不會這麼的有利了
非Windows系統光是驅動程式就很麻煩(Hyper-V下裝FreeBSD的經驗)
--
Tags:
3C
All Comments

By David
at 2012-10-06T13:40
at 2012-10-06T13:40

By Ina
at 2012-10-10T04:31
at 2012-10-10T04:31

By Audriana
at 2012-10-14T02:45
at 2012-10-14T02:45

By Daph Bay
at 2012-10-14T10:16
at 2012-10-14T10:16

By Lydia
at 2012-10-16T22:37
at 2012-10-16T22:37

By Isla
at 2012-10-17T17:43
at 2012-10-17T17:43

By Jacob
at 2012-10-19T16:00
at 2012-10-19T16:00

By Belly
at 2012-10-21T09:33
at 2012-10-21T09:33

By Brianna
at 2012-10-25T12:35
at 2012-10-25T12:35

By Iris
at 2012-10-27T08:04
at 2012-10-27T08:04

By Connor
at 2012-10-27T11:57
at 2012-10-27T11:57

By Margaret
at 2012-10-31T15:50
at 2012-10-31T15:50

By Margaret
at 2012-11-04T08:32
at 2012-11-04T08:32

By Ingrid
at 2012-11-06T01:40
at 2012-11-06T01:40

By Isabella
at 2012-11-08T05:19
at 2012-11-08T05:19

By Eden
at 2012-11-10T09:37
at 2012-11-10T09:37

By Charlie
at 2012-11-14T07:05
at 2012-11-14T07:05

By Edith
at 2012-11-17T09:13
at 2012-11-17T09:13

By Frederic
at 2012-11-21T02:35
at 2012-11-21T02:35

By Frederic
at 2012-11-24T00:33
at 2012-11-24T00:33

By Freda
at 2012-11-28T13:33
at 2012-11-28T13:33

By Mia
at 2012-12-03T00:27
at 2012-12-03T00:27

By Oliver
at 2012-12-03T17:59
at 2012-12-03T17:59

By Quanna
at 2012-12-07T18:21
at 2012-12-07T18:21

By Lauren
at 2012-12-08T18:03
at 2012-12-08T18:03

By Dinah
at 2012-12-12T14:25
at 2012-12-12T14:25

By Hedy
at 2012-12-16T12:01
at 2012-12-16T12:01

By Ursula
at 2012-12-17T15:32
at 2012-12-17T15:32

By Lydia
at 2012-12-20T04:27
at 2012-12-20T04:27

By Ingrid
at 2012-12-24T11:21
at 2012-12-24T11:21

By Ula
at 2012-12-28T14:22
at 2012-12-28T14:22

By Sarah
at 2013-01-01T22:13
at 2013-01-01T22:13
Related Posts
微軟證實已經開始開發Windows 9

By Hedda
at 2012-10-05T03:36
at 2012-10-05T03:36
昨天在朋友的FB看到

By Gilbert
at 2012-10-05T01:11
at 2012-10-05T01:11
14k LOL WOW

By Donna
at 2012-10-05T01:00
at 2012-10-05T01:00
BenQ 推出 XL2411T 遊戲螢幕

By Dinah
at 2012-10-04T23:42
at 2012-10-04T23:42
10K內文書牧場機升級

By Charlie
at 2012-10-04T23:28
at 2012-10-04T23:28