Method and device for allocating resources of virtual machine
By ensuring that physical processor resources, memory, and IO devices are located on the same processor node during virtual machine resource allocation, the problem of large virtual machine data transmission delays is solved, virtual machine performance is improved, and physical processor consumption is reduced.
Patent Information
- Application Number
- CN202010886843.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2015-03-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2035-03-03
AI Technical Summary
In the existing technology, the data transmission delay between the virtual processor, vMEM and vIO of the virtual machine is large, which leads to increased physical processor consumption and reduces the performance of the virtual machine.
By obtaining the resource allocation parameters of the virtual machine, ensure that at least the physical processor resources, physical memory, and physical IO devices are located in the same processor node, thereby optimizing resource allocation and reducing data transmission delay.
It reduces the data transmission delay between the virtual machine's virtual processor, vMEM and vIO, improves the performance of the virtual machine and reduces the consumption of physical processors.
Smart Images

Figure CN112181585B_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 201580000206.7, and the original application date is March 3, 2015. The entire content of the original application is incorporated into this application by reference. Technical Field
[0002] The present invention relates to the field of communications, and in particular to a method and device for allocating resources of a virtual machine. Background Art
[0003] In a cloud environment, resource allocation (mapping) refers to the scheduling and allocation of physical resources required by VM (virtual machine) based on the topology of existing physical resources and resource pools, and then the deployment of virtual resources based on the resource scheduling results. Among them, a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. Virtual resources can specifically include vCPU (virtual central processing unit), vMEM (virtual memory), vIO (virtual Input / Output) devices, etc., and physical resources and resource pools are usually provided in the form of servers or server clusters. A server (cluster) has multiple processor nodes, where the processor node is a system composed of a physical CPU and physical memory and physical IO devices directly connected to its pins.
[0004] In the prior art, resource allocation is usually performed according to different virtual resource constraints. For example, the resource allocation method can be implemented in the following two ways:
[0005] The first method is to allocate resources in a static random allocation manner. For example, when allocating resources to a virtual machine, unoccupied physical processors, physical IOs, and physical MEMs are randomly selected and allocated to the virtual machine.
[0006] The second method is to dynamically allocate resources in real time according to the load of the physical processor. Specifically, according to the consumption of each physical core (i.e., the core in the physical processor refers to the independent computing unit in each physical processor) or hyperthread of the physical processor, the physical processor is dynamically and real-time allocated to the virtual processors of different virtual machines to achieve a basic balance in the consumption of all physical cores or hyperthreads on the physical processor. For example, if the physical processor has 8 physical cores, one virtual processor of the virtual machine can be dynamically and periodically set on these 8 physical cores, occupying one physical core for a period of time and another physical core for the next period of time, so that the load of all physical cores of the physical processor is basically balanced. The allocation of vMEM and vIO is usually random.
[0007] With the above two methods, there is a problem of large data transmission delay between the virtual processor, vMEM and vIO of the virtual machine, which increases the consumption of the physical processor and reduces the performance of the virtual machine. Summary of the invention
[0008] The embodiments of the present invention provide a method and device for allocating resources of a virtual machine, which can improve the performance of the virtual machine.
[0009] In order to achieve the above object, the present invention adopts the following technical scheme:
[0010] A first aspect of the present invention provides a method for allocating resources of a virtual machine, comprising:
[0011] Obtain resource allocation parameters of the virtual machine, the resource allocation parameters including scheduling parameters, the scheduling parameters being used to indicate that at least two of the physical processor resources, physical memory, and physical input / output (IO) devices allocated to the virtual machine are located in the same processor node;
[0012] Physical resources are allocated to the virtual machine according to the resource allocation parameters.
[0013] In a first possible implementation manner of the first aspect, the scheduling parameter includes at least any one of a scheduling memory parameter and a scheduling IO device parameter;
[0014] Among them, the scheduling memory parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical IO devices allocated to the virtual machine are both located in the same processor node.
[0015] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the scheduling IO device parameter includes at least one of the following parameters:
[0016] Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters;
[0017] Among them, the scheduling network card IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the network card IO device allocated to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the storage IO device allocated to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the acceleration IO device allocated to the virtual machine are located in the same processor node.
[0018] In combination with the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the resource allocation parameter further includes a satisfaction degree parameter, where the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters;
[0019] Among them, if the satisfaction degree parameter indicates that physical resources are allocated according to all parameters in the scheduling parameters, and the scheduling parameters include the scheduling memory parameters and the scheduling IO device parameters at the same time, then the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that physical resources are allocated according to some parameters in the scheduling parameters, then two of the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are located in the same processor node.
[0020] In combination with the first aspect or the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect or the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter with the highest priority or the lowest priority among the scheduling parameters;
[0021] The allocating physical resources to the virtual machine according to the resource allocation parameter comprises:
[0022] According to the scheduling parameters and the priority parameters, physical resources are allocated to the virtual machine so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
[0023] In combination with the first aspect or any one of the foregoing possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the resource allocation parameter further includes: a deployment parameter;
[0024] Among them, the deployment parameters include at least one of the following parameters: an isolation parameter, a sharing parameter, a hyperthreading enable parameter, and a hyperthreading allocation parameter; the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in a simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
[0025] In combination with the first aspect or any one of the foregoing possible implementations of the first aspect, in a sixth possible implementation of the first aspect, before allocating physical resources to the virtual machine according to the resource allocation parameter, the method further includes:
[0026] Get the topology information of the processor node;
[0027] The allocating physical resources to the virtual machine according to the resource allocation parameter comprises:
[0028] Selecting a processor node according to the topology information of the processor node and the resource allocation parameters of the virtual machine, and selecting a physical resource in the selected processor node;
[0029] The selected physical resource is allocated to the virtual machine.
[0030] In combination with the seventh possible implementation manner of the first aspect, in the seventh possible implementation manner of the first aspect, the topology information includes: the number of processor nodes, core information of physical processors in the processor nodes, information on the size of physical memory available for allocation in the processor nodes, and IO device information of the processor nodes;
[0031] The core information includes at least one of the number of physical cores, the number of hyperthreads of the physical cores, and the main frequency information of the physical cores; the IO device information includes the number, bandwidth, and type of network card IO devices that can be used for allocation, or the number, bandwidth, and type of storage IO devices that can be used for allocation, or the number, bandwidth, and type of acceleration IO devices that can be used for allocation.
[0032] A second aspect of the present invention provides a resource allocation device for a virtual machine, comprising a first physical processor, a first physical memory, and a first physical input and output IO device, wherein the first physical processor is used to:
[0033] Acquire resource allocation parameters of the virtual machine through the first physical IO device, where the resource allocation parameters include scheduling parameters, where the scheduling parameters are used to indicate that at least two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node;
[0034] Physical resources are allocated to the virtual machine according to the resource allocation parameters.
[0035] In a first possible implementation manner of the second aspect, the scheduling parameter includes at least any one of a scheduling memory parameter and a scheduling IO device parameter;
[0036] Among them, the scheduling memory parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical IO device allocated to the virtual machine are both located in the same processor node.
[0037] In combination with the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the scheduling IO device parameter includes at least one of the following parameters:
[0038] Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters;
[0039] Among them, the scheduling network card IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the network card IO device assigned to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the storage IO device assigned to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the acceleration IO device assigned to the virtual machine are located in the same processor node.
[0040] In combination with the first possible implementation manner of the second aspect or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the resource allocation parameter further includes a satisfaction degree parameter, where the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters;
[0041] The first physical processor is specifically configured to:
[0042] If the satisfaction degree parameter indicates that physical resources are allocated according to all parameters in the scheduling parameters, and the scheduling parameters include the scheduling memory parameters and the scheduling IO device parameters at the same time, then the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that physical resources are allocated according to some parameters in the scheduling parameters, then two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node.
[0043] In combination with the second aspect or any one of the foregoing possible implementations of the second aspect, in a fourth possible implementation of the second aspect, the resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter with a highest priority or a lowest priority among the scheduling parameters;
[0044] The allocating physical resources to the virtual machine according to the resource allocation parameter comprises:
[0045] According to the scheduling parameters and the priority parameters, physical resources are allocated to the virtual machine so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
[0046] In combination with the second aspect or any one of the foregoing possible implementations of the second aspect, in a fifth possible implementation of the second aspect,
[0047] The resource allocation parameters also include: deployment parameters;
[0048] Wherein, the deployment parameter includes at least one of the following parameters: isolation parameter, sharing parameter, hyperthreading enable parameter, hyperthreading allocation parameter;
[0049] Among them, the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in the simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
[0050] In combination with the second aspect or any one of the foregoing possible implementations of the second aspect, in a sixth possible implementation of the second aspect, the first physical processor is further configured to:
[0051] Acquire topology information of the processor node, and save the topology information into the first physical memory;
[0052] The allocating physical resources to the virtual machine according to the resource allocation parameter comprises:
[0053] Selecting a processor node according to the topology information of the processor node and the resource allocation parameters of the virtual machine, and selecting a physical resource in the selected processor node;
[0054] The selected physical resource is allocated to the virtual machine.
[0055] The present invention provides a method and device for allocating resources of a virtual machine, wherein the resource allocation method comprises: obtaining resource allocation parameters of the virtual machine, the resource allocation parameters comprising scheduling parameters, the scheduling parameters being used to indicate that at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine are located in the same processor node; and allocating physical resources to the virtual machine according to the resource allocation parameters. It can be seen that this method of making at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine located in the same processor node reduces the data transmission delay between the virtual processor, vMEM, and vIO of the virtual machine, thereby reducing the consumption of the physical processor and improving the performance of the virtual machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A schematic diagram of an example of a resource allocation method in the prior art;
[0058] Figure 2 A schematic diagram of a flow chart of a resource allocation method provided in Embodiment 1 of the present invention;
[0059] Figure 3 A schematic diagram of the structure of a resource allocation device provided in Embodiment 2 of the present invention;
[0060] Figure 4 A schematic diagram of the structure of a resource allocation device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] First of all, it should be noted that a server may include multiple processor nodes. A processor node includes a physical processor and physical memory and physical IO directly connected to the pins of the physical processor. For details, see Figure 1 Node1, Node2, Node3 and Node4 in the physical processor. A physical processor has multiple physical cores, and a physical core can have multiple hyperthreads. Based on this, the present invention also involves the following concepts, referring to Figure 1 , give a brief explanation.
[0063] Physical processors, such as Figure 1 The "processor" marked in the processor node Node1 of ; the physical core or physical Core, that is, the core in the physical processor, refers to the independent computing unit in each physical processor, such as Figure 1 The letter "c" marked in the processor; physical hyperthreading, which means that the computing unit of the physical core is shared in time through multiple copies of status register information, such as Figure 1 The letters "T0" and "T1" marked in the processor; physical memory, that is, the memory in the physical processor. Figure 1 The "memory" marked in Node1 of the physical processor. Figure 1 The "IO" marked in Node1 of the virtual machine; the virtual vMEM, that is, the memory of the virtual machine, indicates the physical memory allocated to the virtual machine; the virtual vIO, that is, the device of the virtual IO virtual machine, indicates the physical IO device allocated to the virtual machine; the virtual vCPU, that is, the virtual processor of the virtual machine, refers to the physical processor allocated to the virtual machine, which can be specifically a physical core allocated to the virtual machine or a physical hyperthread allocated to the virtual machine.
[0064] See also Figure 1 After research and analysis, the inventors found that the vCPU, vMEM and vIO of the virtual machine VM2 are mapped from the physical CPU, physical memory and physical IO of different processor nodes. This method of transmitting data across processor nodes causes a large data transmission delay for VM2 and also increases the consumption of physical processors in the processor node.
[0065] Embodiment 1
[0066] Embodiment 1 of the present invention provides a method for allocating resources of a virtual machine, which can be implemented in a server, a server cluster, or other non-server carriers. Figure 2 As shown, the method comprises the following steps:
[0067] S11, obtaining resource allocation parameters of the virtual machine, wherein the resource allocation parameters include scheduling parameters, and the scheduling parameters are used to indicate that at least two of the physical processor resources, physical memory, and physical input and output IO devices allocated to the virtual machine are located in the same processor node.
[0068] The physical processor resource may be the entire physical processor, a physical core in the physical processor, or a hyperthread in the physical core.
[0069] The resource allocation parameters in the prior art do not have the scheduling parameters described above. In the embodiment of the present invention, considering that whether the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are located in the same processor node will affect the application performance of the virtual machine, this parameter is added to the resource allocation parameters of the virtual resources.
[0070] In one embodiment of the present invention, the scheduling parameters include at least one of a scheduling memory parameter and a scheduling IO device parameter; wherein the scheduling memory parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical IO device allocated to the virtual machine are both located in the same processor node.
[0071] Specifically, the scheduling memory parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node. In other words, the physical processor resources and physical memory allocated to the same virtual machine do not need to transfer data across the processor node. Similarly, the scheduling IO device parameter is used to indicate that the physical processor resources and physical IO devices allocated to the virtual machine are both located in the same processor node. In other words, the physical processor resources and physical IO devices allocated to the same virtual machine do not need to transfer data across the processor node.
[0072] For example, in the scenario of applying for a large-traffic network forwarding virtual machine, the scheduling memory parameters and scheduling IO device parameters are used to ensure that the processor, memory, and IO devices allocated to the virtual machine can be in the same processor node. Under the same resource requirements, this allocation method will enable the virtual machine to obtain higher performance.
[0073] Furthermore, in the embodiment of the present invention, the scheduling IO device parameters may specifically include at least one of the following parameters:
[0074] Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters;
[0075] Among them, the scheduling network card IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the network card IO device allocated to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the storage IO device allocated to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the acceleration IO device allocated to the virtual machine are located in the same processor node.
[0076] For example, in the scenario of applying for an encryption and decryption acceleration device virtual machine, the scheduling memory parameters and scheduling acceleration IO device parameters are used so that the processor, memory, and acceleration IO device allocated to the virtual machine can be in the same processor node. Under the same resource requirements, this allocation method will enable the virtual machine to which the resources are allocated to obtain higher performance.
[0077] S12, allocating physical resources to the virtual machine according to the resource allocation parameters.
[0078] Specifically, physical resources are allocated to the virtual machine using a scheduling algorithm or the like according to the resource allocation parameters added in the above step S11 and the existing resource allocation parameters. For example, physical resources that can be allocated to the virtual machine are selected from a specific server, and the physical resources specifically include physical processor resources, physical memory, and physical IO devices. Through this selection, the mapping relationship between the virtual resources and the physical resources of the virtual machine can be determined. Then, according to the mapping relationship, the physical resources are respectively mapped to the virtual processor, virtual memory, and virtual IO of the virtual machine, thereby completing the allocation of physical resources to the virtual machine.
[0079] A resource allocation method for a virtual machine provided in a first embodiment of the present invention, wherein the resource allocation method comprises: obtaining resource allocation parameters of the virtual machine, the resource allocation parameters comprising scheduling parameters, the scheduling parameters being used to indicate that at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine are located in the same processor node; and allocating physical resources to the virtual machine according to the resource allocation parameters. It can be seen that this method of making at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine located in the same processor node reduces the data transmission delay between the virtual processor, vMEM, and vIO of the virtual machine, thereby reducing the consumption of the physical processor and improving the performance of the virtual machine.
[0080] Optionally, in an implementation scenario of the above embodiment, the resource allocation parameter in step S11 may further include a priority parameter, wherein the priority parameter is used to indicate a parameter with the highest priority or the lowest priority among the scheduling parameters;
[0081] In this case, the above step S12 of allocating physical resources to the virtual machine according to the resource allocation parameters may specifically include:
[0082] Physical resources are allocated to the virtual machine according to the scheduling parameters and the priority parameters, so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
[0083] Specifically, multiple parameters included in the scheduling parameters can be set to have different levels of priorities, wherein, if a parameter included in the scheduling parameters is set to have the highest priority, then when allocating physical resources to the virtual machine, the physical resources should be allocated at least according to the parameter with the highest priority; if a parameter included in the scheduling parameters is set to have the lowest priority, and other parameters in the scheduling parameters are set to have higher priorities relative to this parameter, then when allocating physical resources to the virtual machine, the physical resources are first allocated according to the parameter higher than the parameter with the lowest priority, and then the physical resources can be allocated according to the parameter with the lowest priority.
[0084] For example, when the scheduling parameters include scheduling memory parameters, scheduling network card IO device parameters, and scheduling storage IO device parameters, and the scheduling memory parameters are set to have the highest priority, the scheduling network card IO device parameters have the lowest priority, and the scheduling storage IO device parameters have a higher priority than the scheduling network card IO device parameters and lower than the scheduling memory parameters. When allocating physical resources to virtual machines, first, the physical resources are allocated according to the scheduling memory parameters, that is, when the physical resources are allocated, it is necessary to realize that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node. Next, the physical resources are allocated according to the scheduling storage IO device parameters, that is, when the physical resources are allocated, it is necessary to realize that the physical processor resources allocated to the virtual machine and the storage IO devices allocated to the virtual machine are located in the same processor node. Finally, the physical resources are allocated according to the scheduling network card IO device parameters, that is, when the physical resources are allocated, it is necessary to realize that the physical processor resources allocated to the virtual machine and the network card IO devices allocated to the virtual machine are located in the same processor node.
[0085] Furthermore, optionally, in another implementation scenario of the above embodiment, the resource allocation parameter in step S11 further includes a satisfaction degree parameter, and the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters.
[0086] Among them, if the satisfaction degree parameter indicates that the physical resources are allocated according to all the parameters included in the scheduling parameters, and the scheduling parameters also include the scheduling memory parameters and the scheduling IO device parameters, then the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that the physical resources are allocated according to some of the parameters included in the scheduling parameters, then two of the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are located in the same processor node.
[0087] Specifically, the set satisfaction degree parameter is, to a certain extent, a parameter for mandatory execution of resource allocation. For example, when the satisfaction degree parameter is set to indicate that physical resources are allocated according to all parameters included in the scheduling parameters and the scheduling parameters also include scheduling memory parameters and scheduling IO device parameters, it is mandatory that the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine must all be located in the same processor node. For another example, when the satisfaction degree parameter is set to indicate that physical resources are allocated according to certain parameters included in the scheduling parameters, such as allocating physical resources according to scheduling network card IO device parameters, the physical processor resources allocated to the virtual machine and the network card IO devices allocated to the virtual machine must both be located in the same processor node.
[0088] Optionally, in another implementation scenario of the above embodiment, the resource allocation parameter in step S11 also includes: deployment parameters, which may include at least one of the following parameters: isolation parameters, sharing parameters, hyperthreading enable parameters, and hyperthreading allocation parameters.
[0089] Among them, the isolation parameter is used to indicate whether the physical virtual processor resources allocated to the virtual machine and the virtual physical processor resources allocated to the virtual machine monitor (hypervisor) share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the virtual physical processor resources of the virtual machine and the virtual processor physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether the hyperthreads of the same physical core are in the simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether the hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
[0090] Specifically, the above isolation parameter, sharing parameter, hyperthreading enabling parameter, and hyperthreading allocation parameter may represent different meanings by taking different values.
[0091] For example, for the hyperthreading enable parameter, when its value is a first preset value, for example, 0 or yes, it means that multiple hyperthreads of the physical core of the same physical processor are all turned on; when its value is a second preset value, for example, 1 or no, it means that only one hyperthread of the multiple hyperthreads of the physical core of the same physical processor is turned on. In the case where only one of the multiple hyperthreads of the physical core of the same physical processor is turned on, the physical processor consumes less, thereby improving the performance of the virtual machine. In addition, the hyperthreading enable parameter can also take a third preset value, indicating that only a certain number of the multiple hyperthreads of the same physical core are turned on, so that when it is not possible to turn on only one hyperthread, it is not necessary to turn on all hyperthreads. Among them, the number can be set by a person skilled in the art, and the present invention is not limited.
[0092] And, for the isolation parameter, when its value is, for example, 0 or yes, it means that the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the hypervisor do not share the same hyperthread in the same physical core; when its value is, for example, 1 or no, it means that the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the hypervisor share the same hyperthread in the same physical core. In the case that the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the hypervisor do not share the same hyperthread in the same physical core, the competition between the virtual machine and the hypervisor for the same hyperthread can be eliminated, thereby avoiding switching between the virtual machine and the hypervisor when using the same hyperthread, and improving the performance of the virtual machine.
[0093] Similarly, the setting of sharing parameters can refer to the setting of isolation parameters. In this way, when the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine do not share the same hyperthread in the same physical core, the competition between the virtual machine and other virtual machines for the same hyperthread can be eliminated, thereby avoiding switching between the virtual machine and other virtual machines and improving the performance of the virtual machine.
[0094] Similarly, different values can be taken for the hyperthread allocation parameter to indicate whether the hyperthreads of the same physical core can be allocated to different virtual machines. If the hyperthreads of the same physical core cannot be allocated to different virtual machines, it indicates that the hyperthreads of the physical core are exclusively used by only one virtual machine, thereby avoiding switching between the virtual machine and other virtual machines and improving the performance of the virtual machine.
[0095] In addition, optionally, in a specific embodiment of the present invention, before allocating physical resources to the virtual machine according to the resource allocation parameters in step S12, the following steps may also be included:
[0096] 121, obtaining topology information of the processor node;
[0097] In this case, step S12 specifically includes: selecting a processor node according to the topology information of the processor node and the resource allocation parameters of the virtual machine, selecting a physical resource in the selected processor node, and allocating the selected physical resource to the virtual machine.
[0098] Optionally, the topology information may include: the number of processor nodes, core information of physical processors in the processor nodes, information on the size of physical memory available for allocation in the processor nodes, and IO device information of the processor nodes;
[0099] The core information includes at least one of the number of physical cores, the number of hyperthreads of the physical cores, and the main frequency information of the physical cores; the IO device information includes the number, bandwidth, and type of network card IO devices that can be used for allocation, or the number, bandwidth, and type of storage IO devices that can be used for allocation, or the number, bandwidth, and type of acceleration IO devices that can be used for allocation.
[0100] It should be noted that the various information contained in the topology information of the processor, memory, and IO device in the processor node can be selectively used by those skilled in the art based on experience or specific actual conditions, and is not limited to using all of the above information.
[0101] Embodiment 2
[0102] The second embodiment of the present invention provides a virtual machine resource allocation device 20, which can be set in a server, a server cluster or other non-server carriers. Figure 3 As shown, the device includes: a first physical processor 201, a first physical memory 202, and a first physical input and output IO device 203. The first physical processor 201 is used to:
[0103] Obtain resource allocation parameters of the virtual machine through the first physical IO device 203, where the resource allocation parameters include scheduling parameters, where the scheduling parameters are used to indicate that at least two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node;
[0104] Physical resources are allocated to the virtual machine according to the resource allocation parameters.
[0105] The second embodiment of the present invention provides a resource allocation device 20 for a virtual machine, which includes a first physical processor, which obtains resource allocation parameters of the virtual machine through a physical IO device, wherein the resource allocation parameters include a scheduling parameter, and the scheduling parameter is used to indicate that at least two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node; and physical resources are allocated to the virtual machine according to the resource allocation parameters. It can be seen that this device that makes at least two of the physical processor resources, physical memory, and physical input and output IO devices allocated to the virtual machine located in the same processor node reduces the data transmission delay between the virtual processor, vMEM, and vIO of the virtual machine, thereby reducing the consumption of the physical processor and improving the performance of the virtual machine.
[0106] It should be noted that the second physical processor, the second physical memory and the second physical IO device may be arranged in the resource allocation device 20 or may not be arranged in the resource allocation device 20, and this is not limited.
[0107] Optionally, in a specific embodiment of the present invention, the scheduling parameter includes at least any one of a scheduling memory parameter and a scheduling IO device parameter;
[0108] Among them, the scheduling memory parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical IO device allocated to the virtual machine are both located in the same processor node.
[0109] Further, in a specific embodiment of the present invention, scheduling IO device parameters includes at least one of the following parameters: scheduling network card IO device parameters, scheduling storage IO device parameters, and scheduling acceleration IO device parameters;
[0110] Among them, the scheduling network card IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the network card IO device assigned to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the storage IO device assigned to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the acceleration IO device assigned to the virtual machine are located in the same processor node.
[0111] Optionally, in a specific embodiment of the present invention, the resource allocation parameter further includes a satisfaction degree parameter, and the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters;
[0112] The first physical processor 201 is specifically used for:
[0113] If the satisfaction degree parameter indicates that physical resources are allocated according to all parameters in the scheduling parameters, and the scheduling parameters include the scheduling memory parameters and the scheduling IO device parameters at the same time, then the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that physical resources are allocated according to some parameters in the scheduling parameters, then two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node.
[0114] Optionally, in a specific embodiment of the present invention, the resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter having the highest priority or the lowest priority among the scheduling parameters;
[0115] Then the first physical processor 201 is specifically used for:
[0116] Physical resources are allocated to the virtual machine according to the scheduling parameters and the priority parameters, so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
[0117] Optionally, in a specific embodiment of the present invention, the resource allocation parameters further include: deployment parameters;
[0118] Wherein, the deployment parameter includes at least one of the following parameters: isolation parameter, sharing parameter, hyperthreading enable parameter, hyperthreading allocation parameter;
[0119] Among them, the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in the simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
[0120] Optionally, in a specific embodiment of the present invention, the first physical processor 201 is further configured to:
[0121] Acquire topology information of the processor node, and save the topology information into the first physical memory 202;
[0122] A processor node is selected according to the topology information of the processor node and the resource allocation parameter of the virtual machine, and a physical resource is selected in the selected processor node; and then the selected physical resource is allocated to the virtual machine.
[0123] It should be noted that the specific implementation of each structural part in the above device can refer to the description in Example 1, and will not be repeated here.
[0124] Embodiment 3
[0125] Embodiment 3 of the present invention further provides a virtual machine resource allocation device 30, the device comprising:
[0126] An acquisition unit 301 is used to acquire resource allocation parameters of a virtual machine, where the resource allocation parameters include scheduling parameters, where the scheduling parameters are used to indicate that at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine are located in the same processor node;
[0127] The allocation unit 302 is configured to allocate physical resources to the virtual machine according to the resource allocation parameters.
[0128] In the resource allocation device 30 for a virtual machine provided in the third embodiment of the present invention, an acquisition unit 301 acquires resource allocation parameters of the virtual machine, and the resource allocation parameters include scheduling parameters, and the scheduling parameters are used to indicate that at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine are located in the same processor node; an allocation unit 302 allocates physical resources to the virtual machine according to the resource allocation parameters. It can be seen that this device that makes at least two of the physical processor resources, physical memory, and physical input / output IO devices allocated to the virtual machine located in the same processor node reduces the data transmission delay between the virtual processor, vMEM, and vIO of the virtual machine, thereby reducing the consumption of the physical processor and improving the performance of the virtual machine.
[0129] Among them, optionally, the scheduling parameters include at least one of a scheduling memory parameter and a scheduling IO device parameter; the scheduling memory parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical IO device allocated to the virtual machine are both located in the same processor node.
[0130] Furthermore, the scheduling IO device parameters include at least one of the following parameters:
[0131] Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters;
[0132] Among them, the scheduling network card IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the network card IO device allocated to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the storage IO device allocated to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the acceleration IO device allocated to the virtual machine are located in the same processor node.
[0133] Optionally, the resource allocation parameter further includes a satisfaction degree parameter, where the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameter;
[0134] In this case, the allocation unit 302 is specifically used for: if the satisfaction degree parameter indicates that the physical resources are allocated according to all the parameters in the scheduling parameters, and the scheduling parameters also include the scheduling memory parameters and the scheduling IO device parameters, then the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that the physical resources are allocated according to some of the parameters in the scheduling parameters, then two of the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are located in the same processor node.
[0135] Optionally, the resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter having the highest priority or the lowest priority among the scheduling parameters;
[0136] In this case, the allocation unit 302 is specifically used for:
[0137] According to the scheduling parameters and the priority parameters, physical resources are allocated to the virtual machine so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
[0138] In addition, optionally, the resource allocation parameters also include: deployment parameters;
[0139] Among them, the deployment parameters include at least one of the following parameters: an isolation parameter, a sharing parameter, a hyperthreading enable parameter, and a hyperthreading allocation parameter; the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in a simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
[0140] Optionally, the acquisition unit 301 is further used to acquire topology information of the processor node;
[0141] In this case, the allocation unit is specifically used for:
[0142] A processor node is selected according to the topology information of the processor node and the resource allocation parameter of the virtual machine, and a physical resource is selected in the selected processor node; and the selected physical resource is allocated to the virtual machine.
[0143] Optionally, the topology information includes: the number of processor nodes, the core information of the physical processors in the processor nodes, the information of the size of the physical memory available for allocation in the processor nodes, and the IO device information of the processor nodes; wherein the core information includes at least one of the number of physical cores, the number of hyperthreads of the physical cores, and the main frequency information of the physical cores; the IO device information includes the number, bandwidth and type of network card IO devices available for allocation, or the number, bandwidth and type of storage IO devices available for allocation, or the number, bandwidth and type of acceleration IO devices available for allocation.
[0144] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which can be a read-only memory, a disk or an optical disk, etc.
[0145] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for allocating resources of a virtual machine, It is characterized in that Applied to a server, the server includes a plurality of processor nodes, each processor node includes a physical processor and a physical memory and a physical input / output IO device directly connected to the pins of the physical processor; the method includes: Obtain resource allocation parameters of the virtual machine, the resource allocation parameters including scheduling parameters, the scheduling parameters being used to indicate that at least two of the physical processor resources, physical memory, and physical input / output (IO) devices allocated to the virtual machine are located in the same processor node; Allocating physical resources to the virtual machine according to the resource allocation parameters; The scheduling parameters include at least one of a scheduling memory parameter and a scheduling IO device parameter; The scheduling memory parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the physical IO devices allocated to the virtual machine are both located in the same processor node; The resource allocation parameters further include a satisfaction degree parameter, and the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters; Among them, if the satisfaction degree parameter indicates that physical resources are allocated according to all parameters in the scheduling parameters, and the scheduling parameters include the scheduling memory parameters and the scheduling IO device parameters at the same time, then the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that physical resources are allocated according to some parameters in the scheduling parameters, then two of the physical processor resources, physical memory, and physical IO devices allocated to the virtual machine are located in the same processor node.
2. The method according to claim 1, It is characterized in that The scheduling IO device parameters include at least one of the following parameters: Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters; Among them, the scheduling network card IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the network card IO device allocated to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the storage IO device allocated to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the physical processor resources allocated to the virtual machine and the acceleration IO device allocated to the virtual machine are located in the same processor node.
3. The method according to claim 1 or 2, It is characterized in that The resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter having the highest priority or the lowest priority among the scheduling parameters; The allocating physical resources to the virtual machine according to the resource allocation parameter comprises: According to the scheduling parameters and the priority parameters, physical resources are allocated to the virtual machine so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
4. The method according to claim 1 or 2, It is characterized in that The resource allocation parameters also include: deployment parameters; Among them, the deployment parameters include at least one of the following parameters: an isolation parameter, a sharing parameter, a hyperthreading enable parameter, and a hyperthreading allocation parameter; the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in a simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
5. The method according to claim 1 or 2, It is characterized in that Before allocating physical resources to the virtual machine according to the resource allocation parameters, the method further includes: Get the topology information of the processor node; The allocating physical resources to the virtual machine according to the resource allocation parameter comprises: Selecting a processor node according to the topology information of the processor node and the resource allocation parameters of the virtual machine, and selecting a physical resource in the selected processor node; The selected physical resource is allocated to the virtual machine.
6. The method according to claim 5, It is characterized in that The topology information includes: the number of processor nodes, core information of physical processors in the processor nodes, information on the size of physical memory available for allocation in the processor nodes, and IO device information of the processor nodes; The core information includes at least one of the number of physical cores, the number of hyperthreads of the physical cores, and the main frequency information of the physical cores; the IO device information includes the number, bandwidth, and type of network card IO devices that can be used for allocation, or the number, bandwidth, and type of storage IO devices that can be used for allocation, or the number, bandwidth, and type of acceleration IO devices that can be used for allocation.
7. A resource allocation device for a virtual machine, It is characterized in that The resource allocation device is provided in a server, wherein the server includes a plurality of processor nodes, each of which includes a physical processor and a physical memory and a physical input / output IO device directly connected to the pin of the physical processor; the resource allocation device includes a first physical processor, a first physical memory, and a first physical input / output IO device, wherein the first physical processor is used to: Acquire resource allocation parameters of the virtual machine through the first physical IO device, where the resource allocation parameters include scheduling parameters, where the scheduling parameters are used to indicate that at least two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node; Allocating physical resources to the virtual machine according to the resource allocation parameters; The scheduling parameters include at least one of a scheduling memory parameter and a scheduling IO device parameter; The scheduling memory parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical memory allocated to the virtual machine are both located in the same processor node, and the scheduling IO device parameter is used to indicate that the second physical processor allocated to the virtual machine and the second physical IO device allocated to the virtual machine are both located in the same processor node; The resource allocation parameters further include a satisfaction degree parameter, and the satisfaction degree parameter is used to indicate that physical resources are allocated to the virtual machine according to all or part of the parameters in the scheduling parameters; The first physical processor is specifically configured to: If the satisfaction degree parameter indicates that physical resources are allocated according to all parameters in the scheduling parameters, and the scheduling parameters include the scheduling memory parameters and the scheduling IO device parameters at the same time, then the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are all located in the same processor node; if the satisfaction degree parameter indicates that physical resources are allocated according to some parameters in the scheduling parameters, then two of the second physical processor, the second physical memory, and the second physical IO device allocated to the virtual machine are located in the same processor node.
8. The device according to claim 7, It is characterized in that The scheduling IO device parameters include at least one of the following parameters: Schedule network card IO device parameters, schedule storage IO device parameters, and schedule acceleration IO device parameters; Among them, the scheduling network card IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the network card IO device assigned to the virtual machine are located in the same processor node, the scheduling storage IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the storage IO device assigned to the virtual machine are located in the same processor node, and the scheduling acceleration IO device parameter is used to indicate that the second physical processor assigned to the virtual machine and the acceleration IO device assigned to the virtual machine are located in the same processor node.
9. The device according to claim 7 or 8, It is characterized in that The resource allocation parameter further includes a priority parameter, wherein the priority parameter is used to indicate a parameter having the highest priority or the lowest priority among the scheduling parameters; The first physical processor is specifically configured to: According to the scheduling parameters and the priority parameters, physical resources are allocated to the virtual machine so that the physical resources allocated to the virtual machine meet the scheduling parameters with the highest priority.
10. The device according to claim 7 or 8, It is characterized in that The resource allocation parameters also include: deployment parameters; Wherein, the deployment parameter includes at least one of the following parameters: isolation parameter, sharing parameter, hyperthreading enable parameter, hyperthreading allocation parameter; Among them, the isolation parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to the virtual machine monitor hypervisor share the same hyperthread in the same physical core; the sharing parameter is used to indicate whether the physical processor resources allocated to the virtual machine and the physical processor resources allocated to any other virtual machine share the same hyperthread in the same physical core; the hyperthreading enable parameter is used to indicate whether multiple hyperthreads of the same physical core are in the simultaneously turned on state; the hyperthreading allocation parameter is used to indicate whether multiple hyperthreads of the same physical core are allowed to be allocated to different virtual machines respectively.
11. The device according to claim 7 or 8, It is characterized in that The first physical processor is further configured to: Acquire topology information of the processor node, and save the topology information into the first physical memory; Selecting a processor node according to the topology information of the processor node and the resource allocation parameters of the virtual machine, and selecting a physical resource in the selected processor node; The selected physical resource is allocated to the virtual machine.
12. A resource allocation device for a virtual machine, It is characterized in that The method comprises a unit for executing the method according to any one of claims 1 to 6.
13. A computer-readable storage medium, It is characterized in that Instructions are stored thereon, and when the instructions are executed on a resource allocation device of a virtual machine, the resource allocation device of the virtual machine executes the method according to any one of claims 1 to 6.
14. A computer program product, It is characterized in that Instructions are stored thereon, and when the instructions are executed on a resource allocation device of a virtual machine, the resource allocation device of the virtual machine executes the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for establishing database cluster by utilizing virtualization
CN101859317A
Load balancing method based on vector mapping
CN102571986A
Resource allocation method of virtual machines, and communication equipment
CN103473136A
Method for trading resources between partitions of a data processing system
US20080168457A1
Systems and Methods for Facilitating Virtualization of a Heterogeneous Processor Pool
US20100138828A1
