How does KVM CPU work?

Novacha

Content Contributer
It was my understanding (at least from looking at some general posts) that on a KVM virtualised system, you can utilize all the CPU allocated to you. Is this true? For instance, on OpenVZ in a standard oversold environment you would not be allowed to usually have a load average of above 1.0. On KVM it could be whatever you wanted, right?

This would make KVM ideal for build and rendering servers, wouldn't it?
 

elohkcalb

New Member
Hmm... where did you get that idea from?

In general CPU resources are limited and therefore shared by all virtualized containers, by default. So unless the provider specifically mention that it's a dedicated resource, otherwise I'd take it as shared.
 

wlanboy

Content Contributer
On creating a KVM vps you can allocate virtual CPUs to it.


Each guest CPU (vcpu) corresponds to a QEMU thread.
Because a vcpu is a thread you can apply resource limits to it.
There is an additional parameter "cpuset" allowing you to set which real CPUs should be used for thread creation.
 

Novacha

Content Contributer
On creating a KVM vps you can allocate virtual CPUs to it.


Each guest CPU (vcpu) corresponds to a QEMU thread.
Because a vcpu is a thread you can apply resource limits to it.
There is an additional parameter "cpuset" allowing you to set which real CPUs should be used for thread creation.
So are you saying that it depends on the provider or is always enabled on default KVM systems? 
 

wlanboy

Content Contributer
Per default KVM uses vcpu.

And yes it always depends on the provider, because it is his/her dedicated server.
 
Top