Computing power resource allocation method and device, electronic equipment and storage medium

By applying the PID control algorithm in GPU resource allocation and dynamically adjusting the resource allocation amount, the problems of inefficient and unbalanced resource allocation in traditional methods are solved, and more efficient and balanced resource allocation is achieved.

CN119311415AActive Publication Date: 2025-01-14中国联合网络通信有限公司广东省分公司 +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411424950.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-14
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

When traditional GPU computing resource allocation methods face dynamically changing computing tasks and load conditions, it is difficult to adapt to this dynamic nature, resulting in low resource allocation efficiency and unbalanced allocation, affecting overall performance.

Method used

The PID control algorithm is used to determine the feedback control coefficient and resource control amount at each moment in real time, and dynamically adjust the resource allocation amount to ensure the adaptability and balance of resource allocation.

Benefits of technology

It improves the efficiency and balance of resource allocation, enhances the adaptability of PID control algorithm in the allocation of VGPU computing power resources, and solves the problem of uneven resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311415A_ABST
    Figure CN119311415A_ABST
Patent Text Reader

Abstract

The invention discloses a computing power resource allocation method and device, electronic equipment and a storage medium. The method comprises the following steps: for a plurality of virtual graphic processing units associated with a graphic processor, determining a resource deviation value at the current moment according to a resource allocation quantity and a resource demand quantity corresponding to the virtual graphic processing units at the current moment; the resource allocation amount is determined based on the resource control amount of the previous moment; and determining the resource control quantity of the current moment according to the reference resource control quantity of the reference moment associated with the current moment, the reference resource deviation quantity, the resource deviation quantity of the current moment and the resource control quantity of the previous moment, so as to determine the resource allocation quantity corresponding to the next moment based on the resource control quantity. According to the technical scheme, on the basis of applying the PID control algorithm, the resource control quantity of the corresponding moment is determined based on the feedback control coefficient of each moment, and then the resource allocation quantity of the next moment is dynamically adjusted based on the resource control quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of resource scheduling technology, and in particular to a computing resource allocation method, device, electronic device and storage medium. Background Art

[0002] Virtual Graphics Processing Unit (VGPU) computing resource scheduling is to effectively allocate the computing resources of the physical GPU to different virtual machines or container instances in a virtualized environment to ensure that each instance can obtain appropriate GPU performance.

[0003] In the related technologies, in the traditional GPU computing power resource allocation, static allocation or dynamic allocation based on simple rules is usually adopted. These methods may perform well in certain scenarios, but there are some technical problems when facing diverse and dynamically changing loads and task situations.

[0004] First, computing tasks and load conditions may change dynamically due to changes in time and application scenarios. Traditional static allocation is difficult to adapt to this dynamic nature, resulting in inefficient resource allocation. Second, in the case of unbalanced load, balanced distribution of tasks may not be achieved, resulting in some GPUs processing too many tasks and being overloaded, while other GPUs are relatively idle, affecting overall performance. Summary of the invention

[0005] The present invention provides a computing power resource allocation method, device, electronic device and storage medium, so as to achieve the effect of determining the feedback control coefficient at each moment on the basis of applying a PID control algorithm, and determining the resource control amount at the corresponding moment based on the feedback control coefficient at each moment, and then dynamically adjusting the resource allocation amount at the next moment based on the resource control amount.

[0006] According to one aspect of the present invention, a computing resource allocation method is provided, the method comprising:

[0007] For multiple virtual graphics processing units associated with a graphics processor, a resource deviation amount at a current moment is determined according to a resource allocation amount and a resource demand amount corresponding to the virtual graphics processing unit at a current moment; wherein the resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at a current moment, and the resource allocation amount is determined based on a resource control amount at a previous moment, and the resource control amount at a previous moment is determined based on a feedback control coefficient and a resource deviation amount at the previous moment; and the resource demand amount is used to characterize the computing power resources required by the virtual graphics processing unit for data processing at the current moment;

[0008] The resource control amount at the current moment is determined based on the benchmark resource deviation amount of the benchmark moment associated with the current moment, the benchmark resource control amount at the previous moment of the benchmark moment, the resource deviation amount at the current moment and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount; wherein the current moment, the benchmark moment and the next moment are moments within the same data processing cycle.

[0009] According to another aspect of the present invention, a computing resource allocation device is provided, the device comprising:

[0010] A resource deviation amount determination module, for determining the resource deviation amount at the current moment for a plurality of virtual graphics processing units associated with a graphics processor according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing unit at the current moment; wherein the resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at the current moment, the resource allocation amount is determined based on the resource control amount at the previous moment, the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment; the resource demand amount is used to characterize the computing power resources required by the virtual graphics processing unit for data processing at the current moment;

[0011] A resource control amount determination module is used to determine the resource control amount at the current moment based on a benchmark resource deviation amount of a benchmark moment associated with the current moment, a benchmark resource control amount at the previous moment of the benchmark moment, the resource deviation amount at the current moment and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount; wherein the current moment, the benchmark moment and the next moment are moments within the same data processing cycle.

