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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com