| Version 12 (modified by rider, 15 years ago) (diff) | 
|---|
KVM vs Xen
【特性比較】
| 使用的虛擬化技術 | 優點 | 與 Kernel 整合性 | 與硬體相依性 | 背後老大 | |
| Xen |  ParaVirtualization Full Virtualization(需有 CPU 硬體支援)  | CPU 效能佳 |  Guest 於 2.6.23 整合進 Kernel 但Host Kernel 仍需自行 Patch  | 不一定要 Intel VT-x 或 AMD-V | 於2007年被 Citrix 併購 | 
| KVM | Full Virtualization(需有 CPU 硬體支援) | I/O 效能佳 | 2.6.20 已整合進 Kernel (2007/02) | 一定要有 Intel VT-x 或 AMD-V | Qumranet 於2008被 RedHat 併購 | 
- 註:Intel 的 VT-x 的指令集為 vmx,AMD 的指令集為 svm
- Xen 支援 VT-x、VT-i 和 SVM,KVM 則只支援 VT-x 和 SVM
 
 - 註:CPU 排程 - Xen 使用自己維護的 BVT(Borrowed Virtual Time)演算法,KVM 則使用 Linux Kernel 本身提供的 CPU 排程演算法
 
【效能比較】
[測試系統環境]
- 硬體規格:
 
| CPU | Intel® Core™2 Quad Processor Q6600 (8M Cache, 2.40 GHz, 1066 MHz FSB) | 
| Ram | 4GB | 
| NIC | RTL-8169 Gigabit Ethernet 10/100/1000 | 
| VGA | NVIDIA GeForce 9400 GT | 
| Disk | 160GB | 
- 軟體規格:
 
| OS | Debian Lenny 5.0.5 2.6.26-2(x86_64) | 
| Xen | 3.2.1 | 
| KVM | 72 | 
[測試案例]
- CPU 效能比較:
 
| Xen-PV | Xen-HVN | KVM | |
| VMmark | |||
| dbench | 
- Memory 效能比較:
 
| Xen-PV | Xen-HVN | KVM | |
| 還沒想到 | 
- Graphics 效能比較:
 
| Xen-PV | Xen-HVN | KVM | |
| CUDA | 
- I/O (Disk) 效能比較:
- 註:Xen 可選擇 file、tap:aio 和 xen4.0 最新 tap:tapdisk:aio 來設定 Guest disk
 
 
| Xen-PV | Xen-HVN | KVM | |
| bonnie++ | |||
| dbench | 
- I/O (Network) 效能比較:
 
| Xen-PV | Xen-HVN | KVM | |
| tbench | 
【總結】
- 綜合以上結果...........
 
【Reference】
Attachments (3)
- Migrating-from-UML-to-Xen-and-Kernel-Based-Virtual-Machines.pdf (1.3 MB) - added by rock 15 years ago.
 - Quantitative Comparison of Xen and KVM.pdf (178.4 KB) - added by rock 15 years ago.
 - Direct Access to Graphics Card Leveraging VT-d Technical Report.pdf (162.3 KB) - added by rock 15 years ago.
 
Download all attachments as: .zip