[0012] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the computing power resource allocation method described in any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the computing power resource allocation method described in any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present invention determines the resource deviation amount at the current moment according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing units at the current moment for multiple virtual graphics processing units associated with the graphics processor; wherein the resource allocation amount is determined based on the resource control amount at the previous moment; and the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment. Furthermore, the resource control amount at the current moment is determined according to the reference resource deviation amount at the reference moment associated with the current moment, the reference resource control amount at the previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount, thereby solving the problem that it is difficult to adapt to dynamically changing computing tasks and load conditions in related technologies, resulting in low resource allocation efficiency and unbalanced resource allocation, and realizing the determination of the feedback control coefficient at each moment on the basis of applying the PID control algorithm, and determining the resource control amount at the corresponding moment based on the feedback control coefficient at each moment, and then, dynamically adjusting the resource allocation amount at the next moment based on the resource control amount, thereby improving the adaptability of the PID control algorithm in VGPU computing power resource allocation. The resource allocation efficiency and allocation balance are improved.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0020] Figure 1 is a flowchart of a computing resource allocation method provided according to Embodiment 1 of the present invention;

[0021] Figure 2 is a flowchart of a computing resource allocation method provided according to Embodiment 2 of the present invention;

[0022] Figure 3is a schematic diagram of the structure of a computing resource allocation device provided according to Embodiment 3 of the present invention;

[0023] Figure 4 It is a structural diagram of an electronic device that implements the computing power resource allocation method of an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in 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 should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Embodiment 1

[0027] Figure 1 This is a flow chart of a computing resource allocation method provided in the first embodiment of the present invention. This embodiment is applicable to the case of allocating computing resources of a graphics processor. The method can be executed by a computing resource allocation device. The computing resource allocation device can be implemented in the form of hardware and / or software. The computing resource allocation device can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:

[0028] S110. For multiple virtual graphics processing units associated with a graphics processor, determine a resource deviation amount at a current moment according to resource allocation amounts and resource demand amounts corresponding to the virtual graphics processing units at a current moment; wherein the resource allocation amount is determined based on a resource control amount at a previous moment.

[0029] Among them, a graphics processing unit (GPU) is a microprocessor that is specifically used for image and graphics related processing on personal computers, workstations, game consoles and some mobile devices (such as tablets, smart phones, etc.). GPU has powerful parallel computing capabilities and high performance, and can quickly complete tasks such as graphics rendering, image processing, and computer-aided design. It can be understood by those skilled in the art that the rendering resources and computing resources of the GPU of the physical entity can be encapsulated into multiple independent virtual slices through virtualization technology. Each virtual slice is assigned to a different virtual machine so that it can independently access and utilize GPU resources. At this time, the virtual slice can be used as a virtual graphics processing unit (VGPU). The resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at the current moment. The resource allocation amount is used to characterize the computing power resources actually allocated to the virtual graphics processing unit by the graphics processing unit at the current moment. The computing power resources can be any resource in the GPU that can perform graphics processing tasks and / or parallel computing tasks. Exemplarily, the computing power resources may include video memory, stream processors, texture units, frame rates or delays, etc. In general, for each moment in the process of processing graphics tasks, the virtual graphics processing unit can process the corresponding graphics processing tasks according to the resource allocation amount actually allocated to it at the current moment. The resource demand is used to characterize the computing resources required by the virtual graphics processing unit for data processing at the current moment. The resource demand is used to characterize the computing resources that the virtual graphics processing unit expects to obtain from the graphics processor at the current moment. The resource deviation can be understood as the resource amount that characterizes the difference between the resource allocation amount and the resource demand amount.

[0030] In this embodiment, the resource allocation amount is determined based on the resource control amount at the previous moment. The resource control amount can be used to characterize the resource amount based on which the resource allocation amount of the virtual graphics processing unit at the corresponding moment is adjusted. The resource control amount is determined based on the feedback control coefficient and the resource deviation amount at the previous moment. It can be understood that the feedback control coefficient can be the core of the PID control algorithm, which can determine how the virtual graphics processing unit adjusts the resource allocation amount according to the resource deviation amount to reduce the difference between the resource allocation amount and the resource demand amount. Optionally, the feedback control coefficient may include a proportional coefficient, an integral coefficient, and a differential coefficient. The proportional coefficient reflects the sensitivity of the PID controller to the system deviation. In the presence of a resource deviation amount, the computing power resources allocated to the virtual graphics processing unit can be proportionally adjusted according to the resource deviation amount to reduce the difference between the resource allocation amount and the resource demand amount. The integral coefficient is used to adjust the integral effect of the PID controller on the system deviation. Integrating the resource deviation amount to take into account the historical error accumulation can help eliminate the long-standing problem of uneven resource allocation and ensure that each virtual graphics processing unit can obtain fair computing power resources for a long time. The differential coefficient reflects the sensitivity of the PID controller to the rate of change of the system deviation. Differential control can adjust the resource allocation according to the rate of change of the resource deviation.

