CN113032101B - Resource allocation method of virtual machine, server and computer readable storage medium - Google Patents

Resource allocation method of virtual machine, server and computer readable storage medium Download PDF

Info

Publication number
CN113032101B
CN113032101B CN202110352914.4A CN202110352914A CN113032101B CN 113032101 B CN113032101 B CN 113032101B CN 202110352914 A CN202110352914 A CN 202110352914A CN 113032101 B CN113032101 B CN 113032101B
Authority
CN
China
Prior art keywords
virtual machine
resources
type
resource
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110352914.4A
Other languages
Chinese (zh)
Other versions
CN113032101A (en
Inventor
陈列
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202110352914.4A priority Critical patent/CN113032101B/en
Publication of CN113032101A publication Critical patent/CN113032101A/en
Application granted granted Critical
Publication of CN113032101B publication Critical patent/CN113032101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Abstract

The invention discloses a resource allocation method of a virtual machine, a server and a computer readable storage medium, wherein the virtual machine runs on the server, and the resource allocation method of the virtual machine comprises the following steps: the method comprises the steps of obtaining identification information of each virtual machine, wherein the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated; and distributing the resources of each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine. Therefore, the performance of the virtual machine of the specific type can be improved when the resource allocation is carried out.

Description

Resource allocation method of virtual machine, server and computer readable storage medium
Technical Field
The present invention relates to the field of virtual machines, and in particular, to a resource allocation method, a server, and a computer readable storage medium for a virtual machine.
Background
In a virtualized environment, a plurality of virtual machines run on the same server, a certain type of task is run in each virtual machine, the types of tasks such as batch type tasks and delay sensitive type tasks are distributed in the same mode, however, under the condition that the load of the server is high, the delay of the delay sensitive type tasks is greatly improved, the type of virtual machine often needs to consume higher performance, but the performance is lower in actual running, and therefore, when the resource distribution is performed in the mode, the technical problem that the performance of the specific type of virtual machine is lower exists.
Disclosure of Invention
The invention mainly aims to provide a resource allocation method, a server and a computer readable storage medium of a virtual machine, and aims to solve the technical problem that the performance of a specific type of virtual machine is low when resource allocation is carried out.
In order to achieve the above object, the present invention provides a method for allocating resources of a virtual machine, where the virtual machine runs on a server, and the method for allocating resources of the virtual machine includes:
the method comprises the steps of obtaining identification information of each virtual machine, wherein the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated;
and correspondingly distributing resources required by each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine.
Optionally, the resources include physical cores, final caches and memory bandwidth resources of the server, and the step of correspondingly allocating the resources required by each virtual machine according to the identification information includes:
and according to the identification information, carrying out resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine, wherein the resource isolation operation comprises the step of distributing different resources to the first type virtual machine and the second type virtual machine.
Optionally, after the step of performing the resource isolation operation on the server resource occupied by the first type of virtual machine and the server resource occupied by the second type of virtual machine according to the identification information, the method further includes:
determining a target virtual central processor corresponding to the first type virtual machine;
binding the target virtual central processors with physical central processors, wherein each target virtual central processor is bound with one physical central processor, the target virtual central processor corresponds to a target thread, and the target thread only runs in the bound physical central processors.
Optionally, after the step of obtaining the identification information of each virtual machine, the method further includes:
determining a preset resource allocation identifier associated with the first type virtual machine;
executing a step of performing resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine according to the identification information when the preset resource allocation identification is a resource isolation identification;
or when the preset resource allocation identifier is a resource sharing identifier, configuring the resources to the first type of virtual machine according to a first preset weight value, configuring the resources to the second type of virtual machine according to a second preset weight value, wherein the first preset weight value and the second preset weight value are used for indicating the proportion of the allocated resources in all the resources of the server when the resources are configured, and the first preset weight value is larger than the second preset weight value.
Optionally, the resources include a first thread resource and a second thread resource, and the step of allocating the resources of each virtual machine according to the identification information includes:
determining a first thread resource of the virtual central processor corresponding to the first type virtual machine and a second thread resource of the virtual central processor corresponding to the second type virtual machine according to the identification information;
and allocating the first thread resource to the first type virtual machine and the second thread resource to the second type virtual machine, wherein the priority of the first thread resource is higher than that of the second thread resource.
Optionally, the resource includes a central processing unit time slice, and the step of allocating the resource of each virtual machine according to the identification information includes:
and distributing weight information of the CPU time slices of the virtual machines according to the identification information, wherein the weight information of the first type virtual machine is larger than that of the second type virtual machine.
Optionally, the resources include memory page resources, and the step of allocating the resources of each virtual machine according to the identification information includes:
Determining a first memory page resource of the first type virtual machine and a second memory page resource of the second type virtual machine according to the identification information, wherein the first memory page resource is a large-page memory, and the first memory page resource is larger than the second memory page resource;
and allocating the first memory page resources to the first type virtual machine and allocating the second memory page resources to the second type virtual machine.
Optionally, the resource includes a non-uniform memory access node resource, and after the step of obtaining the identification information of each virtual machine, the method further includes:
determining target node resources according to a first quantity corresponding to the non-uniform memory access node resources and a second quantity corresponding to the first type of virtual machines, wherein the first quantity is the quantity of physical central processing units, and the second quantity is the quantity of virtual central processing units; when the first quantity is larger than the second quantity, taking the non-uniform memory access node resource corresponding to the first quantity as a target node resource;
the step of allocating the resources of each virtual machine according to the identification information comprises the following steps:
And according to the identification information, distributing the target node resources to the first type virtual machine, and distributing the non-target node resources to the second type virtual machine.
In addition, to achieve the above object, the present invention also provides a server including:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring identification information of each virtual machine, the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated;
and the allocation module is used for correspondingly allocating the resources required by each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine.
In addition, in order to achieve the above object, the present invention provides a server including a memory, a processor, and a resource allocation program of a virtual machine stored in the memory and executable on the processor, wherein the resource allocation program of the virtual machine, when executed by the processor, implements the steps of the resource allocation method of the virtual machine according to any one of the above.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a resource allocation program of a virtual machine, which when executed by a processor, implements the steps of the resource allocation method of a virtual machine described in any one of the above.
According to the resource allocation method, the server and the computer readable storage medium of the virtual machines, the resources of the virtual machines are allocated according to the identification information by acquiring the identification information of the virtual machines, wherein the identification information is used for distinguishing the first type virtual machine from the second type virtual machine, the first type virtual machine is the virtual machine with performance required to be improved when the resources are allocated, and the second type virtual machine is the virtual machine with performance required to be reduced when the resources are allocated, so that the performance of the first type virtual machine is higher than that of the second type virtual machine, and the performance of the specific type virtual machine is effectively improved when the resources are allocated.
Drawings
FIG. 1 is a schematic diagram of a server according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for allocating resources to a virtual machine according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for allocating resources to a virtual machine according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a method for allocating resources in a virtual machine according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a method for allocating resources to a virtual machine according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a method for allocating resources for a virtual machine according to the present invention;
FIG. 7 is a schematic diagram of functional modules of a server according to the present invention;
fig. 8 is a schematic diagram of an embodiment of an application scenario according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server according to an embodiment of the present invention.
As shown in fig. 1, the server may include: a processor 1001, such as a CPU, memory 1002, a communications bus 1003. Wherein the communication bus 1003 is used to enable connectivity communications between these components. The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1002 may alternatively be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the server architecture shown in fig. 1 is not limiting of the server and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1002, which is a kind of computer storage medium, may include an operating system and a resource allocation program of a virtual machine.
In the server shown in fig. 1, the processor 1001 may be used to call a resource allocation program of the virtual machine stored in the memory 1002, and perform the following operations:
the method comprises the steps of obtaining identification information of each virtual machine, wherein the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated;
and correspondingly distributing resources required by each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
And according to the identification information, carrying out resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine, wherein the resource isolation operation comprises the step of distributing different resources to the first type virtual machine and the second type virtual machine.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
determining a target virtual central processor corresponding to the first type virtual machine;
binding the target virtual central processors with physical central processors, wherein each target virtual central processor is bound with one physical central processor, the target virtual central processor corresponds to a target thread, and the target thread only runs in the bound physical central processors.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
determining a preset resource allocation identifier associated with the first type virtual machine;
executing a step of performing resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine according to the identification information when the preset resource allocation identification is a resource isolation identification;
Or when the preset resource allocation identifier is a resource sharing identifier, configuring the resources to the first type of virtual machine according to a first preset weight value, configuring the resources to the second type of virtual machine according to a second preset weight value, wherein the first preset weight value and the second preset weight value are used for indicating the proportion of the allocated resources in all the resources of the server when the resources are configured, and the first preset weight value is larger than the second preset weight value.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
according to the identification information, determining a first thread resource of a virtual central processor corresponding to the first type virtual machine and a second thread resource of the virtual central processor corresponding to the second type virtual machine, distributing the first thread resource to the first type virtual machine, and distributing the second thread resource to the second type virtual machine, wherein the priority of the first thread resource is higher than that of the second thread resource.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
And distributing weight information of the CPU time slices of the virtual machines according to the identification information, wherein the weight information of the first type virtual machine is larger than that of the second type virtual machine.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
determining a first memory page resource of the first type virtual machine and a second memory page resource of the second type virtual machine according to the identification information, wherein the first memory page resource is a large-page memory, and the first memory page resource is larger than the second memory page resource;
and allocating the first memory page resources to the first type virtual machine and allocating the second memory page resources to the second type virtual machine.
Further, the processor 1001 may call a resource allocation program of the virtual machine stored in the memory 1002, and further perform the following operations:
determining target node resources according to a first quantity corresponding to the non-uniform memory access node resources and a second quantity corresponding to the first type of virtual machines, wherein the first quantity is the quantity of physical central processing units, and the second quantity is the quantity of virtual central processing units; when the first quantity is larger than the second quantity, taking the non-uniform memory access node resource corresponding to the first quantity as a target node resource;
The step of allocating the resources of each virtual machine according to the identification information comprises the following steps:
and according to the identification information, distributing the target node resources to the first type virtual machine, and distributing the non-target node resources to the second type virtual machine.
Referring to fig. 2, a first embodiment of the present invention provides a method for allocating virtual machines, where the method for allocating virtual machines includes:
step S10, obtaining identification information of each virtual machine, wherein the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to improve performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to reduce performance when resources are allocated;
in the present embodiment, the execution subject is a server. The server comprises a physical server. The virtual machine is special software running on the server, and is a special process for the lower physical machine and a virtual server environment for the upper user; in a virtualized environment, a plurality of virtual machines run on the same host, and each virtual machine runs different types of tasks, such as batch processing type tasks and delay sensitive type tasks, and because the virtual machines are only a plurality of multithreaded tasks, a server cannot distinguish the different types of tasks; in the embodiment, the performance of the first type virtual machine is higher than that of the second type virtual machine by acquiring the identification information of the virtual machine and distributing the resources of each virtual machine according to the identification information, so that the performance of the first type virtual machine is improved, and the user experience is improved.
The identification information is used for distinguishing the types of the virtual machines into a first type virtual machine or a second type virtual machine, the data form of the identification information includes but is not limited to character strings, such as a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine with performance improvement when resources are allocated, the second type virtual machine is a virtual machine with performance reduction when resources are allocated, wherein the meaning of performance improvement or performance reduction is that the performance of one part of virtual machines is reduced along with the performance reduction of the other part of virtual machines when the performance of one part of virtual machines is improved due to the fact that the total amount of the server resources is fixed, and therefore, the performance improvement or reduction pointed by the embodiment refers to that the performance of the virtual machines is improved or reduced relative to the performance of the virtual machines before the resources are allocated, specifically, the performance of the first type virtual machine is improved after the resources are allocated, and the performance of the second type virtual machine is reduced after the resources are allocated; the server may prompt the user to select the created virtual machine as the first type virtual machine or the second type virtual machine in advance when the user creates the virtual machine, and set the identification information of the virtual machine as the identification information of the first type virtual machine or the identification information of the second type virtual machine after the user finishes selecting.
And step S20, distributing the resources of each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine.
The resources refer to hardware resources or software resources of a server occupied by the virtual machines, when the resources of each virtual machine are allocated, the performance of the first type virtual machine needs to be higher than that of the second type virtual machine, and various modes exist, for example, the priority of the first type virtual machine can be improved, the priority of the first type virtual machine is higher than that of the second type virtual machine, or a large page memory of the first type virtual machine can be started; or, enabling the first type virtual machine to locally perform memory access, so that other virtual machines are prevented from occupying processor resources of the first type virtual machine; or, the resources of the first type virtual machine and the second type virtual machine can be isolated, so that the first type virtual machine monopolizes the hardware resources of the server, the performance of the first type virtual machine is improved, and the performance of the first type virtual machine is higher than that of the second type virtual machine. In addition, since the total amount of resources of the server is fixed, each time a resource allocation mode is added to enable the performance of the first type virtual machine to be higher than that of the second type virtual machine, the performance of the second type virtual machine is indirectly reduced, so that in order to balance the performance of the first type virtual machine and the performance of the second type virtual machine, the above-mentioned mode of allocating resources of each virtual machine can be allocated according to actual requirements of users, for example, when the users create the virtual machines, the users are prompted to output prompt information to prompt the users to select the number and modes of resource allocation required by the current virtual machine, for example, the users select to open a large page memory and isolate resources, when the virtual machines allocate resources, the virtual machines allocate resources based on the operation of opening the large page memory and isolating resources, so that the performance consumption of the virtual machines in the server can be balanced, and the actual use requirements of the users can be met.
FIG. 8 is a schematic diagram of an embodiment of an application scenario in which a server running a virtual machine communicates with a terminal through a network, the server provides a virtual machine function for a user through the network, and can acquire various operation requests sent by the user based on the terminal in real time, and respond and execute the various operation requests sent by the terminal in the virtual machine, thereby realizing various function requirements of the user; if the user needs to set a certain virtual machine as the first type virtual machine to achieve the effect of improving performance, the user can operate the terminal, select the certain virtual machine as the first type virtual machine on a display interface of the terminal, and set identification information of the certain virtual machine as the first type virtual machine after acquiring a request of the terminal to set the certain virtual machine as the first type virtual machine, and perform resource allocation to improve performance of the virtual machine.
In this embodiment, by acquiring the identification information of each virtual machine, the resources of each virtual machine are allocated according to the identification information, where the identification information is used to distinguish between the first type virtual machine and the second type virtual machine, so that the performance of the first type virtual machine is higher than that of the second type virtual machine, and thus, when the resources are allocated, the performance of the specific type virtual machine is effectively improved.
Referring to fig. 3, a second embodiment of the present invention provides a method for allocating virtual machines, based on the first embodiment shown in fig. 2, the step S20 includes:
and S21, according to the identification information, performing resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine, wherein the resource isolation operation comprises the step of distributing different resources to the first type virtual machine and the second type virtual machine.
The physical cores refer to central processing unit (Central Processing Unit, CPU) cores of the physical server, wherein each physical core is composed of two logic cores; a Last Level Cache (LLC), also called Last Level Cache, is the Last Level buffer of the CPU, and LLC is a Cache of memory data for matching the high speed of the processor with the low speed of the memory; the memory is a storage space which can be directly addressed by the CPU, the memory bandwidth resource is the resource of the speed of the CPU accessing the memory, and the unit of the memory bandwidth can be GB/s.
The server identifies each virtual machine as a first type virtual machine or a second type virtual machine according to the identification information, and further performs resource isolation operation on the first type virtual machine and the second type virtual machine, wherein the resource isolation operation refers to dividing processes of different virtual machines into fixed resource spaces, so that the running range of the process is limited in the limited space, and the running of a certain process is ensured not to be interfered by other processes; in this embodiment, the resource isolation operation includes allocating different resources required for the first type virtual machine and the second type virtual machine, where the required resources include a physical core, a final cache, and a memory bandwidth resource of the server.
When a server performs resource isolation operation, a cache allocation technology (Cache Allocation Technology, CAT) can be utilized, the CAT introduces an intermediate interface named as a service class, a resource control mark can be used for grouping a virtual machine in the mark, the service class comprises a relevant resource capacity bit mask so as to illustrate how much cache can be used by a specific service class, and private LLC cache space can be divided for different processes through the CAT, so that performance interference caused by competing LLC cache resources is reduced; in addition, the server may perform isolation of memory bandwidth resources through a platform level quality of service tool (Platform Quality Of Service feature, PQOS); when the physical cores of the first type virtual machine and the second type virtual machine are isolated in terms of resources, the server isolates the physical cores that the child thread VCPU of the virtual machine needs to use by a control group (cgroups).
In addition, the server determines a target virtual central processor corresponding to the first type of virtual machine, binds the target virtual central processor with the physical central processor, wherein the target virtual central processor is a virtual central processor corresponding to the central virtual machine, the virtual central processor is also called a virtual processor (Virtual Machine Central Processing Unit, VCPU), the VCPU is a central processor allocated to the virtual machine, each target virtual central processor is bound with a physical central processor (Physical Central Processing Unit, PCPU), the target virtual central processor corresponds to a target thread, the thread corresponding to the target virtual central processor is a target thread, the target thread only operates in the bound physical central processor, and the VCPU is prohibited from switching on a different PCPU.
In addition, in order to further improve user experience and adapt to the requirements of users on the performance of the first-type virtual machine in different scenes, the embodiment also provides two different resource allocation modes, namely, the first-type virtual machine is completely isolated from the second-type virtual machine, the performance of the first-type virtual machine is higher in the mode, the first-type virtual machine and the second-type virtual machine share part of server resources, but the server resources occupied by the first-type virtual machine are still larger than those of unimportant virtual machines and the server resources occupied by the unimportant virtual machines, and the server resources occupied by the first-type virtual machine in the mode are not too high, so that the cost of the server resources of the first-type virtual machine can be reduced; for this reason, the server first determines the preset resource allocation identifier associated with the first type virtual machine, the preset resource allocation identifier is the identifier information for indicating the mode of the server for performing resource isolation, the data form of the preset resource allocation identifier may be a character string, and when the preset resource allocation identifier is the resource isolation identifier, the server resource occupied by the first type virtual machine and the server resource occupied by the second type virtual machine are subjected to resource isolation operation according to the identifier information; or when the preset resource allocation identifier is the resource sharing identifier, configuring resources to the first type of virtual machine according to a first preset weight value, configuring resources to the second type of virtual machine according to a second preset weight value, wherein the first preset weight value and the second preset weight value are used for indicating the proportion of the allocated resources in all the resources of the server when the resources are configured, and the first preset weight value is greater than the second preset weight value, for example, the second preset weight value can be set to be 50% of the first preset weight value.
In this embodiment, according to the identification information, the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine are isolated, where the isolating operation includes allocating different resources to the first type virtual machine and the second type virtual machine, so that the first type virtual machine can monopolize the server resources, so as to improve performance of the first type virtual machine.
Referring to fig. 4, a third embodiment of the present invention provides a virtual machine allocation method, based on the first embodiment shown in fig. 2, the step S20 includes:
step S22, according to the identification information, determining a first thread resource of the virtual central processor corresponding to the first type virtual machine and a second thread resource of the virtual central processor corresponding to the second type virtual machine;
the first thread resource is a thread resource corresponding to the first type virtual machine, and the second thread resource is a thread resource corresponding to the second type virtual machine; the server firstly identifies each virtual machine as a first type virtual machine or a second type virtual machine according to the identification information, and further determines a first thread resource of the VCPU corresponding to the first type virtual machine and a second thread resource of the VCPU corresponding to the second type virtual machine.
Step S23, allocating a first thread resource to the first type virtual machine, and allocating a second thread resource to the second type virtual machine, where the priority of the first thread resource is higher than the priority of the second thread resource.
After the first thread resource and the second thread resource are determined, the first thread resource and the second thread resource are allocated, wherein the first thread resource and the second thread are both associated with a priority parameter, and the priority of the first thread resource is higher than that of the second thread resource; the priority may be specified in the range of 1 to 10, 10 representing the highest priority, 1 representing the lowest priority, 5 representing the normal priority, and when the thread is not specified with priority, the priority of the thread is the normal priority, and the thread with the high priority has a higher probability of being executed than the thread with the low priority. By increasing the priority of the first thread resource, the first-type virtual machine can preempt the PCPU corresponding to the second-type virtual machine.
The server may further allocate weight information of the central processor time slices of each virtual machine according to the identification information, where the weight information of the first type virtual machine is greater than the weight information of the second type virtual machine. The time slices are a period of CPU time which is allocated to each running process by the time-sharing operating system on a microscopic scale, so that in order to enable the performance of the first-type virtual machine to be higher, when the server allocates the time slices, the time slices allocated to the first-type virtual machine are more than the time slices allocated to the second-type virtual machine, and the response speed of the first-type virtual machine is higher.
In this embodiment, a first thread resource of a virtual central processor corresponding to a first type virtual machine and a second thread resource of the virtual central processor corresponding to a second type virtual machine are determined according to identification information, the first thread resource is allocated to the first type virtual machine, and the second thread resource is allocated to the second type virtual machine, where the priority of the first thread resource is higher than that of the second thread resource, so that important virtual can preempt a PCPU of a thread of the second type virtual machine, thereby improving performance of the first type virtual machine.
Referring to fig. 5, a fourth embodiment of the present invention provides a method for allocating resources of a virtual machine, where the step S20 includes:
step S24, determining a first memory page resource of the first type virtual machine and a second memory page resource of the second type virtual machine according to the identification information, wherein the first memory page resource is a large-page memory, and the first memory page resource is larger than the second memory page resource;
the memory page resources comprise first memory page resources and second memory page resources, the first memory page resources are memory page resources of the first type virtual machine, the second memory page resources are memory page resources of the second type virtual machine, the memory pages are also called memory paging, and the memory paging is to divide virtual addresses and physical addresses into pages and page frames according to fixed sizes; the size of the memory page defaults to 4KB, the page size of the large page memory defaults to 2MB, the large page memory in the Linux operating system is called HugePages, the large page memory in the Windows system is called LargePages, the descriptions of different operating systems on the large page memory can be different, and the description is not limited herein, and the page size of the first memory page resource is larger than the page size of the second memory page resource.
Step S25, allocating the first memory page resource to the first type virtual machine, and allocating the second memory page resource to the second type virtual machine.
By allocating the first memory page resource to the first type virtual machine and allocating the second memory page resource to the second type virtual machine, the performance of the first type virtual machine can be higher than that of the second type virtual machine, and the reason is that the large-page memory can reduce the management overhead of the memory page, the larger memory page can reduce the page table level in the memory, so that the memory occupation of the page table can be reduced, the performance loss from the virtual memory to the physical memory can be reduced, the larger memory page also means higher cache hit rate, the CPU has higher probability of acquiring the corresponding physical address in the page table cache (Translation Lookaside Buffer, TLB), the larger memory page can reduce the times of acquiring the large memory, the efficiency can be improved, the memory can be locked by using the large-page memory, and the memory exchange and release of the operating system can be forbidden, thereby improving the performance of the first type virtual machine.
In this embodiment, the performance of the first type virtual machine is improved by determining the first memory page resource of the first type virtual machine and the second memory page resource of the second type virtual machine according to the identification information, and allocating the first memory page resource to the first type virtual machine and the second memory page resource to the second type virtual machine.
Referring to fig. 6, a fifth embodiment of the present invention provides a method for allocating resources of a virtual machine, based on the first embodiment shown in fig. 2, after the step S10, the method further includes:
step S30, determining target node resources according to a first quantity corresponding to the non-uniform memory access node resources and a second quantity corresponding to the first type virtual machines, wherein the first quantity is the quantity of physical central processing units, and the second quantity is the quantity of virtual central processing units; when the first quantity is larger than the second quantity, taking the non-uniform memory access node resource corresponding to the first quantity as a target node resource;
non-uniform memory access (Non-uniform memory access, NUMA) is a memory architecture designed for a multiprocessor computer, where memory access time depends on the location of memory relative to the processor, and under NUMA, the processor accesses its own local memory faster than Non-local memory, such as memory located in another processor or shared between processors; the first number is the number of PCPUs of one NUMA node, the second number is the number of VCPUs of the virtual machine, the target node resource is the NUMA node resource of the first type virtual machine to be operated, when the number of PCPUs of one NUMA node is larger than the number of VCPUs of the virtual machine, namely, the first number is larger than the second number, and the number of the first type virtual machine is only one, the first type virtual machine is operated to the NUMA node, and the second type virtual machine is operated to the other NUMA node; and the memory of the first type virtual machine is only distributed on NUMA nodes operated by the VCPU, so that the second type virtual machine can be prevented from occupying CPU resources of the first type virtual machine.
The step S20 includes:
step S26, allocating the target node resource to the first type virtual machine and allocating the non-target node resource to the second type virtual machine according to the identification information.
And identifying each virtual machine as a first type virtual machine or a second type virtual machine according to the identification information, distributing corresponding target node resources to each first type virtual machine, wherein each target node resource corresponds to one first type virtual machine so as to enable the first type virtual machine to run to a target node, and distributing non-target node resources to the second type virtual machine so as to enable the second type virtual machine to run to a non-target node, thereby improving the performance of the first type virtual machine.
In this embodiment, the performance of the first type virtual machine is improved by determining the target node resources according to the first number corresponding to the non-uniform memory access node resources and the second number corresponding to the first type virtual machine, allocating the target node resources to the first type virtual machine, and allocating the non-target node resources to the second type virtual machine.
The invention also provides a server.
Referring to fig. 7, a functional block diagram of an embodiment of the server of the present invention is shown in fig. 7.
As shown in fig. 7, the server includes:
the obtaining module 10 is configured to obtain identification information of each virtual machine, where the identification information is used to distinguish a first type virtual machine and a second type virtual machine, where the first type virtual machine is a virtual machine that needs to improve performance when resources are allocated, and the second type virtual machine is a virtual machine that needs to reduce performance when resources are allocated;
and the allocation module 20 is configured to allocate resources required by each virtual machine according to the identification information, so that the performance of the first type virtual machine is higher than that of the second type virtual machine.
In an embodiment, the allocation module 20 is further configured to perform a resource isolation operation on the server resources occupied by the first type of virtual machine and the server resources occupied by the second type of virtual machine according to the identification information, where the resource isolation operation includes allocating different resources to the first type of virtual machine and the second type of virtual machine.
In an embodiment, the allocation module 20 is further configured to determine a target virtual central processor corresponding to the first type of virtual machine;
the allocation module 20 is further configured to bind the target virtual cpus with physical cpus, where each target virtual cpu is bound with one of the physical cpus, and the target virtual cpu corresponds to a target thread, and the target thread only runs in the bound physical cpus.
In an embodiment, the allocation module 20 is further configured to determine a preset resource allocation identifier associated with the first type of virtual machine;
the allocation module 20 is further configured to perform a step of performing a resource isolation operation on the server resource occupied by the first type virtual machine and the server resource occupied by the second type virtual machine according to the identification information when the preset resource allocation identifier is a resource isolation identifier;
the allocation module 20 is further configured to configure the resources to the first type of virtual machine according to a first preset weight value when the preset resource allocation identifier is a resource sharing identifier, configure the resources to the second type of virtual machine according to a second preset weight value, where the first preset weight value and the second preset weight value are used for indicating a ratio of the allocated resources in all the resources of the server when the resources are configured, and the first preset weight value is greater than the second preset weight value.
In an embodiment, the allocation module 20 is further configured to determine, according to the identification information, a first thread resource of the virtual central processor corresponding to the first type of virtual machine and a second thread resource of the virtual central processor corresponding to the second type of virtual machine;
The allocation module 20 is further configured to allocate the first thread resource to the first type virtual machine and allocate the second thread resource to the second type virtual machine, where the priority of the first thread resource is higher than the priority of the second thread resource.
In an embodiment, the allocation module 20 is further configured to allocate weight information of a cpu time slice of each virtual machine according to the identification information, where the weight information of the first type of virtual machine is greater than the weight information of the second type of virtual machine.
In an embodiment, the allocation module 20 is further configured to determine a first memory page resource of the first type virtual machine and a second memory page resource of the second type virtual machine according to the identification information, where the first memory page resource is a large-page memory, and the first memory page resource is greater than the second memory page resource;
the allocation module 20 is further configured to allocate the first memory page resource to the first type virtual machine, and allocate the second memory page resource to the second type virtual machine.
In an embodiment, the allocation module 20 is further configured to determine a target node resource according to a first number corresponding to the non-consistent memory access node resource and a second number corresponding to the first type of virtual machine, where the first number is a number of physical central processors, and the second number is a number of virtual central processors; when the first quantity is larger than the second quantity, taking the non-uniform memory access node resource corresponding to the first quantity as a target node resource;
The step of allocating resources of each virtual machine according to the identification information, where the allocating module 20 is further configured to:
the allocation module 20 is further configured to allocate the target node resource to the first type virtual machine and allocate the non-target node resource to the second type virtual machine according to the identification information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a server to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The resource allocation method of the virtual machine is characterized in that the virtual machine runs on a server, and the resource allocation method of the virtual machine comprises the following steps:
the method comprises the steps of obtaining identification information of each virtual machine, wherein the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated;
correspondingly distributing resources required by each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine;
the resources comprise physical cores, final caches and memory bandwidth resources of the server, and the step of correspondingly allocating the resources required by each virtual machine according to the identification information comprises the following steps:
And according to the identification information, carrying out resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine, wherein the resource isolation operation comprises the step of distributing different resources to the first type virtual machine and the second type virtual machine.
2. The method for allocating resources of a virtual machine according to claim 1, wherein after the step of performing a resource isolation operation on the server resources occupied by the first type of virtual machine and the server resources occupied by the second type of virtual machine according to the identification information, the method further comprises:
determining a target virtual central processor corresponding to the first type virtual machine;
binding the target virtual central processors with physical central processors, wherein each target virtual central processor is bound with one physical central processor, the target virtual central processor corresponds to a target thread, and the target thread only runs in the bound physical central processors.
3. The method for allocating resources of virtual machines according to claim 1, further comprising, after said step of obtaining identification information of each of said virtual machines:
Determining a preset resource allocation identifier associated with the first type virtual machine;
executing a step of performing resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine according to the identification information when the preset resource allocation identification is a resource isolation identification;
or when the preset resource allocation identifier is a resource sharing identifier, configuring the resources to the first type of virtual machine according to a first preset weight value, configuring the resources to the second type of virtual machine according to a second preset weight value, wherein the first preset weight value and the second preset weight value are used for indicating the proportion of the allocated resources in all the resources of the server when the resources are configured, and the first preset weight value is larger than the second preset weight value.
4. The method for allocating resources of a virtual machine according to claim 1, wherein the resources include a first thread resource and a second thread resource, and the step of allocating the resources of the respective virtual machines according to the identification information includes:
determining a first thread resource of the virtual central processor corresponding to the first type virtual machine and a second thread resource of the virtual central processor corresponding to the second type virtual machine according to the identification information; and allocating the first thread resource to the first type virtual machine and the second thread resource to the second type virtual machine, wherein the priority of the first thread resource is higher than that of the second thread resource.
5. The method for allocating resources of virtual machines according to claim 1, wherein said resources comprise a central processor time slice, and said step of allocating resources of each of said virtual machines according to said identification information comprises:
and distributing weight information of the CPU time slices of the virtual machines according to the identification information, wherein the weight information of the first type virtual machine is larger than that of the second type virtual machine.
6. The method for allocating resources of a virtual machine according to claim 1, wherein the resources comprise memory page resources, and the step of allocating the resources of each of the virtual machines according to the identification information comprises:
determining a first memory page resource of the first type virtual machine and a second memory page resource of the second type virtual machine according to the identification information, wherein the first memory page resource is a large-page memory, and the first memory page resource is larger than the second memory page resource;
and allocating the first memory page resources to the first type virtual machine and allocating the second memory page resources to the second type virtual machine.
7. The method for allocating resources of a virtual machine according to claim 1, wherein the resources comprise non-uniform memory access node resources, and after the step of obtaining identification information of each virtual machine, the method further comprises:
Determining target node resources according to a first quantity corresponding to the non-uniform memory access node resources and a second quantity corresponding to the first type of virtual machines, wherein the first quantity is the quantity of physical central processing units, and the second quantity is the quantity of virtual central processing units; when the first quantity is larger than the second quantity, taking the non-uniform memory access node resource corresponding to the first quantity as a target node resource;
the step of allocating the resources of each virtual machine according to the identification information comprises the following steps:
and according to the identification information, distributing the target node resources to the first type virtual machine, and distributing the non-target node resources to the second type virtual machine.
8. A server, the server comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring identification information of each virtual machine, the identification information is used for distinguishing a first type virtual machine and a second type virtual machine, the first type virtual machine is a virtual machine which needs to be improved in performance when resources are allocated, and the second type virtual machine is a virtual machine which needs to be reduced in performance when resources are allocated;
the allocation module is used for correspondingly allocating resources required by each virtual machine according to the identification information so that the performance of the first type virtual machine is higher than that of the second type virtual machine, wherein the resources comprise a physical core, a final cache and a memory bandwidth resource of the server; the method is specifically used for carrying out resource isolation operation on the server resources occupied by the first type virtual machine and the server resources occupied by the second type virtual machine according to the identification information, wherein the resource isolation operation comprises the step of distributing different resources to the first type virtual machine and the second type virtual machine.
9. A server comprising a memory, a processor and a resource allocation program of a virtual machine stored on the memory and executable on the processor, the resource allocation program of the virtual machine, when executed by the processor, implementing the steps of the resource allocation method of a virtual machine according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a resource allocation program of a virtual machine is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the resource allocation method of a virtual machine according to any one of claims 1 to 7.
CN202110352914.4A 2021-03-31 2021-03-31 Resource allocation method of virtual machine, server and computer readable storage medium Active CN113032101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110352914.4A CN113032101B (en) 2021-03-31 2021-03-31 Resource allocation method of virtual machine, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352914.4A CN113032101B (en) 2021-03-31 2021-03-31 Resource allocation method of virtual machine, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113032101A CN113032101A (en) 2021-06-25
CN113032101B true CN113032101B (en) 2023-12-29

Family

ID=76453554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352914.4A Active CN113032101B (en) 2021-03-31 2021-03-31 Resource allocation method of virtual machine, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113032101B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330229B (en) * 2020-12-02 2023-09-22 北京元心科技有限公司 Resource scheduling method, device, electronic equipment and computer readable storage medium
CN115794362A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Resource allocation method, cloud host and computer-readable storage medium
CN113791873B (en) * 2021-11-16 2022-12-30 统信软件技术有限公司 Virtual machine creating method, computing device and storage medium
CN116185899A (en) * 2021-11-27 2023-05-30 华为技术有限公司 Maintenance method of address transfer bypass cache and related equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398768A (en) * 2008-10-28 2009-04-01 北京航空航天大学 Construct method of distributed virtual machine monitor system
CN101470634A (en) * 2007-12-24 2009-07-01 联想(北京)有限公司 CPU resource scheduling method and virtual machine monitor, virtual machine system
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
WO2015009318A1 (en) * 2013-07-19 2015-01-22 Hewlett-Packard Development Company, L.P. Virtual machine resource management system and method thereof
WO2016138638A1 (en) * 2015-03-03 2016-09-09 华为技术有限公司 Resource allocation method and apparatus for virtual machines
CN106325997A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Virtual resource distribution method and device
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device
AU2018100338A4 (en) * 2017-03-28 2018-04-26 John Halias Resources Distribution System and Method thereof
CN107967179A (en) * 2017-12-12 2018-04-27 山东省计算中心(国家超级计算济南中心) A kind of cloud computing resources distribution method for supporting emergency
CN109783221A (en) * 2017-11-14 2019-05-21 中国移动通信有限公司研究院 A kind of resources of virtual machine distribution method, device and Resource Server
WO2019160030A1 (en) * 2018-02-19 2019-08-22 日本電信電話株式会社 Service provision system, resource allocation method, and resource allocation program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5028469B2 (en) * 2009-12-14 2012-09-19 株式会社日立製作所 Information processing apparatus, resource schedule method, and resource schedule program
US20150309828A1 (en) * 2014-04-24 2015-10-29 Unisys Corporation Hypervisor manager for virtual machine management

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470634A (en) * 2007-12-24 2009-07-01 联想(北京)有限公司 CPU resource scheduling method and virtual machine monitor, virtual machine system
CN101398768A (en) * 2008-10-28 2009-04-01 北京航空航天大学 Construct method of distributed virtual machine monitor system
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
WO2012083707A1 (en) * 2010-12-20 2012-06-28 华为技术有限公司 Method and device for distributing resources to virtual machines
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
WO2015009318A1 (en) * 2013-07-19 2015-01-22 Hewlett-Packard Development Company, L.P. Virtual machine resource management system and method thereof
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
WO2016138638A1 (en) * 2015-03-03 2016-09-09 华为技术有限公司 Resource allocation method and apparatus for virtual machines
CN106325997A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Virtual resource distribution method and device
AU2018100338A4 (en) * 2017-03-28 2018-04-26 John Halias Resources Distribution System and Method thereof
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device
CN109783221A (en) * 2017-11-14 2019-05-21 中国移动通信有限公司研究院 A kind of resources of virtual machine distribution method, device and Resource Server
CN107967179A (en) * 2017-12-12 2018-04-27 山东省计算中心(国家超级计算济南中心) A kind of cloud computing resources distribution method for supporting emergency
WO2019160030A1 (en) * 2018-02-19 2019-08-22 日本電信電話株式会社 Service provision system, resource allocation method, and resource allocation program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多虚拟机研究;魏仲山;《计算机工程与应用》(第08期);全文 *

Also Published As

Publication number Publication date
CN113032101A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113032101B (en) Resource allocation method of virtual machine, server and computer readable storage medium
CN106844007B (en) Virtualization method and system based on spatial multiplexing
EP3073374B1 (en) Thread creation method, service request processing method and related device
CN106371894B (en) Configuration method and device and data processing server
US10191759B2 (en) Apparatus and method for scheduling graphics processing unit workloads from virtual machines
US9081612B2 (en) Virtual machine control method and virtual machine
US8826278B2 (en) Controlling memory conditions in a virtual machine
US20190155637A1 (en) Resource Access Method Applied to Computer and Computer
US20190227728A1 (en) Virtual machine trigger
US8312201B2 (en) Managing memory allocations loans
US20040215860A1 (en) Virtualization of a global interrupt queue
US20060206891A1 (en) System and method of maintaining strict hardware affinity in a virtualized logical partitioned (LPAR) multiprocessor system while allowing one processor to donate excess processor cycles to other partitions when warranted
US20110010709A1 (en) Optimizing System Performance Using Spare Cores in a Virtualized Environment
US20130152086A1 (en) Apparatus and method for managing virtual memory
US20190243757A1 (en) Systems and methods for input/output computing resource control
KR20140049064A (en) Method and apparatus for providing isolated virtual space
JP2004326754A (en) Management of virtual computer for utilizing shared resource
CN113032103B (en) VF resource dynamic scheduling method based on SR-IOV function of high-speed network card
EP3944091B1 (en) Cache allocation method and device, storage medium, and electronic device
US6735613B1 (en) System for processing by sets of resources
US6457107B1 (en) Method and apparatus for reducing false sharing in a distributed computing environment
CN114721818A (en) Kubernetes cluster-based GPU time-sharing method and system
US7389398B2 (en) Methods and apparatus for data transfer between partitions in a computer system
CN107423114B (en) Virtual machine dynamic migration method based on service classification
US9088569B2 (en) Managing access to a shared resource using client access credentials

Legal Events

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