Virtual machine CPU Competition mechanism in Hyper-V 3

Source: Internet
Author: User
Tags resource

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.