Windows Server 2012 is late, and the latest Hyper-V 3 brings us more surprises, followed by three blog posts and common learning about the virtual machine CPU competition mechanism.
Part I: CPU resources allocated to virtual machines
Part Two: Limit the CPU utilization available to virtual machines
Part III: Contention for CPU resource priority
Part II limits the CPU utilization available to virtual machines
The processor resources available to the virtual machine (all resources 100%) can specify the CPU resources used by the virtual machines (expressed as percentages), that is, you can limit the CPU resources used by the virtual machines.
The virtual machine restrictions option is available in the Virtual machine properties setting, which guarantees the maximum CPU processing power that a virtual machine can use. The CPU resource used by the virtual machine exceeds the limit value, the CPU highest value is the set value (percent).
Default settings
When you create a new virtual machine, the default percentage for each virtual machine is 100, which means that each virtual machine can use the maximum CPU processing power.
The default setting has a fatal flaw, and when multiple virtual machines are running simultaneously and the virtual machine uses up to 100% CPU utilization, the system stops responding to downtime. For applications, this is a fatal flaw. Therefore, it is a good way to limit the maximum processing power of a virtual machine.
Figure
Virtual Machine CPU Resource Usage test
For example, in the same host computer:
L Virtual Machine (Windows Server 2008 R2) sets the virtual machine limit (percent) to 50%, the virtual machine can use up to 50% of CPU processor data processing power.