[0031] In practical applications, the PID control algorithm can be applied to VGPU computing power resource allocation. First, it is necessary to clarify the computing power resource requirements of the virtual graphics processing unit, that is, the resource demand (such as the expected frame rate and / or delay, etc.). Afterwards, during the operation of the virtual graphics processing unit, a performance monitoring tool can be used to collect the actual resource usage information of the virtual graphics processing unit in real time or periodically, that is, the resource allocation amount (such as the actual frame rate and / or actual delay, etc.). Furthermore, for each resource, the difference between the resource allocation amount and the resource demand amount of the resource can be calculated to obtain the resource difference amount. Furthermore, the resource control amount can be determined based on the feedback control coefficient and the resource difference amount, so as to adjust the resource allocation amount based on the resource control amount. Exemplarily, the process of determining the resource control amount can be expressed based on the following formula: C=K p *E p +K i *E i +K d *E d Among them, C represents the resource control amount; K p Indicates the proportionality coefficient; E p Indicates the resource deviation; K i Indicates the integral coefficient; E i Indicates the integral value of resource deviation within the preset time period; K d represents the differential coefficient; E dIt represents the differential value of the resource deviation within a preset time period. In general, the PID control algorithm can only guarantee the correctness and convergence of its control quantity when the system performance is linear and time-invariant. System performance linearity means that there should be a linear relationship between the resource control quantity and the resource allocation quantity. Time invariance means that when the same resource control quantity is input at any time, the resource allocation quantity output by the system should also be the same, and it is not affected by time changes. However, these two characteristics are difficult to achieve in GPUs. First, the kernel function and data volume called by the GPU often change on a large scale, breaking the principles of linearity and time invariance; second, the performance of large-scale parallel computing changes instantly. Due to the limitations of video memory, computing core, data transmission and other parameters, the performance of running at different times varies greatly and cannot be linear. Furthermore, when computing power resources are allocated based on the PID control algorithm, there may be a problem that the computing power resources are unevenly distributed and the resource requirements of the corresponding virtual graphics processing unit cannot be met. Moreover, in the PID control algorithm, the proportional coefficient, integral coefficient and differential coefficient in the feedback control coefficient are obtained through empirical calculation or fitting, and are usually fixed values. When the operating performance of the virtual graphics processing unit varies greatly at different times, the resource control amount determined based on the feedback control coefficient may be inaccurate, which in turn may lead to inaccurate resource allocation amount obtained by adjusting the resource control amount, thereby affecting the overall performance.

[0032] In view of the above situation, in this embodiment, in the process of feedback control of the virtual graphics processing unit, the resource control amount at each moment is determined based on the feedback control coefficient and resource deviation at the corresponding moment, that is, the feedback control coefficient at each moment is dynamically changed. Therefore, the PID algorithm can be more suitable for the VGPU computing power resource allocation process, which improves the applicability of the PID algorithm and further improves the resource allocation efficiency and allocation accuracy.

[0033] In this embodiment, the graphics processor can be divided into multiple virtual graphics processing units according to computing power resources through virtualization technology. Then, for multiple virtual graphics processing units associated with the graphics processor, the resource demand and resource allocation of the virtual graphics processing units at the current moment can be obtained. Furthermore, the difference between the obtained resource demand and the resource demand can be determined, and the difference is used as the resource deviation of the virtual graphics processing unit at the current moment.

[0034] It should be noted that there are multiple ways to obtain resource demand, including, optionally, collecting the resource demand of the virtual graphics processing unit at each moment in real time through a virtual machine management tool or management software; or, obtaining it from a storage space associated with the virtual graphics processing unit, etc. There are also multiple ways to obtain resource allocation, including, optionally, collecting the resource allocation of the virtual graphics processing unit at each moment in real time through a virtual machine management tool or management software; or, obtaining it from a storage space associated with the virtual graphics processing unit, etc.

[0035] S120. Determine the resource control amount at the current moment based on the benchmark resource deviation amount of the benchmark moment associated with the current moment, the benchmark resource control amount of the previous moment of the benchmark moment, the resource deviation amount of the current moment and the resource control amount of the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount.

[0036] The reference time may be any time during the process of the virtual graphics processing unit performing the data processing task. The reference time and the current time are times within the same data processing cycle. Exemplarily, the reference time may be the initial time within the same data processing cycle. For example, assuming that the current time is the 8th time within the data cycle, its reference time may be the 0th time within the data cycle. The reference resource deviation amount may be the difference between the resource allocation amount and the resource demand amount of the virtual graphics processing unit at the reference time. The reference resource control amount may act on the resource allocation amount at the reference time. It should be noted that, in the case where the data processing cycle where the reference time is located is the first data processing cycle, the reference resource control amount at the previous time of the reference time may be a preset value or a default value. Exemplarily, the reference resource control amount at the previous time of the reference time may be 0. In the case where the data processing cycle where the reference time is located is not the first data processing cycle, the previous time of the reference time may be the last time of the previous data processing cycle. Furthermore, the reference resource control amount at the previous time of the reference time may be the resource control amount at the last time. The next time, the current time and the reference time are times within the same data processing cycle. It should be noted that the data processing period may be a time period whose duration is not greater than a preset threshold. Optionally, the preset threshold may be 10 seconds, 20 seconds, or 30 seconds.

