A virtual machine in the same host computer, when all or part of it is running, will justifiably compete for host CPU resources.
How to balance the resource utilization of host, Hyper-v3 gives three kinds of solutions:
1. CPU resources allocated to virtual machines (% of virtual machine retention)
2. Maximum CPU resources used by virtual machines (percent virtual machine limit)
3. Resource priority (relative weight)
In this example, 3 virtual machines are used with the name "Windows Server 2008 R2", "Windows Server 2003 R2", "Windows XP", respectively. As shown in the figure.
Figure
The first part of the CPU resources assigned to the virtual machine
The processor resources available to the virtual machine (all resources 100%) can be assigned by the administrator to the virtual machine for available CPU resources, that is, a portion of the CPU processing power is assigned to a specific virtual machine (expressed as a percentage).
The virtual machine retention option is available in the VM properties setting, which guarantees that the specified percentage will be provided to the virtual machine. This setting affects the number of virtual machines that can run at one time, if you specify more than one virtual machine, and the virtual machine uses more than 100% CPU resources, the virtual machines that do not exceed the physical CPU capacity can start normally when the virtual machine is started, and the virtual machines that exceed the physical CPU processing capacity will not start.
Default settings
After you create a virtual machine from the Virtual Machine Wizard, the virtual machine assigned by default is 1 Cpu,hyper-v 3 host hosts determine the maximum number of virtual processors that can be used by each VM, depending on the number of CPU cores (refer to the Windows 8 Server description). The default setting, "Virtual machine retention (%)" is 0, does not reserve resources for virtual machines, and gives virtual machines maximum computational power in case of processor number recognition. In practical applications, multiple CPU competition is the most common. If each CPU uses the maximum processing power, it will cause overall system performance degradation, and even the system crashes. Therefore, it is an effective method to limit the computing power of CPU.
Figure