CPU to use for VM (kvm64 vs host type)?

alexc

Renowned Member
Apr 13, 2015
125
4
83
As I create new VM for web site I'm in doubt if I should use kvm64 vs host type of CPU for VM.

Choose host should looks like can give me more real cpu power (but I limited by real physical cores number), while kvm64 can be set to as high as 128, and (as I can imagine) will share the same processing power but divide in into smaller pieces.

As my VM will serve web load then more smaller CPU cores appears to be more useful (like to serve more requests per seconds in parallel), but I'm in doubt.

P.S. The load is general PHP site with MySQL backend, nginx and apache behind it (no way to change this), and https enabled (so h/w acceleration by CPU is useful).
 
Hi,
cpu type host make sense only if your processes use cpu-flags which are not in kvm64 - afaik like openvpn can use aes.

To use more cores with kvm64 than your system have (incl. HT) are an bad idea - your VM will be super slow!

If you have an cluster live-mirgation with cpu-host will work only with identical CPUs! (and perhaps identical bios-settings)

Udo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!