[0037] In this embodiment, the resource allocation amount at the current moment is determined based on the resource control amount at the previous moment. If the resource allocation amount at the current moment has been obtained, the resource control amount at the previous moment can be determined based on the resource allocation amount. Furthermore, if the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment, then, when determining the resource control amount at the current moment, the feedback control coefficient at the current moment can be determined, and then, the resource control amount at the current moment can be determined based on the feedback control coefficient and the deviation amount at the current moment. Furthermore, the resource allocation amount at the next moment of the current moment can be determined based on the resource control amount at the current moment.

[0038] Optionally, determining the resource allocation amount corresponding to the next moment after the current moment based on the resource control amount includes: adjusting the resource allocation amount corresponding to the current moment according to the resource control amount, and using the adjusted resource allocation amount as the resource allocation amount corresponding to the next moment after the current moment.

[0039] As an optional implementation of an embodiment of the present disclosure, a reference resource deviation amount of a reference moment associated with the current moment and a reference resource control amount of a previous moment of the reference moment may be obtained. Furthermore, the resource control amount of the previous moment may be determined based on the resource allocation amount of the current moment. Furthermore, a feedback control coefficient with respect to the current moment may be determined based on the reference resource control amount, the reference resource deviation amount, the resource control amount of the previous moment, and the resource deviation amount of the current moment. Furthermore, the resource control amount of the current moment may be determined based on the feedback control coefficient of the current moment and the resource deviation amount of the current moment. Furthermore, the resource allocation amount of the current moment may be adjusted based on the resource control amount of the current moment, and the adjusted resource allocation amount may be used as the resource allocation amount corresponding to the next moment of the current moment.

[0040] The technical solution of the embodiment of the present invention determines the resource deviation amount at the current moment according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing units at the current moment for multiple virtual graphics processing units associated with the graphics processor; wherein the resource allocation amount is determined based on the resource control amount at the previous moment; and the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment. Furthermore, the resource control amount at the current moment is determined according to the reference resource deviation amount at the reference moment associated with the current moment, the reference resource control amount at the previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount, thereby solving the problem that it is difficult to adapt to dynamically changing computing tasks and load conditions in related technologies, resulting in low resource allocation efficiency and unbalanced resource allocation, and realizing the determination of the feedback control coefficient at each moment on the basis of applying the PID control algorithm, and determining the resource control amount at the corresponding moment based on the feedback control coefficient at each moment, and then, dynamically adjusting the resource allocation amount at the next moment based on the resource control amount, thereby improving the adaptability of the PID control algorithm in VGPU computing power resource allocation. The resource allocation efficiency and allocation balance are improved.

[0041] Embodiment 2

[0042] Figure 2 This is a flowchart of a computing resource allocation method provided by the second embodiment of the present invention. Based on the above embodiment, the feedback control coefficient corresponding to the current moment is determined according to the reference resource deviation amount of the reference moment associated with the current moment, the reference resource deviation amount of the previous moment of the reference moment, the resource deviation amount of the current moment, and the resource control amount of the previous moment; the resource control amount of the virtual graphics processing unit at the current moment is determined according to the feedback control coefficient corresponding to the current moment and the resource deviation amount of the current moment. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to those in the above embodiment are not repeated here.

[0043] like Figure 2 As shown, the method includes:

[0044] S210. For multiple virtual graphics processing units associated with a graphics processor, determine a resource deviation amount at a current moment according to resource allocation amounts and resource demand amounts corresponding to the virtual graphics processing units at a current moment; wherein the resource allocation amount is determined based on a resource control amount at a previous moment.

[0045] S220, determine the feedback control coefficient corresponding to the current moment according to the reference resource deviation amount of the reference moment associated with the current moment, the reference resource control amount of the previous moment of the reference moment, the resource deviation amount of the current moment and the resource control amount of the previous moment.

[0046] Among them, the feedback control coefficient corresponding to the current moment can be used to determine the resource control amount at the current moment.

[0047] In this embodiment, when the benchmark resource deviation amount of the benchmark moment associated with the current moment and the benchmark resource control amount of the previous moment are obtained, the feedback control coefficient of the current moment can be determined based on the benchmark resource control amount, the benchmark resource deviation amount, the resource deviation amount of the current moment and the resource control amount of the previous moment.

[0048] Optionally, a feedback control coefficient corresponding to the current moment is determined based on a benchmark resource deviation amount at a benchmark moment associated with the current moment, a benchmark resource deviation amount at a moment before the benchmark moment, a resource deviation amount at the current moment, and a resource control amount at a moment before. This includes: determining a coefficient adjustment parameter corresponding to the current moment based on the benchmark resource control amount, the benchmark resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at a moment before; and determining a feedback control coefficient corresponding to the current moment based on the benchmark feedback control coefficient at the benchmark moment and the coefficient adjustment parameter.

[0049] The coefficient adjustment parameter may be a parameter used to adjust the feedback control coefficient. The reference feedback control coefficient may be a feedback control coefficient corresponding to a reference time.

[0050] In this embodiment, in order to better adapt to the situation of GPU intelligent computing equipment, the feedback control coefficient changes with the change of computing power resources, and the relative proportions between the proportional coefficient, integral coefficient and differential coefficient in the feedback control coefficient remain unchanged. Therefore, a change function corresponding to the feedback control coefficient can be constructed, and the change function is a function with time as the dependent variable.

[0051] Exemplarily, the change function of the proportional coefficient, the integral coefficient and the differential coefficient may be expressed based on the following formula:

[0052] K pt =K p0 *f(t);

[0053] K it =K i0 *f(t);

[0054] K dt =K d0 *f(t);

[0055] Among them, Kpt Represents the proportional coefficient at time t; K p0 represents the reference proportional coefficient at the reference time; f(t) represents the coefficient adjustment function with time t as the independent variable; K it Indicates the integral coefficient at time t; K i0 Indicates the base integral coefficient at the base time; K dt represents the differential coefficient at the tth moment; K d0 Indicates the base differential coefficient at the base time.

[0056] Substituting the above feedback control coefficient formula into the formula in the PID control algorithm, the following formula can be obtained:

[0057] C t =K p0 *(f(t)*E p )+K i0 *(f(t)*E i )+K d0 *(f(t)*E d ) (1)

[0058] Among them, C t The resource control amount acting on the resource allocation amount at the t-th time, that is, the resource control amount at the previous moment before the t-th time.

[0059] At the reference time, the formula for determining the base station resource control amount can be:

[0060] C0=K p0 *E p0 +K i0 *E i0 +K d0 *E d0 (2)

[0061] Because there is a linear relationship between the control quantity and the deviation in the PID control algorithm, that is, E0 = F(C0). Based on this formula, it is determined that: C0 = F -1 (E0). E0 is the total resource deviation at the reference time.

[0062] Combining formula (1) and formula (2), we can deduce: C t =F -1 (f(t)*E t ). Among them, E t is the total resource deviation at time t.

[0063] Assume that within a data processing cycle whose length is no greater than a preset threshold, f(t) and F -1 (·) is a fixed value. Based on the above formula, it can be deduced that: f(t)≈(Ct / E t ) / (C0 / E0). Among them, f(t) can be expressed as the coefficient adjustment parameter at the tth moment.

[0064] In this embodiment, when determining the feedback control coefficient at the current moment, the coefficient adjustment parameter corresponding to the current moment can be determined based on the reference resource control amount, the reference resource deviation amount, the resource deviation amount at the current moment and the resource control amount at the previous moment.

[0065] Optionally, a coefficient adjustment parameter corresponding to the current moment is determined based on a benchmark resource control amount, a benchmark resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at the previous moment, including: determining a ratio between the benchmark resource control amount and the benchmark resource deviation amount as a first resource ratio; and determining a ratio between the resource deviation amount at the current moment and the resource control amount at the previous moment as a second resource ratio; determining a ratio between the second resource ratio and the first resource ratio as the coefficient adjustment parameter corresponding to the current moment.

[0066] As an optional implementation of this embodiment, when obtaining the reference resource control amount, the reference resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at the previous moment, the ratio between the reference resource control amount and the reference resource deviation amount can be determined, and the ratio is used as the first resource ratio. In addition, the ratio between the resource deviation amount at the current moment and the resource control amount at the previous moment can be determined, and the ratio is used as the second resource ratio. Further, the ratio between the second resource ratio and the first resource ratio can be determined, and the ratio is used as the coefficient adjustment parameter corresponding to the current moment.

[0067] Exemplarily, the coefficient adjustment parameter corresponding to the current moment may be determined based on the following formula:

[0068] f t =(C t / E t ) / (C0 / E0)

[0069] Among them, f t Indicates the coefficient adjustment parameter corresponding to the current moment; C t The resource control amount acting on the resource allocation amount at the current moment, that is, the resource control amount at the previous moment before the current moment; E t It represents the resource deviation at the current moment; C0 represents the benchmark resource control amount; E0 represents the benchmark resource deviation amount.

[0070] In this embodiment, when the coefficient adjustment parameter corresponding to the current moment is obtained, the feedback control coefficient corresponding to the current moment can be determined according to the reference feedback control coefficient at the reference moment and the coefficient adjustment parameter.

[0071] Optionally, the feedback control coefficient corresponding to the current moment is determined based on the baseline feedback control coefficient and the coefficient adjustment parameter at the baseline moment, including: obtaining the baseline feedback control coefficient corresponding to the baseline moment; determining the product between the baseline feedback control parameter and the coefficient adjustment parameter as the feedback control coefficient corresponding to the current moment.

