Method, device and physical machine for dynamically allocating CPU resources

A technology for dynamic allocation of CPU resources, applied in the computer field, can solve the problem of virtual machines competing for CPU resources, and achieve the effect of improving the overall utilization rate

Pending Publication Date: 2019-01-04
ALIBABA GRP HLDG LTD
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, the virtual ratio of the CPU resources of the physical machine is relatively high, and the overall utilization rate of the CPU resources is high, but there is competition for CPU resources among the virtual machines.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and physical machine for dynamically allocating CPU resources
  • Method, device and physical machine for dynamically allocating CPU resources
  • Method, device and physical machine for dynamically allocating CPU resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] In a cloud computing environment, it is necessary to allocate CPU resources in a physical machine to corresponding virtual machines. In this embodiment, the CPU resources of the virtual machine are represented by logical cores, and the resource allocation to the virtual machine is indirectly implemented by mapping multiple physical cores in the physical machine to the logical cores in a shared or exclusive manner, and in Under different working conditions, the number of shared cores and the number of exclusive cores can be automatically adjusted to achieve an optimal effect between CPU resource utilization and resource contention avoidance.

[0033] This embodiment provides a method for dynamically allocating CPU resources, such as figure 1 shown, including:

[0034] Step 110, determine the status information of the physical machine when it is working, the CPU of the physical machine includes a plurality of physical cores;

[0035] In this embodiment, the physical mac...

Embodiment 2

[0094] This embodiment is a specific application example of Embodiment 1, mainly explaining how to adjust the number of shared cores and exclusive cores according to load changes, such as image 3 As shown, an adjustment process includes the following steps:

[0095] Step 210, the host computer monitors the load to determine the current load, wherein the load here refers to the CPU resource occupancy rate;

[0096] Step 220, calculate the number of shared cores and exclusive cores according to the current load;

[0097] If the load does not change, the following procedures may not be performed. The default is that there is no need to change the number of shared cores and exclusive cores.

[0098]In this step, you can Figure 4 The calculation is based on the curve shown in the figure. The abscissa in the figure indicates the number of cores, and the vertical axis indicates the CPU resource usage. As shown in the figure, curve 1 shows how the number of exclusive cores chang...

Embodiment 3

[0110] This embodiment also relates to a cloud computing environment, and CPU resources in a physical machine need to be allocated to corresponding virtual machines for use. Different from Embodiment 1, this embodiment directly allocates physical cores to virtual machines without using logical core mapping. And in different working states, the number of shared cores and the number of exclusive cores can also be automatically adjusted to achieve an optimal effect between CPU resource utilization and resource contention avoidance.

[0111] This embodiment provides a method for dynamically allocating CPU resources, such as Figure 6 shown, including:

[0112] Step 310, determine the status information of the physical machine when it is working, the CPU of the physical machine includes a plurality of physical cores;

[0113] In this embodiment, the state information is the CPU resource occupancy rate of the physical machine, but the present invention is not limited thereto.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for dynamically allocating CPU resources, a device and a physical machine. The method comprises the following steps of: determining state information of a physical machine when the physical machine is in operation; dynamically adjusting the number of shared cores and the number of exclusive cores in the plurality of physical cores or the plurality of virtual machines according to the state information; the shared core of the plurality of physical cores is allocated in a shared manner of the plurality of logical cores; The exclusive cores among the plurality ofphysical cores are allocated in a manner exclusive to a single logical core or a single virtual machine. The present application also provides a corresponding dynamic dispensing device and a physicalmachine. The application scheme can adjust the number of shared cores and exclusive cores according to the working state of the physical machine, so as to obtain an optimized effect between improvingthe overall utilization rate of the CPU resources of the physical machine and avoiding resource contention.

Description

technical field [0001] The present invention relates to the field of computers, and more specifically, to a method, device and physical machine for dynamically allocating CPU resources. Background technique [0002] In the current cloud computing environment, cloud vendors will use virtualization technology to realize the exclusive use or sharing of CPU resources in physical machines, but the two will not exist at the same time. The CPU resources of a physical machine (also called a host machine) can be represented by the number of physical cores. In this paper, the CPU cores of a physical machine are called physical cores, and the CPU cores used by a virtual machine are called logical cores. When allocating CPU resources to a virtual machine, a mapping relationship between physical cores and logical cores needs to be established. [0003] In the exclusive scheme, one physical core can only be mapped to one logical core or one virtual machine, and this type of physical core...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5027G06F9/505G06F9/5066
Inventor 吴立欣
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products