Mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment

A virtual machine manager, physical technology, applied in the field of electronics, can solve problems such as overall system performance degradation and resource competition

Active Publication Date: 2016-01-13
HUAWEI CLOUD COMPUTING TECH CO LTD +1
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a mapping method between a virtual CPU and a physical CPU and electronic equipment, which are used to solve the technical problems of resource competition and overall system performance degradation that exist when a virtual CPU is mapped to a physical CPU in the prior art

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
  • Mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment
  • Mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment
  • Mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0098] Please refer to figure 1 , The method for mapping between virtual CPUs and physical CPUs provided in the application embodiments is applied to a multi-core system. The multi-core includes at least two physical CPUs 11, a virtual machine manager (Virtual Machine Manager, VMM) 12, and at least one virtual machine (Virtual Machine, VM). ) 13, where each virtual machine 13 includes one or more virtual CPUs 131. In the multi-core system, the virtual machine manager 12 runs on any one of the at least two physical CPUs 11 to implement the mapping and management between the virtual CPU 131 and the physical CPU 11, and can map the virtual CPU 131 to the system at least Run on any one of the two physical CPUs 11.

[0099] Please refer to figure 2 , The mapping method between virtual CPU and physical CPU provided by the embodiment of the present application includes:

[0100] S201: In the current time period, the virtual machine manager 12 obtains the first virtual CPU set to be map...

Embodiment 2

[0139] Please refer to Figure 4 An embodiment of the present application provides a method for adjusting the frequency of a physical CPU, and the method includes:

[0140] S401: Obtain current CPU utilization and operating parameters of the physical CPU;

[0141] S402: Obtain a target frequency required for the current operation of the physical CPU according to the CPU utilization rate and the operating parameter, and adjust the current operating frequency of the physical CPU to the target frequency.

[0142] In the specific implementation process, the operating parameters of the physical CPU specifically include: the maximum frequency and the minimum frequency that the physical CPU can reach when working, and the maximum memory bus utilization rate and minimum memory bus utilization rate of the physical CPU on the physical host. According to the current CPU utilization rate and operating parameters of the physical CPU, the embodiment of the present application can obtain the target...

Embodiment 3

[0147] Please refer to Figure 5 , An embodiment of the present application provides an electronic device, including:

[0148] The virtual machine 510 includes at least one virtual CPU;

[0149] A virtual machine manager 520, which includes a feature acquisition module 521 and a mapping module 522;

[0150] Wherein, the feature acquisition module 521 is configured to, in the current time period, the virtual machine manager 520 acquires a first set of virtual CPUs to be mapped from the at least two virtual CPUs, from the at least two physical CPUs Acquiring the first physical CPU with the fewest tasks to be run in the next time period; acquiring the first characteristic value of each first virtual CPU in the first virtual CPU set and the second characteristic value of the first physical CPU, The first characteristic value of each of the first virtual CPUs represents the characteristics of the physical CPU that the first virtual CPU is mapped to in the previous time period of the curr...

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 discloses a mapping method between virtual CPUs (Central Processing Unit) and physical CPUs, and electronic equipment. The method comprises the following steps: in a current time period, a virtual machine manager obtains a first virtual CPU set to be mapped and a first physical CPU with least tasks to be operated in a next time period; the virtual machine manager obtains a first characteristic value of each first virtual CPU in the first virtual CPU set and a second characteristic value of the first physical CPU; and the virtual machine manager obtains a target characteristic value matched with the second characteristic value from all first characteristic values and maps the target virtual CPU corresponding to the target characteristic value to the first physical CPU to operate. The technical scheme solves the technical problems of the resource competition and the integral performance decrease of a system in the prior art when the virtual CPU is mapped to the physical CPU.

Description

Technical field [0001] The present invention relates to the field of electronic technology, in particular to a mapping method between a virtual CPU and a physical CPU and an electronic device. Background technique [0002] In a virtualized environment, from the perspective of a virtual machine, a virtual CPU is used to perform calculations, but in essence, the physical CPU of the physical host where the virtual machine is located performs specific calculation functions. In a multi-core environment, when there are multiple physical CPUs and multiple virtual CPUs, the problem of how to map virtual CPUs to physical CPUs may arise. [0003] In the prior art, for the problem of how to map virtual CPUs to physical CPUs, each physical CPU manages a locally runnable virtual CPU queue; the priority of each virtual CPU has two states: scheduled over and under scheduled ; During scheduling, the scheduler will prioritize the virtual CPU with the current status of under. If there is no virtual...

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/455
CPCG06F9/45558G06F2009/4557G06F13/4234G06F9/45533G06F2009/45583
Inventor 李健管海兵古强
Owner HUAWEI CLOUD COMPUTING TECH CO 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