[0072] As an optional implementation of this embodiment, a benchmark feedback control coefficient corresponding to the benchmark moment can be obtained. The acquired benchmark feedback control coefficient may include a benchmark proportional coefficient, a benchmark integral coefficient, and a benchmark differential coefficient. Further, the product between the benchmark proportional coefficient and the coefficient adjustment parameter can be determined, and the product is used as the proportional coefficient at the current moment. In addition, the product between the benchmark integral coefficient and the coefficient adjustment parameter is determined, and the product is used as the integral coefficient at the current moment. In addition, the product between the benchmark differential coefficient and the coefficient adjustment parameter is determined, and the product is used as the differential coefficient at the current moment. Furthermore, the obtained proportional coefficient, integral coefficient, and differential coefficient can be used as the feedback control coefficient at the current moment. The advantage of this setting is that when applying the PID control algorithm to allocate computing resources, the effect of the coefficient adjustment parameter corresponding to the current moment is determined based on the benchmark resource control amount, the benchmark resource deviation amount, the resource deviation amount at the current moment and the resource control amount at the previous moment. Furthermore, at each moment, the feedback control coefficient corresponding to that moment is determined based on its corresponding coefficient adjustment parameter. Furthermore, in the case of dynamic changes in the computing resources of the GPU, the feedback control coefficient can be quickly regulated and converged, large fluctuations can be eliminated, and the feedback control coefficient can be called back when it changes sharply.

[0073] S230, determining the resource control amount of the virtual graphics processing unit at the current moment according to the feedback control coefficient corresponding to the current moment and the resource deviation amount at the current moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount.

[0074] In this embodiment, when the feedback control coefficient corresponding to the current moment is obtained, the resource control amount of the virtual graphics processing unit at the current moment can be determined according to the feedback control coefficient and the resource deviation amount at the current moment.

[0075] Optionally, the feedback control parameters include a proportional coefficient, an integral coefficient and a differential coefficient; based on the feedback control coefficient and the resource deviation at the current moment, the resource control amount of the virtual graphics processing unit at the current moment is determined, including: determining the product between the proportional coefficient and the resource deviation at the current moment, and using the product as the proportional control amount; determining the product between the integral coefficient and the integral value of the resource deviation at the current moment, and using the product as the integral control amount; determining the product between the differential coefficient and the differential value of the resource deviation at the current moment, and using the product as the differential control amount; adding the proportional control amount, the integral control amount and the differential control amount to obtain the resource control amount of the virtual graphics processing unit at the current moment.

[0076] As an optional implementation in this embodiment, the product between the proportional coefficient and the resource deviation amount at the current moment can be determined, and the product can be used as the proportional control amount at the current moment. In addition, the integral value corresponding to the resource deviation amount in the preset time period can be determined, and the product between the integral coefficient and the integral value can be determined, and the product can be used as the integral control amount. In addition, the differential value corresponding to the resource deviation amount in the preset time period can be determined, and the product between the differential coefficient and the differential value can be determined, and the product can be used as the differential control amount. Further, the proportional control amount, the integral control amount and the differential control amount can be added, and the control amount obtained after the addition can be used as the resource control amount of the virtual graphics processing unit at the current moment. Among them, the preset time period can be a time period of any length.

[0077] Exemplarily, the resource control amount at the current moment may be determined based on the following formula:

[0078] C t =K pt *E p +K it *E i +K dt *E d

[0079] Among them, C t Indicates the resource control amount at the current moment; K pt Indicates the current proportionality factor; E p Indicates the resource deviation at the current moment; K it Indicates the integral coefficient at the current moment; E i Indicates the integral value of resource deviation; K dt Represents the differential coefficient at the current moment; E d Indicates the differential value of the resource deviation amount.

[0080] The technical solution of the embodiment of the present invention determines the resource deviation amount at the current moment according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing unit at the current moment for multiple virtual graphics processing units associated with the graphics processor; wherein the resource allocation amount is determined based on the resource control amount at the previous moment. Further, the feedback control coefficient corresponding to the current moment is determined according to the reference resource deviation amount of the reference moment associated with the current moment, the reference resource deviation amount of the previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment. Further, the resource control amount of the virtual graphics processing unit at the current moment is determined according to the feedback control coefficient corresponding to the current moment and the resource deviation amount at the current moment, so as to achieve the effect of dynamically adjusting the resource allocation amount at the next moment based on the resource control amount, thereby improving the adaptability of the PID control algorithm in the VGPU computing power resource allocation. The resource allocation efficiency and allocation balance are improved.

[0081] Embodiment 3

[0082] Figure 3 Schematic diagram of a computing resource allocation device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a resource deviation amount determination module 310 and a resource control amount determination module 320.

[0083] The resource deviation amount determination module 310 is used to determine the resource deviation amount at the current moment for multiple virtual graphics processing units associated with the graphics processor according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing unit at the current moment; wherein the resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at the current moment, and the resource allocation amount is determined based on the resource control amount at the previous moment, and the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment; the resource demand amount is used to characterize the computing power resources required by the virtual graphics processing unit for data processing at the current moment; the resource control amount determination module 320 is used to determine the resource control amount at the current moment according to the reference resource deviation amount of the reference moment associated with the current moment, the reference resource control amount of the previous moment of the reference moment, the resource deviation amount at the current moment and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount; wherein the current moment, the reference moment and the next moment are moments within the same data processing cycle.

[0084] The technical solution of the embodiment of the present invention determines the resource deviation amount at the current moment according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing units at the current moment for multiple virtual graphics processing units associated with the graphics processor; wherein the resource allocation amount is determined based on the resource control amount at the previous moment; and the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment. Furthermore, the resource control amount at the current moment is determined according to the reference resource deviation amount at the reference moment associated with the current moment, the reference resource control amount at the previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment, so as to determine the resource allocation amount corresponding to the next moment of the current moment based on the resource control amount, thereby solving the problem that it is difficult to adapt to dynamically changing computing tasks and load conditions in related technologies, resulting in low resource allocation efficiency and unbalanced resource allocation, and realizing the determination of the feedback control coefficient at each moment on the basis of applying the PID control algorithm, and determining the resource control amount at the corresponding moment based on the feedback control coefficient at each moment, and then, dynamically adjusting the resource allocation amount at the next moment based on the resource control amount, thereby improving the adaptability of the PID control algorithm in VGPU computing power resource allocation. The resource allocation efficiency and allocation balance are improved.

[0085] Optionally, the resource control amount determination module 320 includes: a feedback control coefficient determination submodule and a resource control amount determination submodule.

[0086] A feedback control coefficient determination submodule, configured to determine a feedback control coefficient corresponding to the current moment according to a reference resource deviation amount at a reference moment associated with the current moment, a reference resource control amount at a previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment;

[0087] The resource control amount determination submodule is used to determine the resource control amount of the virtual graphics processing unit at the current moment according to the feedback control coefficient corresponding to the current moment and the resource deviation amount at the current moment.

[0088] Optionally, the feedback control coefficient determination submodule includes: a coefficient adjustment parameter determination unit and a feedback control coefficient determination unit.

[0089] A coefficient adjustment parameter determination unit, configured to determine a coefficient adjustment parameter corresponding to the current moment according to a reference resource control amount, a reference resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at the previous moment;

[0090] A feedback control coefficient determination unit is used to determine the feedback control coefficient corresponding to the current moment according to the reference feedback control coefficient at the reference moment and the coefficient adjustment parameter.

[0091] Optionally, the coefficient adjustment parameter determination unit includes: a resource ratio determination subunit and a coefficient adjustment parameter determination subunit.

[0092] A resource ratio determination subunit, configured to determine a ratio between a reference resource control amount and a reference resource deviation amount as a first resource ratio; and to determine a ratio between the resource deviation amount at the current moment and the resource control amount at the previous moment as a second resource ratio;

[0093] The coefficient adjustment parameter determination subunit is used to determine the ratio between the second resource ratio and the first resource ratio as the coefficient adjustment parameter corresponding to the current moment.

[0094] Optionally, the feedback control coefficient determination unit includes: a reference control coefficient acquisition subunit and a feedback control coefficient determination subunit.

[0095] A reference control coefficient acquisition subunit, used to acquire a reference feedback control coefficient corresponding to the reference time;

[0096] The feedback control coefficient determination subunit is used to determine the product between the reference feedback control parameter and the coefficient adjustment parameter to serve as the feedback control coefficient corresponding to the current moment.

[0097] Optionally, the feedback control parameters include a proportional coefficient, an integral coefficient and a differential coefficient; the resource control amount determination submodule includes: a proportional control amount determination unit, an integral control amount determination unit, a differential control amount determination unit and a resource control amount determination unit.

[0098] A proportional control amount determination unit, used to determine the product between the proportional coefficient and the resource deviation amount at the current moment, and use the product as the proportional control amount;

[0099] An integral control amount determination unit, used to determine the product of the integral coefficient and the integral value of the resource deviation amount at the current moment, and use the product as the integral control amount;

[0100] A differential control amount determination unit, used to determine the product between the differential coefficient and the differential value of the resource deviation amount at the current moment, and use the product as the differential control amount;

[0101] The resource control amount determination unit is used to add the proportional control amount, the integral control amount and the differential control amount to obtain the resource control amount of the virtual graphics processing unit at the current moment.

[0102] Optionally, the resource control amount determination module 320 includes: a resource allocation amount adjustment submodule.

[0103] The resource allocation amount adjustment submodule is used to adjust the resource allocation amount corresponding to the current moment according to the resource control amount, and use the adjusted resource allocation amount as the resource allocation amount corresponding to the next moment of the current moment.

[0104] The computing power resource allocation device provided in the embodiment of the present invention can execute the computing power resource allocation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0105] Embodiment 4

[0106] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0107] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0108] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a computing resource allocation method.

[0110] In some embodiments, the computing power resource allocation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the computing power resource allocation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the computing power resource allocation method in any other appropriate manner (e.g., by means of firmware).

[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

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

[0113] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0116] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0118] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A computing resource allocation method, characterized in that: include: For multiple virtual graphics processing units associated with a graphics processor, a resource deviation amount at a current moment is determined according to a resource allocation amount and a resource demand amount corresponding to the virtual graphics processing unit at a current moment; wherein the resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at a current moment, and the resource allocation amount is determined based on a resource control amount at a previous moment, and the resource control amount at a previous moment is determined based on a feedback control coefficient and a resource deviation amount at the previous moment; and the resource demand amount is used to characterize the computing power resources required by the virtual graphics processing unit for data processing at the current moment; Determine the resource control amount at the current moment according to a reference resource deviation amount at a reference moment associated with the current moment, a reference resource control amount at a moment before the reference moment, the resource deviation amount at the current moment, and the resource control amount at the moment before, so as to determine a resource allocation amount corresponding to a moment next to the current moment based on the resource control amount; The current moment, the reference moment and the next moment are moments in the same data processing cycle.

2. The computing resource allocation method according to claim 1, characterized in that: Determining the resource control amount at the current moment according to the reference resource deviation amount at the reference moment associated with the current moment, the reference resource control amount at the previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment, comprises: Determine a feedback control coefficient corresponding to the current moment according to a reference resource deviation amount at a reference moment associated with the current moment, a reference resource control amount at a previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment; The resource control amount of the virtual graphics processing unit at the current moment is determined according to the feedback control coefficient corresponding to the current moment and the resource deviation amount at the current moment.

3. The computing resource allocation method according to claim 2, characterized in that: The step of determining a feedback control coefficient corresponding to the current moment according to a reference resource deviation amount at a reference moment associated with the current moment, a reference resource control amount at a previous moment of the reference moment, the resource deviation amount at the current moment, and the resource control amount at the previous moment includes: Determining a coefficient adjustment parameter corresponding to the current moment according to the reference resource control amount, the reference resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at the previous moment; A feedback control coefficient corresponding to the current time is determined according to the reference feedback control coefficient at the reference time and the coefficient adjustment parameter.

4. The computing resource allocation method according to claim 3, characterized in that: The determining of the coefficient adjustment parameter corresponding to the current moment according to the reference resource control amount, the reference resource deviation amount, the resource deviation amount at the current moment, and the resource control amount at the previous moment includes: determining a ratio between a reference resource control amount and a reference resource deviation amount as a first resource ratio; and, Determine a ratio between the resource deviation amount at the current moment and the resource control amount at the previous moment as a second resource ratio; A ratio between the second resource ratio and the first resource ratio is determined as a coefficient adjustment parameter corresponding to the current moment.

5. The computing resource allocation method according to claim 3, characterized in that: The step of determining the feedback control coefficient corresponding to the current moment according to the reference feedback control coefficient at the reference moment and the coefficient adjustment parameter comprises: Obtaining a reference feedback control coefficient corresponding to the reference time; The product of the reference feedback control parameter and the coefficient adjustment parameter is determined as the feedback control coefficient corresponding to the current moment.

6. The computing resource allocation method according to claim 2, characterized in that: The feedback control parameter includes a proportional coefficient, an integral coefficient and a differential coefficient; and determining the resource control amount of the virtual graphics processing unit at the current moment according to the feedback control coefficient and the resource deviation amount at the current moment includes: Determine the product of the proportional coefficient and the resource deviation amount at the current moment, and use the product as the proportional control amount; Determine the product of the integral coefficient and the integral value of the resource deviation at the current moment, and use the product as the integral control amount; Determine the product of the differential coefficient and the differential value of the resource deviation amount at the current moment, and use the product as the differential control amount; The proportional control amount, the integral control amount and the differential control amount are added together to obtain the resource control amount of the virtual graphics processing unit at the current moment.

7. The computing resource allocation method according to claim 1, characterized in that: The determining, based on the resource control amount, the resource allocation amount corresponding to the next moment of the current moment includes: The resource allocation amount corresponding to the current moment is adjusted according to the resource control amount, and the adjusted resource allocation amount is used as the resource allocation amount corresponding to the next moment of the current moment.

8. A computing resource allocation device, characterized in that: include: A resource deviation amount determination module, for determining the resource deviation amount at the current moment for a plurality of virtual graphics processing units associated with a graphics processor according to the resource allocation amount and resource demand amount corresponding to the virtual graphics processing unit at the current moment; wherein the resource allocation amount is used to characterize the computing power resources allocated to the virtual graphics processing unit at the current moment, the resource allocation amount is determined based on the resource control amount at the previous moment, the resource control amount at the previous moment is determined based on the feedback control coefficient and the resource deviation amount at the previous moment; the resource demand amount is used to characterize the computing power resources required by the virtual graphics processing unit for data processing at the current moment; a resource control amount determination module, configured to determine the resource control amount at the current moment according to a reference resource deviation amount at a reference moment associated with the current moment, a reference resource control amount at a moment before the reference moment, the resource deviation amount at the current moment, and the resource control amount at the moment before, so as to determine a resource allocation amount corresponding to a moment next to the current moment based on the resource control amount; The current moment, the reference moment and the next moment are moments in the same data processing cycle.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the computing power resource allocation method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the computing power resource allocation method described in any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Server computing power management and distribution method and system, network equipment and storage medium

    CN115658282A

  • Resource presetting method and device, electronic equipment and storage medium

    CN116501245A

  • Method, system and equipment for dynamically balancing computing power resources and medium

    CN117971469A

  • Predictive forecasting and data growth trend in cloud services

    US10496306B1

  • A Computer System and Computer Implemented Method for Gaming in A Virtualisation Environment

    US20240342594A1