[go: up one dir, main page]

CN116755840B - Virtual machine operation control method, device, equipment and medium - Google Patents

Virtual machine operation control method, device, equipment and medium

Info

Publication number
CN116755840B
CN116755840B CN202310731722.3A CN202310731722A CN116755840B CN 116755840 B CN116755840 B CN 116755840B CN 202310731722 A CN202310731722 A CN 202310731722A CN 116755840 B CN116755840 B CN 116755840B
Authority
CN
China
Prior art keywords
processor
physical machine
virtual machine
target
physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310731722.3A
Other languages
Chinese (zh)
Other versions
CN116755840A (en
Inventor
张扬
冯志敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Volcano Engine Technology Co Ltd
Original Assignee
Beijing Volcano Engine Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Volcano Engine Technology Co Ltd filed Critical Beijing Volcano Engine Technology Co Ltd
Priority to CN202310731722.3A priority Critical patent/CN116755840B/en
Publication of CN116755840A publication Critical patent/CN116755840A/en
Priority to EP24176842.3A priority patent/EP4481567A1/en
Priority to US18/745,895 priority patent/US12461773B2/en
Application granted granted Critical
Publication of CN116755840B publication Critical patent/CN116755840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • G06F9/5088Techniques for rebalancing the load in a distributed system involving task migration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the disclosure relates to a virtual machine operation control method, device, equipment and medium, wherein the method comprises the steps of creating a target virtual machine, setting the upper limit of the operation frequency of a processor of the target virtual machine as a target frequency, acquiring sleep grades corresponding to processors in idle states on other physical machines if the use rate of the processor of the first physical machine exceeds a preset threshold, determining a second physical machine meeting preset switching conditions in a server cluster according to the sleep grades, wherein the preset switching conditions are that the sleep power consumption released by the sleep power consumption corresponding to the processor in idle states on the physical machine meets a preset heat release index, migrating the target virtual machine from the first physical machine to the second physical machine, and performing the frequency-wise processing on the processor in the operation state on the target virtual machine based on the target frequency. Therefore, the performance of the virtual machine is improved, and the resource utilization rate of the processor is improved.

Description

Virtual machine operation control method, device, equipment and medium
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a virtual machine operation control method, device, equipment and medium.
Background
The processor (Central Processing Unit, CPU) typically provides a turbo capability that supports the actual operating frequency of the processor to be greater than its baseband operating frequency, e.g., when the baseband of the processor is 2.X GHz, and the turbo capability may enable it to be up to 3.X GHz. The frequency capability may include a single core frequency and a full core frequency, where the processor generally includes a main core and several sub cores to form a multi-core processor, the single core frequency refers to an operation frequency that can be achieved by a single core, the full core frequency refers to an operation frequency that can be achieved by a full core processor when the full core is operated, and is limited by heat design power consumption and the number of cores of the processor, and the full core frequency is generally lower than the single core frequency, for example, even if the single core frequency has a capability of 3.8GHz (in a specific scenario), and the full core frequency may only reach 3.1GHz.
In the related art, when a processor corresponding to a virtual machine is created for a user on a physical machine, the maximum frequency of the processor is limited to a relatively small frequency, such as a full-core frequency, so that the performance of the processor is not high.
However, the running states of the processors corresponding to the virtual machines on different physical machines are different, and the processor load utilization rate is high or low. Therefore, there is a need to provide a high performance virtual machine created based on a processor with higher-frequency capabilities, improving the performance of the virtual machine processor, and fully utilizing the processing resources.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, an apparatus, a device, and a medium for controlling virtual machine operation, which improves performance of a virtual machine and improves resource utilization of a processor.
The embodiment of the disclosure provides a virtual machine operation control method, which comprises the steps of responding to a creation request of a target virtual machine, creating the target virtual machine based on at least one processor on a first physical machine in a server cluster, wherein the upper limit of the processor operation frequency of the target virtual machine is set to be a target frequency, monitoring the use rate of the processor in an operation state on the first physical machine, when the use rate of the processor of the first physical machine exceeds a preset threshold, selecting a second physical machine meeting preset switching conditions from the server cluster according to sleep grades corresponding to processors in an idle state on other physical machines in the server cluster, wherein the preset switching conditions are that the sleep power consumption corresponding to the processor in the idle state on the physical machine meets preset heat release indexes, the heat release indexes reflect the processor in the operation state with the frequency, and moving the target virtual machine from the first physical machine to the second physical machine, and processing the processor in the operation state on the target virtual machine based on the target frequency.
The embodiment of the disclosure also provides a virtual machine operation control device, which comprises:
The system comprises a creating module, a monitoring module and a determining module, wherein the creating module is used for responding to a creating request of a target virtual machine, the creating module is used for creating the target virtual machine based on at least one processor on a first physical machine in a server cluster, the upper limit of the operating frequency of the processor of the target virtual machine is set to be a target frequency, the monitoring module is used for monitoring the operating state processor use rate of the first physical machine, the determining module is used for migrating the target virtual machine from the first physical machine to the second physical machine when the operating state processor use rate of the first physical machine exceeds the preset threshold, and selecting a second physical machine meeting preset switching conditions from the server cluster according to sleep grades corresponding to the idle state processors of other physical machines in the server cluster, wherein the preset switching conditions are that the sleep power consumption corresponding to the idle state processor of the physical machine meets preset heat release indexes, the heat release indexes reflect the operating state processor with the frequency, and the processing module is used for migrating the target virtual machine from the first physical machine to the second physical machine and processing the operating state processor with the frequency corresponding to the target virtual machine based on the target frequency.
The embodiment of the disclosure also provides electronic equipment, which comprises a processor, a memory for storing executable instructions of the processor, and the processor, wherein the processor is used for reading the executable instructions from the memory and executing the instructions to realize the virtual machine operation control method provided by the embodiment of the disclosure.
The embodiments of the present disclosure also provide a computer-readable storage medium storing a computer program for executing the virtual machine operation control method as provided by the embodiments of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
According to the virtual machine operation control scheme provided by the embodiment of the disclosure, a target virtual machine is created based on at least one processor on a first physical machine in a server cluster in response to a creation request of the target virtual machine, wherein the upper limit of the operating frequency of the processor of the target virtual machine is set to be a target frequency, further, the use rate of the processor in an operating state on the first physical machine is monitored, when the use rate of the processor of the first physical machine is known to exceed a preset threshold, a second physical machine meeting a preset switching condition is selected from the server cluster according to sleep grades corresponding to processors in idle states on other physical machines in the server cluster, wherein the preset switching condition is that sleep power corresponding to the processor in the idle state on the physical machine meets a preset heat release index, the heat release index reflects the frequency-with-frequency-with respect to the processor in the operating state on the second physical machine, and the frequency-with-frequency-with respect to the processor in the operating state on the target virtual machine based on the target frequency. In the technical scheme, the performance of the virtual machine can be improved, and the resource utilization rate of the processor is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a virtual machine operation control method according to an embodiment of the disclosure;
Fig. 2 is a schematic architecture diagram of a server cluster according to an embodiment of the disclosure;
fig. 3 is a flowchart of another virtual machine operation control method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another virtual machine operation control method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a virtual machine operation control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment," another embodiment "means" at least one additional embodiment, "and" some embodiments "means" at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
In order to solve the above problems, an embodiment of the present disclosure provides a method for controlling operation of a virtual machine, in which a processor with high-frequency capability is determined according to an operation state of a processor corresponding to each virtual machine on a physical machine, and a high-performance virtual machine is created based on the processor, so that processing resources of the processor are fully utilized, and performance of the processor corresponding to the virtual machine is improved.
The method is described below in connection with specific examples.
Fig. 1 is a flow chart of a virtual machine operation control method according to an embodiment of the present disclosure, where the method may be performed by a virtual machine operation control device, and the device may be implemented by software and/or hardware, and may generally be integrated in an electronic device. As shown in fig. 1, the method includes:
In step 101, in response to a creation request of a target virtual machine, creating the target virtual machine based on at least one processor on a first physical machine in a server cluster, wherein an upper limit of a processor running frequency of the target virtual machine is set to a target frequency.
As shown in fig. 2, a server cluster may be understood as a cloud platform, etc., and a server cluster may include a plurality of physical machines, each of which may create a plurality of virtual machines, each of which may include a plurality of processors, each of which may be a multi-core processor, etc.
In an embodiment of the present disclosure, a creation request of a target virtual machine is obtained, where the creation request may be initiated by a client according to the need, and in response to the creation request of the target virtual machine, the target virtual machine is created based on at least one processor on a first physical machine in a server cluster, where an upper operating frequency limit of the processor of the target virtual machine is set to a target frequency, where the target frequency may be understood as a higher Rui frequency, such as a single core Rui frequency that may be achieved by a single core.
In some possible embodiments, a creation request of a virtual machine is received, where the creation request includes a number of processors and a processor performance type, where the processor performance type may include a type corresponding to an upper frequency limit of operation of a processor corresponding to the virtual machine, e.g., the processor performance type may include a baseband type, a single core Rui frequency, a full core Rui frequency, and so on.
In the actual execution process, the performance types of the processor may have different identification modes, for example, may be text identification, digital identification, and the like, and in this embodiment, it is determined whether the performance types of the processor are target types, where the target types indicate that the upper limit of the operating frequency of the processor corresponding to the virtual machine to be configured is set to be the target frequency, that is, the target types indicate that the operating frequency of the processor may reach a higher Rui frequency at the highest, for example, may reach a single-core Rui frequency, and the like, so that the processor matched with the number of the processors is selected on the first physical machine, and a corresponding high-performance target virtual machine is created.
And 102, monitoring the utilization rate of the processors in the running state on the first physical machine, and selecting a second physical machine meeting a preset switching condition from the server cluster according to sleep grades corresponding to the processors in the idle state on other physical machines in the server cluster when the utilization rate of the processors in the running state on the first physical machine exceeds a preset threshold, wherein the preset switching condition is that sleep power consumption corresponding to the processors in the idle state on the physical machine meets a preset heat release index, and the heat release index reflects the frequency-with-the-frequency capability of the processors in the running state.
It will be appreciated that, even if the upper limit of the operating frequency of the target virtual machine is set to the target frequency, it does not mean that the processor has an operating condition of the target frequency, and therefore, in order to ensure full use of processor resources of the processor, in one embodiment of the present disclosure, the usage rate of the processor in an operating state on the first physical machine in the server cluster is also monitored, and the usage rate is compared with a preset threshold value, so as to determine whether the target virtual machine has an operating condition according to the target frequency according to the comparison result.
In an embodiment of the present disclosure, if it is known that a usage rate of a processor of a first physical machine exceeds a preset threshold, it is indicated that the first physical machine may be loaded higher, and an operation resource on the first physical machine may not support that a target virtual machine operates at a target frequency, and therefore, the processor in an operating state on the first physical machine does not have a frequency-wise capability, and thus, a sleep level corresponding to a processor in an idle state on another physical machine in a server cluster is obtained, where the sleep level is used to identify a wake-up time of the corresponding processor from the sleep state to the operating state, where the higher the sleep level is, the longer the wake-up time of the processor from the sleep state to the operating state is, the lower the corresponding sleep power consumption is, and if the sleep level of the processor in the idle state on the other physical machine is higher, the second physical machine is indicated that the second physical machine occupies an operation resource (sleep power consumption) is lower, and therefore, in this embodiment, a second physical machine meeting a preset switching condition is determined in the server cluster according to the sleep level, where the preset switching condition is that the processor in the idle state on the physical machine corresponds to the second physical machine has a preset heat-wise capability, and the second physical machine releases heat corresponding to the preset parameter, and the second physical machine has a target frequency-wise capability.
It should be noted that, in different application scenarios, the manner of acquiring sleep levels corresponding to processors in idle states on other physical machines is different, and the following is illustrated as examples:
In some possible examples, after creating a virtual machine corresponding to a processor on a physical machine, reporting a candidate sleep level that can be supported when the processor is in an idle state to the virtual machine, where the candidate sleep level that can be supported can be determined by identifying a model of the processor by a related driving component and the like according to a model query preset corresponding relation, and further, receiving the sleep level that is sent when the virtual machine on another physical machine detects that the corresponding processor is in an idle state, where the sleep level is determined by the corresponding virtual machine according to the candidate sleep level and an operation service, and a specific determination manner can be set according to scene needs, which is not listed here.
And 104, migrating the target virtual machine from the first physical machine to the second physical machine, and performing the frequency-wise processing on the processor in the running state on the target virtual machine based on the target frequency.
In one embodiment of the present disclosure, since the second physical machine has a frequency capability for the processor in the running state, in order to ensure high performance running of the target virtual machine, the target virtual machine is migrated from the first physical machine to the second physical machine, and the frequency processing is performed on the processor in the running state on the virtual machine based on the target frequency, where the running frequency of the processor after the frequency processing is larger, typically larger than the full-core frequency, for example, may be a single-core frequency larger than the full-core frequency, and so on. Therefore, the dynamic thermal migration from the target virtual machine to the second physical machine is realized when the load of the first physical machine is high by combining the processor utilization rate of the first physical machine and the dormancy power consumption of other physical machines, the high-performance operation of the target virtual machine is ensured, and the processing resource utilization rate of the target virtual machine is improved.
In summary, in response to a creation request of a target virtual machine, the virtual machine operation control method disclosed in the embodiment of the present disclosure creates the target virtual machine based on at least one processor on a first physical machine in a server cluster, where an upper limit of a processor operation frequency of the target virtual machine is set to a target frequency, further, a processor usage rate in an operation state on the first physical machine is monitored, when it is known that the processor usage rate of the first physical machine exceeds a preset threshold, a second physical machine meeting a preset switching condition is selected from the server cluster according to sleep levels corresponding to processors in idle states on other physical machines in the server cluster, where the preset switching condition is that sleep power corresponding to the processor in the idle state on the physical machine meets a preset heat release index, the heat release index reflects a frequency-wise capability of the processor in the operation state, the target virtual machine is migrated from the first physical machine to the second physical machine, and the frequency-wise processing is performed on the processor in the operation state on the target virtual machine based on the target frequency. In the technical scheme, the performance of the virtual machine can be improved, and the resource utilization rate of the processor is improved.
In one embodiment of the present disclosure, after monitoring the processor usage of the first physical machine in an operating state and comparing the processor usage with a preset threshold, if the processor usage of the first physical machine is known to be less than the preset threshold, it indicates that the load of the first physical machine may not be large, and the processor performance of the target virtual machine may be supported to be maximized, in order to determine whether the processor of the first physical machine in an operating state may be frequency-processed based on the target frequency, and detecting whether the sleep level corresponding to the processor in the idle state on the first physical machine meets a preset switching condition, wherein the preset switching condition is that sleep power consumption released by the processor in the idle state on the physical machine meets a heat release index, namely, whether the first physical machine can perform frequency processing on the processor in the running state on the virtual machine based on the target frequency is judged by further combining the sleep power consumption of the first physical machine. Wherein, the heat release index reflects the capability of having a frequency with respect to the processor in the running state.
Further, if it is known that the sleep power consumption released by the sleep level corresponding to the processor in the idle state on the first physical machine does not meet the heat release index, it indicates that the first physical machine may not perform the frequency-wise processing on the processor in the running state on the virtual machine based on the target frequency, and therefore, it is still necessary to determine the second physical machine in the server cluster.
Otherwise, if the sleep level corresponding to the processor in the idle state on the first physical machine is known to meet the preset switching condition, it is determined that the first physical machine can perform the frequency-wise processing on the processor in the running state on the virtual machine based on the target frequency, and perform the frequency-wise processing on the processor in the running state on the target virtual machine based on the target frequency.
In some possible embodiments, in order to detect whether the sleep power consumption released by the sleep level corresponding to the processor in the idle state on the first physical machine meets the heat release indicator (i.e. detect whether the processor in the idle state on the physical machine meets the preset switching condition mentioned in the foregoing embodiment), setting information of the sleep level of the processor on the first physical machine may be obtained, that is, the setting information is stored in the first physical machine in advance, where the setting information stores the sleep level information of the processor on the first physical machine, where the sleep level information may be actively reported by the processor, or may be actively obtained by the first physical machine, or the like. In different application scenarios, the manner of controlling the processor to enter the sleep level is different, for example, the drive control processor (the CPU in this embodiment) may enter the sleep level (in this embodiment, the sleep level is identified by the C-state), and two drivers, i.e., intel_idle and acpi _idle, are respectively used for entering different C-states by the a-type CPU, the intel_idle driver determines the C-state that the CPU is allowed to enter (the kernel maintains the C-state mapping table supported by different CPU types) by identifying the CPU type, and each time a new CPU is issued, the kernel is required to adapt the CPU to identify the C-state information supported by the CPU, so that the client generally will not upgrade the image of the relevant client to the latest kernel (compatibility and stability considerations) in consideration of actual application scenarios. And ACPI _idle is to adjust the CPU to enter different C-states in idle state by judging whether the ACPI table provides C-state information or not, so that only the supported C-states are reported in the virtualization layer, and the process does not need client intervention. For example, the Linux operating system loads the intel_idle driver by default, if the intel_idle driver cannot work, the acpi _idle driver is loaded again, so as long as one of the two drivers can work normally, the CPU can enter the C-state setting in the idle state inside the client, and the like.
After the setting information is obtained, judging whether the sleep level of the processor is limited to a first sleep level according to the setting information, wherein the first sleep level identifier does not have the frequency-with-frequency capability on the running state processor, for example, when the preset sleep level is divided into C1, C2, C3, C4, C5 and C6 from low to high, the first sleep level can be other sleep levels except C1, if the sleep level of the processor is limited to the first sleep level, the corresponding processor is not provided with the frequency-with-frequency capability on the running state processor, and therefore, the sleep level corresponding to the processor in the idle state on the first physical machine is determined to meet the preset switching condition.
Otherwise, if it is known that the processor sleep level is not limited to the first sleep level, for example, the processor sleep level is limited to the C1 level, the sleep level corresponding to the processor on the first physical machine that processes the idle state is obtained, the corresponding relation between the preset sleep level and the sleep power consumption is obtained, and the target sleep level to be detected and the corresponding duty ratio threshold are determined according to the corresponding relation between the sleep level and the sleep power consumption, where the target sleep level may be a deep sleep level such as C6, where the power consumption corresponding to the target sleep level is lower, and therefore, the duty ratio threshold is used to limit the number of processors on the target sleep level, so that when the number of processors on the target sleep level is smaller, the sleep power consumption is larger, and therefore, the first physical machine cannot perform the frequency-with the frequency.
In this embodiment, a duty ratio result between a processor corresponding to a target sleep level on a first physical machine and a processor in an idle state is detected, and the duty ratio result is compared with a duty ratio threshold, if the duty ratio result is smaller than the duty ratio threshold, it is determined that the sleep level corresponding to the processor in the idle state on the first physical machine does not satisfy a preset switching condition, and if the duty ratio result is greater than or equal to the duty ratio threshold, it is determined that the sleep level corresponding to the processor in the idle state on the first physical machine satisfies the preset switching condition.
In summary, according to the virtual machine operation control method disclosed by the embodiment of the present disclosure, by combining sleep power consumption released by a sleep level corresponding to a processor in an idle state on a first physical machine and a utilization rate of the processor on the first physical machine, whether the processor in an operating state on a target virtual machine has a turbo processing capability is determined, and if the processor in the operating state on the target virtual machine has the turbo processing capability, the processor in the operating state on the target virtual machine is subjected to the turbo processing, so that the utilization rate of processing resources of the processor in the operating state on the target virtual machine is improved.
Based on the above embodiment, in order to fully ensure that the processing resources of the processor can be utilized to a greater extent, in the case that the processor in the running state on the target virtual machine cannot be supported on the first physical machine, the target virtual machine may be migrated to the second physical machine to perform the turbo processing. How the second physical machine is determined is specifically described below with reference to the embodiments.
In one embodiment of the disclosure, a sleep level corresponding to a processor in an idle state on other physical machines in a server cluster is obtained, and a second physical machine is determined according to the sleep level:
FIG. 3 is a flowchart of method steps for determining a second physical machine in a server cluster based on sleep levels, according to one embodiment of the present disclosure, as shown in FIG. 3, the method comprising:
in step 301, candidate physical machines with processor utilization less than a preset threshold are determined in the server cluster.
In one embodiment of the present disclosure, a candidate physical machine whose processor utilization is less than a preset threshold is determined, where the candidate physical machine has a processor utilization less than the preset threshold and a relatively small load, possibly supporting the turbo processing of the target virtual machine.
It should be noted that, in different application scenarios, the manner of determining the candidate physical machine with the processor usage rate smaller than the preset threshold in the server cluster is different, which is illustrated as follows:
In some possible embodiments, the processor usage rate corresponding to the target virtual machine in the first physical machine may be obtained, and whether the processor usage rate corresponding to the target virtual machine is greater than a preset first threshold is detected, where the first threshold is calibrated according to a scene, and the first threshold is greater than the preset threshold, if the usage rate of the processor corresponding to the target virtual machine is known to be greater than the first threshold, it is indicated that the usage rate of the processor in the target virtual machine is higher than the usage rate corresponding to the preset threshold, so that if the usage rate of the processor corresponding to the target virtual machine is known to be greater than the first threshold, a second threshold is determined according to the processor usage rate corresponding to the target virtual machine, where the second threshold is smaller than the preset threshold, and a difference between the first threshold and the second threshold is greater than the preset threshold, that is, when the usage rate of the processor in the target virtual machine is higher than the preset threshold, it is determined that the usage rate of the processor corresponding to the preset threshold is lower than the second threshold, and if the usage rate of the processor corresponding to the preset virtual machine is lower than the preset threshold is determined that the second threshold is lower than the candidate physical machine.
In some possible embodiments, a first difference value between the processor utilization rate and a preset threshold may be obtained, the processor utilization rate of the target virtual machine in the first physical machine may be calculated, the processor utilization rates of other physical machines in the server cluster are compared with the preset threshold, an initial candidate physical machine whose processor utilization rate is smaller than the preset threshold is determined, further, a second difference value between the preset threshold and the processor utilization rate of the initial candidate physical machine is calculated, a third difference value between the second difference value and the first difference value is calculated, and an initial candidate physical machine whose third difference value is greater than the preset difference value threshold is determined as a final determined candidate physical machine.
Step 302, obtaining a sleep level corresponding to a processor in an idle state on the candidate physical machine.
And 303, selecting a second physical machine meeting the preset switching condition from the server cluster according to the sleep level corresponding to the processor in the idle state on the candidate physical machine. .
After determining the candidate physical machine, in order to further screen out a second physical machine which can support the turbo frequency processing of the target virtual machine from the candidate physical machine, further obtain a sleep level corresponding to a processor in an idle state on the physical machine, so as to screen out the second physical machine meeting a preset switching condition according to the sleep level on the candidate physical machine, wherein the target sleep level to be detected and a corresponding duty ratio threshold can be determined according to a preset corresponding relation between the sleep level and the sleep power consumption, wherein the target sleep level can be a deep sleep level such as C6, and the like, wherein the sleep power consumption corresponding to the target sleep level is lower, therefore, the duty ratio threshold corresponding to the target sleep level can be calibrated according to scene requirements, and if the duty ratio result is larger than the duty ratio threshold, the sleep power consumption of the candidate physical machine is indicated to be lower.
Otherwise, if the duty ratio result is smaller than the duty ratio threshold, it indicates that the power consumption of the person of the candidate physical machine is higher, so in this embodiment, the duty ratio result is compared with the duty ratio threshold, and the target candidate physical machine is determined according to the comparison result, where the duty ratio result corresponding to the target candidate physical machine is greater than the duty ratio threshold, that is, most of the processors in the idle state in the target candidate physical machine are in the target sleep level with lower sleep power consumption, so that at least one of the target candidate physical machines can be determined as a second physical machine meeting the preset switching condition, for example, one of the target candidate physical machines can be randomly determined as the second physical machine, and for example, a plurality of the target candidate physical machines can be determined as the second physical machine.
In order to enable those skilled in the art to more fully understand the performance adjustment process of the processor according to the embodiments of the present disclosure, a specific embodiment is described below, in which the target frequency is a single core-with-frequency and greater than 3.1GHz, the full core-with-frequency is 3.1GHz, and the target sleep level is the deep sleep level C6.
Referring to fig. 4, in this embodiment, in response to a request for creating a target virtual machine, create the target virtual machine based on at least one processor on a first physical machine in a server cluster, wherein an upper limit of a processor operation frequency of the target virtual machine is set to a target frequency, monitor processor usage rates in an operating state on a plurality of physical machines (including the first physical machine and other physical machines) in the server cluster by an out-of-band monitoring component or the like, compare the processor usage rates with a preset threshold, if it is known that the processor usage rates of the first physical machine exceed the preset threshold, obtain sleep levels corresponding to processors in an idle state on other physical machines, and determine a second physical machine in the server cluster according to the sleep levels (wherein, the processor usage rates are determined in the candidate physical machines according to the processor usage rates in the server cluster), in this embodiment, determine a C6 level to be detected and a corresponding duty cycle threshold according to a corresponding relation between the sleep levels and power consumption, and the corresponding duty cycle threshold, if it is known that the processor usage rates of the first physical machine is in the idle state, and the second physical machine is not in the idle state, and the sleep level is determined to be lower than the target physical machine is determined to be in the idle state based on the result, the sleep level is determined to be lower than the threshold, and the sleep level is determined to be higher than the target physical machine is in the idle state based on the threshold, and the idle state is determined to be lower than the physical machine is determined to be in the idle state based on the physical machine is determined to be in the idle state, thereby exerting greater processing performance.
In summary, according to the virtual machine operation control method disclosed by the embodiment of the disclosure, when the utilization rate of the processor on the first physical machine is higher, the second physical machine with lower load can be screened out from other physical machines based on the sleep power consumption, and the target virtual machine is thermally migrated to the second physical machine, so that the processor in the running state of the target virtual machine can exert larger processing performance to run.
In order to achieve the above embodiments, the present disclosure further provides a virtual machine operation control device. Fig. 5 is a schematic structural diagram of a virtual machine operation control device according to an embodiment of the present disclosure, where the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device to perform processor performance adjustment. As shown in fig. 5, the apparatus includes a creation module 510, a comparison module 520, a determination module 530, and a processing module 540, wherein,
A creating module 510, configured to create a target virtual machine based on at least one processor on a first physical machine in the server cluster in response to a creation request of the target virtual machine, where an upper processor operating frequency limit of the target virtual machine is set to a target frequency;
The monitoring module 520 is configured to monitor a processor usage rate of the first physical machine in an operating state;
a determining module 530, configured to select, when the usage rate of the processor of the first physical machine exceeds a preset threshold, a second physical machine that meets a preset switching condition from the server cluster according to sleep levels corresponding to processors in idle states on other physical machines in the server cluster, where the preset switching condition is that sleep power consumption corresponding to the processors in idle states on the physical machine meets a preset heat release index, and the heat release index reflects a frequency-wise capability of the processors in an operating state;
And the processing module 540 is configured to migrate the target virtual machine from the first physical machine to the second physical machine, and perform the frequency-wise processing on the processor in the running state on the target virtual machine based on the target frequency.
The virtual machine operation control device provided by the embodiment of the present disclosure may execute the virtual machine operation control method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects of the execution method, which are not described herein again.
To achieve the above embodiments, the present disclosure also proposes a computer program product comprising a computer program/instruction which, when executed by a processor, implements the virtual machine operation control method in the above embodiments.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Referring now in particular to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 600 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 600 may include a processor (e.g., a processor, a graphics processor, etc.) 601 that may perform various suitable actions and processes in accordance with programs stored in a Read Only Memory (ROM) 602 or loaded from a memory 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, devices may be connected to I/O interface 605 including input devices 606, including for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc., output devices 607, including for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc., memory 608, including for example, magnetic tape, hard disk, etc., and communication devices 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from memory 608, or from ROM 602. The above-described functions defined in the virtual machine operation control method of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
And responding to a creation request of the target virtual machine, creating the target virtual machine based on at least one processor on a first physical machine in the server cluster, wherein the upper limit of the operating frequency of the processor of the target virtual machine is set to be the target frequency, further, monitoring the utilization rate of the processor in the operating state on the first physical machine, when the utilization rate of the processor of the first physical machine exceeds a preset threshold, selecting a second physical machine meeting preset switching conditions from the server cluster according to sleep grades corresponding to processors in idle states on other physical machines in the server cluster, wherein the preset switching conditions are that the sleep power corresponding to the processors in idle states on the physical machine meets preset heat release indexes, the heat release indexes reflect the frequency-wise capacity of the processor in the operating state, and performing frequency-wise processing on the processor in the operating state on the target virtual machine based on the target frequency. In the technical scheme, the performance of the virtual machine can be improved, and the resource utilization rate of the processor is improved.
The electronic device may write computer program code for performing the operations of the present disclosure in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic that may be used include Field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-a-chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (13)

1. The virtual machine operation control method is characterized by comprising the following steps of:
responding to a creation request of a target virtual machine, and creating the target virtual machine based on at least one processor on a first physical machine in a server cluster, wherein the upper limit of the running frequency of the processor of the target virtual machine is set to be a target frequency;
Monitoring the utilization rate of a processor in an operating state of the first physical machine, and selecting a second physical machine meeting a preset switching condition from the server cluster according to sleep grades corresponding to processors in idle states on other physical machines in the server cluster when the utilization rate of the processor in the first physical machine exceeds a preset threshold, wherein the preset switching condition is that sleep power consumption corresponding to the processors in idle states on the physical machine meets a preset heat release index, and the heat release index reflects that the processors in the operating state have a frequency-limiting capability;
And migrating the target virtual machine from the first physical machine to the second physical machine, and performing frequency-wise processing on a processor in an operating state on the target virtual machine based on the target frequency.
2. The method of claim 1, wherein the creating the target virtual machine based on at least one processor on a first physical machine in the server cluster in response to the creation request of the target virtual machine comprises:
receiving a creation request of a virtual machine, wherein the creation request comprises the number of processors and the performance type of the processors;
Judging whether the performance type of the processor is a target type or not, wherein the target type indicates that the upper limit of the running frequency of the processor corresponding to the virtual machine to be configured is set as a target frequency;
selecting processors on the first physical machine, which are matched with the number of the processors, and creating the target virtual machine.
3. The method according to claim 1, further comprising, before selecting, from the server cluster, the second physical machine satisfying the preset switching condition according to the sleep level corresponding to the processor in the idle state on the other physical machines in the server cluster:
After creating a virtual machine corresponding to a processor on a physical machine in the server cluster, reporting a candidate dormancy level which can be supported when the processor is in an idle state to the virtual machine;
And receiving the sleep grades sent when the virtual machines on the other physical machines detect that the corresponding processors are in an idle state, wherein the sleep grades are determined by the virtual machines according to the candidate sleep grades and the operation service.
4. The method of claim 1, wherein selecting the second physical machine from the server cluster that satisfies the preset switching condition according to the sleep level corresponding to the processor in the idle state on the other physical machines in the server cluster comprises:
Determining candidate physical machines with the processor utilization rate smaller than the preset threshold value in the server cluster;
obtaining sleep grades corresponding to the processors in the idle state on the candidate physical machine;
and selecting a second physical machine meeting a preset switching condition from the server cluster according to the sleep level corresponding to the processor in the idle state on the candidate physical machine.
5. The method of claim 4, wherein determining candidate physical machines in the server cluster for which processor utilization is less than the preset threshold comprises:
acquiring the utilization rate of a processor corresponding to the target virtual machine in the first physical machine, and detecting whether the utilization rate of the processor corresponding to the target virtual machine is greater than a preset first threshold, wherein the first threshold is greater than the preset threshold;
If the processor utilization rate corresponding to the target virtual machine is larger than the first threshold value, determining a second threshold value according to the processor utilization rate corresponding to the target virtual machine, wherein the second threshold value is smaller than the preset threshold value, and the difference value between the first threshold value and the second threshold value is larger than the preset threshold value;
and comparing the processor utilization rates of other physical machines in the server cluster with a preset second threshold value, and determining candidate physical machines of which the processor utilization rates of other physical machines are smaller than the second threshold value.
6. The method of claim 4, wherein selecting a second physical machine from the server cluster that satisfies a preset handoff condition according to a sleep level corresponding to a processor in an idle state on the candidate physical machine, comprises:
determining a target dormancy grade to be detected and a corresponding duty ratio threshold according to the corresponding relation between the dormancy grade and dormancy power consumption;
Detecting a duty ratio result between a processor corresponding to the target sleep level and a processor in an idle state on the candidate physical machine;
comparing the duty ratio result with the duty ratio threshold, and determining a target candidate physical machine according to the comparison result, wherein the duty ratio result corresponding to the target candidate physical machine is larger than the duty ratio threshold;
and determining at least one of the target candidate physical machines as a second physical machine meeting the preset switching condition.
7. The method of any of claims 1-6, further comprising, after said monitoring processor utilization of said first physical machine in an operational state:
If the processor utilization rate of the first physical machine is smaller than the preset threshold value, detecting whether the sleep level corresponding to the processor in the idle state on the first physical machine meets the preset switching condition;
and if the sleep level corresponding to the processor in the idle state on the first physical machine is known to meet the preset switching condition, selecting a second physical machine meeting the switching condition from the server cluster.
8. The method of claim 7, wherein the detecting whether the sleep level corresponding to the processor in the idle state on the first physical machine meets the preset handover condition comprises:
acquiring setting information of sleep grades of processors on the first physical machine;
Judging whether the sleep level of the processor is limited to a first sleep level according to the setting information, wherein the first sleep level indicates that the processor does not have the Rui frequency capability on the running state processor;
And if the processor sleep level is known to be limited to the first sleep level, determining that the sleep level corresponding to the processor in the idle state on the first physical machine meets the preset switching condition.
9. The method as recited in claim 8, further comprising:
if the sleep level of the processor is not limited to the first sleep level, acquiring the sleep level corresponding to the processor in the idle state on the first physical machine;
determining a target dormancy grade to be detected and a corresponding duty ratio threshold according to the corresponding relation between the dormancy grade and dormancy power consumption;
Detecting a duty ratio result between a processor corresponding to the target sleep level on the first physical machine and a processor in an idle state, and comparing the duty ratio result with the duty ratio threshold;
If the duty ratio result is smaller than the duty ratio threshold, determining that the sleep level corresponding to the processor in the idle state on the first physical machine meets the preset switching condition;
And if the duty ratio result is larger than or equal to the duty ratio threshold, determining that the sleep level corresponding to the processor in the idle state on the first physical machine does not meet the preset switching condition.
10. The method as recited in claim 7, further comprising:
And if the sleep level corresponding to the processor in the idle state on the first physical machine is not satisfied with the preset switching condition, performing the frequency-wise processing on the processor in the running state on the target virtual machine based on the target frequency.
11. A virtual machine operation control device, characterized by comprising:
the system comprises a creation module, a first physical machine and a second physical machine, wherein the creation module is used for responding to a creation request of a target virtual machine and creating the target virtual machine based on at least one processor on a first physical machine in a server cluster, and the upper limit of the running frequency of the processor of the target virtual machine is set as a target frequency;
the monitoring module is used for monitoring the utilization rate of the processor in the running state on the first physical machine;
The determining module is used for selecting a second physical machine meeting a preset switching condition from the server cluster according to sleep grades corresponding to processors in idle states on other physical machines in the server cluster when the utilization rate of the processor of the first physical machine exceeds a preset threshold, wherein the preset switching condition is that sleep power consumption corresponding to the processor in idle states on the physical machine meets a preset heat release index, and the heat release index reflects that the processor in an operating state has a frequency-with-frequency capability;
And the processing module is used for migrating the target virtual machine from the first physical machine to the second physical machine, and performing the frequency-wise processing on the processor in the running state on the target virtual machine based on the target frequency.
12. An electronic device, the electronic device comprising:
A processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the virtual machine operation control method according to any one of the preceding claims 1 to 10.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the virtual machine operation control method according to any one of the preceding claims 1 to 10.
CN202310731722.3A 2023-06-19 2023-06-19 Virtual machine operation control method, device, equipment and medium Active CN116755840B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202310731722.3A CN116755840B (en) 2023-06-19 2023-06-19 Virtual machine operation control method, device, equipment and medium
EP24176842.3A EP4481567A1 (en) 2023-06-19 2024-05-20 Virtual machine operation controlling method, apparatus, device and medium
US18/745,895 US12461773B2 (en) 2023-06-19 2024-06-17 Virtual machine operation controlling method, apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310731722.3A CN116755840B (en) 2023-06-19 2023-06-19 Virtual machine operation control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN116755840A CN116755840A (en) 2023-09-15
CN116755840B true CN116755840B (en) 2025-07-15

Family

ID=87958543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310731722.3A Active CN116755840B (en) 2023-06-19 2023-06-19 Virtual machine operation control method, device, equipment and medium

Country Status (3)

Country Link
US (1) US12461773B2 (en)
EP (1) EP4481567A1 (en)
CN (1) CN116755840B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119149173B (en) * 2024-09-05 2025-10-10 北京火山引擎科技有限公司 Virtual machine scheduling method, device, medium, electronic device and program product

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013019185A1 (en) * 2011-07-29 2013-02-07 Hewlett-Packard Development Company, L.P. Migrating virtual machines
US10635997B1 (en) * 2012-06-15 2020-04-28 Amazon Technologies, Inc. Finite life instances
US8966495B2 (en) * 2012-09-05 2015-02-24 Cisco Technology, Inc. Dynamic virtual machine consolidation
US9183099B2 (en) * 2013-11-12 2015-11-10 Vmware, Inc. Replication of a write-back cache using a placeholder virtual machine for resource management
US9672069B2 (en) * 2014-09-10 2017-06-06 Verizon Patent And Licensing Inc. Dynamic zone-based cloud management
JP2016126562A (en) * 2015-01-05 2016-07-11 富士通株式会社 Information processing system, management apparatus, and control method of information processing system
US9842082B2 (en) * 2015-02-27 2017-12-12 Intel Corporation Dynamically updating logical identifiers of cores of a processor
CN104808770B (en) * 2015-04-23 2017-04-12 南京大学 Data center energy consumption management method and system based on dynamic frequency modulation
CN109189545B (en) * 2018-07-06 2021-03-30 烽火通信科技股份有限公司 Implementation method and system for improving thermal migration reliability of virtual machine
US10884779B2 (en) * 2018-12-07 2021-01-05 Nutanix, Inc. Systems and methods for selecting virtual machines to be migrated
US20220214917A1 (en) * 2021-01-07 2022-07-07 Quanta Computer Inc. Method and system for optimizing rack server resources

Also Published As

Publication number Publication date
US12461773B2 (en) 2025-11-04
EP4481567A1 (en) 2024-12-25
CN116755840A (en) 2023-09-15
US20240419479A1 (en) 2024-12-19

Similar Documents

Publication Publication Date Title
EP3274827B1 (en) Technologies for offloading and on-loading data for processor/coprocessor arrangements
US9405572B2 (en) Optimized resource allocation and management in a virtualized computing environment
TWI573075B (en) Persistent and resilient worker processes
CN103473142B (en) Virtual machine migration method under a kind of cloud computing operating system and device
US10484468B2 (en) Method and device for downloading file
US20160182399A1 (en) Continuous resource pool balancing
CN109074286B (en) Control over applications that use system resources
CN107729570B (en) Data migration method and apparatus for server
CN105308553B (en) Dynamic provides storage
US20130036417A1 (en) Virtual Resource Management Method, System, and Apparatus
KR102083289B1 (en) Method for migrating software of micro server based and device supporting the same
US10326826B1 (en) Migrating an on premises workload to a web services platform
CN111866071A (en) Data uploading method, device, electronic device and storage medium for business application
CN116755840B (en) Virtual machine operation control method, device, equipment and medium
CN118101434A (en) Management system active-standby switching method and system based on performance and fault prediction model
CN120560776A (en) Container rescheduling method, system, device, storage medium and program product
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN119647588B (en) High-throughput large model inference method, device, equipment and storage medium based on time-separated pipeline architecture
CN115617494A (en) Process scheduling method and device in multi-CPU environment, electronic equipment and medium
CN118897717B (en) Containerized data synchronization method, device, equipment, medium and product
CN119292793A (en) Computing task allocation method, system, electronic device, medium and product
CN114064227B (en) Interrupt processing method, device, equipment and storage medium applied to microkernel
CN117667193A (en) Application optimization methods, devices, equipment and storage media
CN119025383B (en) Monitoring method, device, equipment and storage medium of DPU hybrid cluster
CN118733196B (en) Virtual machine starting control method and device based on data processing unit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant