Cloud virtual machine hibernation method and device, and readable medium

By persisting the operating system state when the cloud virtual machine is sleeping and determining resource release based on physical resource usage information, the problem of the cloud virtual machine being unable to wake up is solved, improving the wake-up success rate and user experience.

WO2024222510A1PCT designated stage expired Publication Date: 2024-10-31ALIBABA CLOUD COMPUTING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/087783
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-26
Filing Date
2024-04-15
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

After the cloud virtual machine is hibernated, it cannot be woken up due to insufficient available resources in the physical resource scheduling domain, causing the cloud service to be unavailable.

Method used

By responding to the hibernation instruction, the operating system state of the cloud virtual machine is persisted, and based on the physical resource usage information in the physical resource scheduling domain, it is determined whether to release the physical resources of the cloud virtual machine, and the cloud virtual machine is controlled to enter the hibernation state to ensure that there is enough energy when waking up. physical resources.

Benefits of technology

It improves the probability of successful wake-up of cloud virtual machines after hibernation, ensures the availability of cloud services, and reduces wake-up time delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024087783_31102024_PF_FP_ABST
    Figure CN2024087783_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a cloud virtual machine hibernation method and device, and to a readable medium. The method comprises: in response to a hibernation indication, persisting the operating system state of a cloud virtual machine; based on physical resource utilization information in a physical resource scheduling domain where the cloud virtual machine is located, determining whether to release physical resources allocated to the cloud virtual machine; and controlling the cloud virtual machine to enter a hibernation state. The present invention solves the problem of cloud virtual machines being unable to be awoken following hibernation, and increases the probability of success of waking a cloud virtual machine following hibernation.
Need to check novelty before this filing date? Find Prior Art

Description

Cloud virtual machine hibernation method, device and readable medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 26, 2023, with application number 202310469520.6 and invention name “Cloud Virtual Machine Hibernation Method and Related Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a cloud virtual machine hibernation method, device, and readable medium. Background Art

[0003] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that what is described herein is prior art by its inclusion in this section.

[0004] Cloud VM hibernation is a method for maintaining continuous user service while using resources on demand to reduce customer costs. Hypervisor-based hibernation is a key approach among all hibernation solutions. During the hibernation phase, the hypervisor stops the VM, uploads memory and peripheral context to the storage service, and, after persisting the relevant information, releases the underlying physical resources of the cloud server. During the wakeup phase, the hypervisor re-reads the persistent information, initializes the cloud server memory and peripherals, and restarts the VM.

[0005] The problem with this hibernation solution is that the physical resources released during hibernation may be occupied by other cloud virtual machines, so that when waking up, there are no physical resources and the virtual machine cannot be woken up.

[0006] Summary of the Invention

[0007] The cloud virtual machine hibernation method, device, and readable medium provided by the embodiments of the present invention at least solve the problem that a cloud virtual machine cannot be awakened after hibernation.

[0008] A cloud virtual machine hibernation method comprises: persisting the operating system state of the cloud virtual machine in response to a hibernation indication; determining whether to release the physical resources allocated to the cloud virtual machine based on physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located; and controlling the cloud virtual machine to enter a hibernation state.

[0009] An electronic device includes: a processor and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0010] A non-transitory machine-readable medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above method.

[0011] The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be derived from these drawings without inventive effort.

[0013] FIG1 is a flow chart of a cloud virtual machine hibernation method according to an embodiment of the present invention.

[0014] FIG2 is an optional flow chart of a cloud virtual machine hibernation method according to an embodiment of the present invention.

[0015] FIG3 is a schematic structural diagram of the electronic device of this embodiment. DETAILED DESCRIPTION

[0016] The following describes embodiments of the present invention in more detail with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.

[0017] Cloud VMs are IaaS (Infrastructure as a Service)-level cloud computing services. They are virtual machines created on physical machines and include CPU, memory, disk, and other components. Multiple cloud VMs can be created on a single physical machine.

[0018] Hibernation is a technology that puts a computing system into a low-power state when idle. For cloud-managed virtual machines, hibernation can free up physical resources to reduce costs. Wakeup is the process of waking a dormant cloud virtual machine and returning it to normal operation.

[0019] In the cloud virtual machine hibernation solution of the related art, upon receiving a hibernation request from the cloud service control center, the cloud virtual machine will directly release the physical resources occupied by the cloud virtual machine and enter a hibernation state. Because physical resources are allocated to multiple objects (such as cloud virtual machines) in a physical resource scheduling domain (for example, one physical machine or multiple physical machines can serve as a resource scheduling domain), if other cloud virtual machines occupy too many physical resources and the available physical resources in the physical resource scheduling domain are insufficient for the dormant cloud virtual machine to reload, the cloud virtual machine will not be able to be awakened, and the cloud service provided by the cloud virtual machine will become unavailable.

[0020] To address the issue of cloud virtual machines being unable to wake up after hibernation due to insufficient available physical resources within the scheduling domain, embodiments of the present invention provide a cloud virtual machine hibernation method. This method can be applied to computer cluster systems that provide cloud virtual machine services. In particular, computer cluster systems that can provide multiple cloud virtual machines, or at least one cloud virtual machine and other cloud services, within a physical resource scheduling domain. This embodiment of the present invention can be executed by a resource scheduler within a physical resource scheduling domain.

[0021] The cloud virtual machine hibernation method, device and readable medium provided by the embodiments of the present invention persist the operating system state of the cloud virtual machine by responding to a hibernation indication; determine whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located; and control the way in which the cloud virtual machine enters the hibernation state, thereby solving the problem that the cloud virtual machine cannot be woken up after hibernation and improving the success rate of waking up the cloud virtual machine after hibernation.

[0022] FIG1 is a flow chart of a cloud virtual machine hibernation method according to an embodiment of the present invention. As shown in FIG1 , the process includes the following steps:

[0023] Step S101: In response to a sleep instruction, persist the operating system state of the cloud virtual machine.

[0024] The sleep indication can be triggered actively by the user or based on the running status of the cloud virtual machine. For example, when there is no new access to the cloud service provided by the cloud virtual machine within a set time, a sleep indication is issued for the cloud virtual machine to indicate that the cloud virtual machine is preparing to enter the sleep state.

[0025] When a cloud VM receives a hibernation instruction, it persists its operating system state to disk. This operating system state includes, but is not limited to, the state of the operating system kernel, drivers, operating system running state, applications, and documents. In this embodiment, the operating system state is also referred to as memory and peripheral context information. During hibernation, each cloud VM's operating system state is typically saved in a corresponding hibernation file.

[0026] Among them, the operating system state can be persisted to the disk of the physical machine where the cloud virtual machine is currently located. Then, when waking up, the dormant cloud virtual machine will be woken up on the current physical machine first, and the physical resources required to wake up the dormant cloud virtual machine will also be provided by the current physical machine. If the physical resources of the current physical machine are insufficient to provide for the cloud virtual machine when waking up the dormant cloud virtual machine, the cloud virtual machine can be migrated to another physical machine in the current physical resource scheduling domain, and the cloud virtual machine can be woken up on the other physical machine. The migration method is to migrate the hibernation file of the dormant cloud virtual machine to another physical machine in the current physical resource scheduling domain.

[0027] The above process is imperceptible to users of cloud VMs. However, they will experience delays as the VM's hibernation file is uploaded from one physical machine and downloaded from another. This delay can be several minutes, depending on the size of the hibernation file (which typically depends on the amount of physical resources actually used by the VM before hibernation) and upload and download network bandwidth limitations. This is especially true when uplink and downlink bandwidth are asymmetric, with the uplink bandwidth typically much smaller than the downlink bandwidth. This means that files of the same size often take much longer to upload than to download.

[0028] In order to reduce this time delay, in some embodiments, after the cloud virtual machine is dormant, the operating system state will be persisted to the storage system, and the dormant file of the cloud virtual machine that has been persisted in the current physical machine will be deleted to save the disk resources of the current physical machine. When waking up, a physical machine will be selected from the physical resource scheduling domain, and the dormant file of the dormant cloud virtual machine will be downloaded to the selected physical machine through the high-speed downlink network transmission channel between the physical machine and the storage service to wake up the dormant cloud virtual machine in the physical machine. By persisting the operating system state of the dormant cloud virtual machine in the storage system, the wake-up waiting time of the dormant cloud virtual machine can be reduced, and the user experience can be improved.

[0029] Of course, in other embodiments, after the cloud virtual machine is dormant, the operating system state is not only uploaded to the storage system, but the operating system state of the dormant cloud virtual machine can also be persisted to one or more physical machines in the physical resource scheduling domain. When waking up, a physical machine is preferentially selected from the one or more physical machines to wake up the cloud virtual machine. After the cloud virtual machine wakes up, the operating system state of the cloud virtual machine in the storage system and the one or more physical machines is deleted. If, when waking up the dormant cloud virtual machine, the physical resources of the one or more physical machines are insufficient to provide for the cloud virtual machine, then consider selecting other physical machines from the physical resource scheduling domain and downloading the operating system state of the cloud virtual machine from the storage system to wake it up. The above-mentioned one or more physical machines can be randomly selected when the cloud virtual machine is dormant, or those physical machines with more available physical resources can be selected based on the available physical resource margins of each physical machine.

[0030] Step S102: Determine whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located.

[0031] In this step, physical resource usage information can be obtained by acquiring relevant information within the physical resource scheduling domain. This physical resource usage information can be physical resource usage information for the current time or for a future time. In some embodiments, physical resource usage information for both the current time and the future time can be considered simultaneously. The future time can be, for example, a future time period or time point that includes the cloud virtual machine wake-up time.

[0032] In this embodiment, physical resources include, but are not limited to, one or a combination of the following: processor resources, internal memory resources, network transmission resources, disk storage resources, and input / output (I / O) resources.

[0033] In this embodiment, the physical resource usage information includes physical resource margin or physical resource usage.

[0034] The above-mentioned physical resource information can be a resource amount expressed as a percentage, such as a certain percentage of the total physical resources; or a resource amount expressed as a quantity, such as the number of available cores of processor resources and the number of available bits of memory resources.

[0035] Because different physical resources have different dimensions, the physical resource quantity in this embodiment can be determined by assigning weights to the dimensionless physical resources, with the weighted average of the different physical resources serving as the physical resource threshold in the first condition for the physical resource quantity. In other embodiments, a physical resource threshold corresponding to the first condition can be assigned to each different physical resource, and each physical resource quantity can be considered to determine whether to release the physical resources allocated to the cloud virtual machine; for example, the physical resources allocated to the cloud virtual machine will only be released if all physical resource usage information meets the threshold corresponding to each type of physical resource in the first condition.

[0036] In addition, the usage or margin of physical resources may fluctuate greatly in a short period of time. Therefore, the usage or margin of physical resources in this embodiment can be calculated by taking the average value within a certain time period, thereby avoiding sudden changes in the usage or margin of physical resources due to sudden physical resources, which affects the judgment results.

[0037] The releasing of physical resources in this embodiment refers to releasing the physical resource quota allocated to a certain cloud virtual machine so that these physical resources can be allocated and used by the physical machine, other cloud virtual machines or devices.

[0038] Step S103: Control the cloud virtual machine to enter a dormant state.

[0039] In some of the embodiments, determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information within the physical resource scheduling domain where the cloud virtual machine is located includes: not releasing the physical resources allocated to the cloud virtual machine, or releasing part of the physical resources allocated to the cloud virtual machine, when the physical resource usage information at the current time within the physical resource scheduling domain where the cloud virtual machine is located meets a first condition.

[0040] The first condition mentioned above refers to the number of physical resources that can ensure that after the cloud virtual machine releases the physical resources, the physical resources in the scheduling domain are likely to support the cloud virtual machine to be re-awakened. It can be understood that the first condition can be a global configuration condition for the hibernation of all cloud virtual machines in the physical resource scheduling domain, or a configuration condition can be set separately for each cloud virtual machine in the physical resource scheduling domain. For example, the threshold conditions for various types of physical resources in the first condition are determined based on the size of the hibernation file of the cloud virtual machine, or the number of physical resources actually used by the cloud virtual machine before hibernation. Among them, the larger the hibernation file or the more physical resources actually used by the cloud virtual machine before hibernation, the larger the margin threshold of one or more physical resources in the first condition should be (the smaller the usage threshold should be).

[0041] When the physical resource usage information is the physical resource margin, the first condition may, for example, be: the physical resource margin within the physical resource scheduling domain at the current time is lower than a first preset threshold. When the physical resource usage information is the physical resource usage, the first condition may, for example, be: the physical resource usage within the physical resource scheduling domain at the current time is higher than a second preset threshold. The first preset threshold and the second preset threshold may be percentages of the total amount of physical resources or the amount of physical resources. For example, the first preset threshold and the second preset threshold may be determined based on the total amount of physical resources used by multiple cloud virtual machines.

[0042] When the physical resource information at the current time in the physical resource scheduling domain where the cloud virtual machine is located meets the first condition, if part of the physical resources allocated to the cloud virtual machine is released, the amount of the released part of the physical resources is determined based on the amount of the physical resource margin (or usage) at the current time. If the physical resource margin at the current time is larger (or the usage is smaller), the amount of the released part of the physical resources is smaller.

[0043] In some of the embodiments, determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information within the physical resource scheduling domain where the cloud virtual machine is located also includes: releasing all physical resources allocated to the cloud virtual machine when the physical resource usage information within the physical resource scheduling domain where the cloud virtual machine is located at the current time does not meet the first condition.

[0044] If physical resource usage information based on future time is used as the basis for whether to release the physical resources allocated to the cloud virtual machine, then based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located, determining whether to release the physical resources allocated to the cloud virtual machine includes: obtaining the wake-up time of the cloud virtual machine; predicting the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located; and determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located.

[0045] The step of obtaining the wake-up time of the cloud virtual machine includes obtaining user input information, wherein the user input information includes the wake-up time of the cloud virtual machine. The user input information may be an expected wake-up time input by the user when the user initiates a sleep instruction of the cloud virtual machine.

[0046] In other embodiments, the wake-up time of a cloud virtual machine can also be predicted based on the historical usage records of the cloud virtual machine. For example, based on the historical usage records of the cloud virtual machine, the time period during which the cloud virtual machine exited the sleep state or the historical wake-up time of the cloud virtual machine is found, thereby obtaining a predicted value for the wake-up time of the cloud virtual machine. This predicted value is typically a future time period.

[0047] Among them, the physical resource usage information of the physical resource scheduling domain where the cloud virtual machine is located at the wake-up time is predicted, including: based on the physical resource usage of the physical resource scheduling domain where the cloud virtual machine is located at the current time, the number of dormant cloud virtual machines and their physical resource usage, and the historical usage records of dormant cloud virtual machines, the physical resource usage information of the physical resource scheduling domain where the cloud virtual machine is located at the wake-up time is predicted.

[0048] Similarly, in this embodiment, determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located includes: when the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located meets the second condition, not releasing the physical resources allocated to the cloud virtual machine, or releasing part of the physical resources allocated to the cloud virtual machine; when the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located does not meet the second condition, releasing all physical resources allocated to the cloud virtual machine.

[0049] The second condition mentioned above refers to the number of physical resources that can ensure that after the cloud virtual machine releases the physical resources, the physical resources in the scheduling domain are likely to support the cloud virtual machine to be re-awakened. It can be understood that the second condition can be a global configuration condition for the hibernation of all cloud virtual machines in the physical resource scheduling domain, or a configuration condition can be set separately for each cloud virtual machine in the physical resource scheduling domain. For example, the threshold conditions for various types of physical resources in the second condition are determined based on the size of the hibernation file of the cloud virtual machine, or the number of physical resources actually used by the cloud virtual machine before hibernation. Among them, the larger the hibernation file or the more physical resources actually used by the cloud virtual machine before hibernation, the larger the margin threshold of one or more physical resources in the second condition should be (the smaller the usage threshold should be).

[0050] When the physical resource usage information is the physical resource margin, the second condition may, for example, be: the physical resource margin within the physical resource scheduling domain at the wake-up time is lower than a third preset threshold. When the physical resource usage information is the physical resource usage, the second condition may, for example, be: the physical resource usage within the physical resource scheduling domain at the wake-up time is higher than a fourth preset threshold. The third and fourth preset thresholds may be percentages of the total physical resources or the number of physical resources. For example, the third and fourth preset thresholds may be determined based on the total amount of physical resources used by multiple cloud virtual machines.

[0051] When the physical resource information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located meets the second condition, if part of the physical resources allocated to the cloud virtual machine is released, the amount of the released part of the physical resources is determined based on the amount of the physical resource margin (or usage) at the wake-up time. If the physical resource margin at the wake-up time is larger (or the usage is smaller), the amount of the released part of the physical resources is smaller.

[0052] It should be noted that in some embodiments, the physical resource usage information at the current time and the physical resource usage information at a future time (wake-up time) may be combined to determine whether to release the physical resources allocated to the cloud virtual machine. For example, after deciding not to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information at the current time, the judgment is continued based on the physical resource usage information at a future time: if the judgment result is still not to release the physical resources allocated to the cloud virtual machine, the final decision is not to release the physical resources allocated to the cloud virtual machine; if the judgment result is to release the physical resources allocated to the cloud virtual machine, the final decision is to release the physical resources allocated to the cloud virtual machine.

[0053] In some embodiments, step S102 is not only performed once, but may also be performed periodically after the cloud virtual machine enters a dormant state, to determine whether to release the physical resources allocated to the cloud virtual machine. In other words, after the cloud virtual machine enters a dormant state, even if the physical resources allocated to the cloud virtual machine were not released before the cloud virtual machine entered the dormant state, the physical resources allocated to the cloud virtual machine may be released at a future time when conditions are met, thereby fully utilizing the physical resources within the physical resource scheduling domain.

[0054] FIG2 is an optional flow chart of a cloud virtual machine hibernation method according to an embodiment of the present invention. As shown in FIG2 , the process includes the following steps:

[0055] Step 1: The scheduler receives a cloud virtual machine sleep request (equivalent to the sleep instruction in the above embodiment).

[0056] Step 2: The scheduler collects the following information:

[0057] (1) Current scheduling domain physical resource usage, including but not limited to physical server resource usage, bandwidth usage, storage usage, etc.;

[0058] (2) The number of dormant instances in the current scheduling domain, and the specification; where the specification is the number of physical resources allocated to the cloud virtual machine;

[0059] (3) Historical consumption records of physical resources in the current scheduling domain (equivalent to historical usage records).

[0060] Step 3: If the physical resource usage of the current scheduling domain is higher than the set threshold, the physical resources are not released and the system enters the dormant state. Otherwise, the following steps are executed.

[0061] Step 4: Based on the number and specifications of dormant cloud VMs in the current scheduling domain and the historical consumption records of physical resources, predict the physical resource usage in the scheduling domain when the cloud VM wakes up in the future.

[0062] Step 5: If it is predicted that the physical resource usage of the cloud virtual machine will be less than the set threshold when it wakes up in the future, the physical resources are released and the virtual machine enters the dormant state. Otherwise, the physical resources are not released and the virtual machine enters the dormant state.

[0063] By following the steps shown in FIG. 2 , it is possible to avoid the situation where a dormant virtual machine cannot be awakened in the future due to lack of physical resources.

[0064] In the case where it has been decided to fully or partially release physical resources, after releasing all physical resources allocated to the cloud virtual machine, it is also possible to determine whether to pre-allocate physical resources for the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located, so that the cloud virtual machine can be pre-allocated with sufficient physical resources before waking up, further ensuring the success rate of cloud virtual machine wake-up.

[0065] An embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, wherein the computer program, when executed by the at least one processor, causes the electronic device to perform the method of an embodiment of the present invention.

[0066] An embodiment of the present invention further provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method of the embodiment of the present invention.

[0067] An embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, it is used to enable the computer to perform the method of the embodiment of the present invention.

[0068] With reference to Figure 3, the structural block diagram of the electronic device that can be used as the server or client of an embodiment of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0069] As shown in Figure 3, the electronic device includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. Various programs and data required for the operation of the electronic device can also be stored in the RAM 303. The computing unit 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0070] Multiple components within the electronic device are connected to the I / O interface 305, including an input unit 306, an output unit 307, a storage unit 308, and a communication unit 309. The input unit 306 can be any type of device capable of inputting information into the electronic device. The input unit 306 can receive input numeric or character information and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 307 can be any type of device capable of presenting information and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 308 may include, but is not limited to, a magnetic disk or an optical disk. The communication unit 309 allows the electronic device to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0071] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present invention may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via a ROM 302 and / or a communication unit 309. In some embodiments, the computing unit 301 may be configured to perform the above-described method in any other appropriate manner (e.g., by means of firmware).

[0072] The computer programs for implementing the methods of the embodiments of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0073] In the context of an embodiment of the present invention, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0074] It should be noted that the term "including" and its variations used in the embodiments of the present invention are open-ended, i.e., "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; and the term "some embodiments" means "at least some embodiments." The modifications of "one" and "a plurality of" mentioned in the embodiments of the present invention are illustrative and non-restrictive. Those skilled in the art should understand that, unless the context clearly indicates otherwise, they should be understood as "one or more."

[0075] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0076] The various steps described in the method implementation scheme provided in the embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method implementation scheme may include additional steps and / or omit the steps shown. The scope of protection of the present invention is not limited in this respect.

[0077] The term "embodiment" in this specification refers to specific features, structures, or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments are referenced to each other. In particular, for the embodiments of the device, equipment, and system, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts are referred to the partial description of the method embodiment.

[0078] The above-described embodiments merely illustrate several implementations of the present invention. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of the present invention. Therefore, the scope of the present invention shall be determined by the appended claims.

Claims

1. A cloud virtual machine hibernation method, comprising: In response to the sleep instruction, persisting the operating system state of the cloud virtual machine; Determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located; Control cloud virtual machines to enter hibernation state.

2. The method according to claim 1, wherein: The physical resource usage information includes physical resource usage information at current time and / or future time; the physical resource usage information includes physical resource margin or physical resource usage.

3. The method according to claim 1, wherein: Determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located includes: When the physical resource usage information at the current time in the physical resource scheduling domain where the cloud virtual machine is located meets the first condition, the physical resources allocated to the cloud virtual machine are not released, or part of the physical resources allocated to the cloud virtual machine are released.

4. The method according to claim 1, wherein: Based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located, determining whether to release the physical resources allocated to the cloud virtual machine also includes: When the physical resource usage information at the current time in the physical resource scheduling domain where the cloud virtual machine is located does not meet the first condition, all physical resources allocated to the cloud virtual machine are released.

5. The method according to claim 1 or 3, wherein: Determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located includes: Obtaining the wake-up time of the cloud virtual machine; Predicting physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located; Based on the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located, it is determined whether to release the physical resources allocated to the cloud virtual machine.

6. The method according to claim 5, wherein: Determining whether to release the physical resources allocated to the cloud virtual machine based on the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located includes: In a case where the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located meets the second condition, the physical resources allocated to the cloud virtual machine are not released, or part of the physical resources allocated to the cloud virtual machine are released; When the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located does not meet the second condition, all physical resources allocated to the cloud virtual machine are released.

7. The method according to claim 5, wherein: Obtaining the wake-up time of the cloud virtual machine includes: Acquiring user input information, wherein the user input information includes a wake-up time of the cloud virtual machine; or Based on the historical usage record of the cloud virtual machine, a wake-up time of the cloud virtual machine is predicted.

8. The method according to claim 5, wherein: Predicting the physical resource usage information at the wake-up time in the physical resource scheduling domain where the cloud virtual machine is located includes: Based on the physical resource usage in the physical resource scheduling domain where the cloud virtual machine is located at the current time, the number of dormant cloud virtual machines and their physical resource usage, and the historical usage records of dormant cloud virtual machines, the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located at the wake-up time is predicted.

9. The method according to claim 1, wherein: After releasing all physical resources allocated to the cloud virtual machine, the method further includes: Based on the physical resource usage information in the physical resource scheduling domain where the cloud virtual machine is located, it is determined whether to pre-allocate physical resources for the cloud virtual machine.

10. An electronic device, comprising: A processor, and a memory storing a program, wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 9.

11. A non-transitory machine-readable medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method for setting up sleep mode of virtual machine and device

    CN104391736A

  • Cloud virtual machine dormancy method and related equipment thereof

    CN116627584A

  • Power-aware workload balancing usig virtual machines

    US20050060590A1

  • Apparatus and method to determine a service to be scaled out based on a predicted virtual-machine load and service importance

    US20170161117A1

  • Virtual browser application systems and methods

    US20230026368A1