Calculation resource allocation device, server system, and calculation resource allocation method

The computational resource allocation device addresses the issue of uneven CPU core frequencies in cloud computing by reallocating resources to equalize frequencies and reduce power consumption, ensuring efficient performance and low power usage across cloud computing environments.

WO2024218874A1PCT designated stage expired Publication Date: 2024-10-24NT T INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/015507
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In cloud computing environments, the dynamic allocation of CPU resources using DVFS (Dynamic Voltage and Frequency Scaling) often results in uneven operating frequencies across CPU cores, leading to increased power consumption due to high frequencies in specific cores, even when overall CPU performance is surplus, making it difficult to maintain low power consumption while meeting performance demands.

Method used

A computational resource allocation device that monitors CPU core frequencies, evaluates configuration changes based on predetermined indices such as variance or difference in frequencies, and reallocates CPU cores to equalize operating frequencies across services, using PID control to minimize frequency variations and reduce power consumption.

Benefits of technology

This approach effectively suppresses the prominence of CPU core frequencies and maintains low power consumption while ensuring performance requirements are met for each service, reducing overall power usage by equalizing operating frequencies and optimizing resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023015507_24102024_PF_FP_ABST
    Figure JP2023015507_24102024_PF_FP_ABST
Patent Text Reader

Abstract

A server system (1000) comprises: a server (1) in which processing is executed while one or more services occupy a CPU core; and a calculation resource allocation device (100) that allocates a calculation resource to a service of the server (1). The calculation resource allocation device (100) comprises: a monitoring unit (110) that acquires the operation frequency of the CPU core of the server (1); an evaluation unit (120) that determines a configuration change of the service on the basis of the acquired operation frequency of the CPU core and a predetermined determination index; and a control unit (130) that, when the evaluation unit (120) determines the configuration change of the service, reallocates the CPU core to the service so that the operation frequencies of the CPU core are equalized.
Need to check novelty before this filing date? Find Prior Art

Description

Computational resource allocation device, server system, and computational resource allocation method

[0001] The present invention relates to a computing resource allocation device, a server system, and a computing resource allocation method.

[0002] Reducing server power consumption is an important issue for server operators, particularly those providing cloud computing services. There are a variety of ways to achieve this, but one approach is to control the central processing unit (CPU), a key component of a server.

[0003] Dynamic Voltage and Frequency Scaling (DVFS), a CPU power-saving technology, dynamically varies the voltage and operating frequency of a CPU core according to the processing load. Because CPU power consumption correlates with the operating frequency, when the processing load is low relative to the CPU's performance, DVFS can reduce the operating frequency, enabling the CPU to operate with minimal power consumption while still meeting the required performance. The operating frequency band specified by the DVFS function is also called a p-state, and many CPU products currently on the market are equipped with a p-state change function (see Non-Patent Document 1).

[0004] A CPU is composed of processor circuits called cores, and many modern server CPUs are equipped with multiple cores. Servers equipped with multiple CPU cores can perform high-performance parallel processing, allowing multiple services to run simultaneously on a single server chassis. In particular, in cloud computing, multiple different services share a server to increase server utilization efficiency, and the computing resources used by each service are typically dynamically assigned according to demand.

[0005] When sharing a server, to prevent interference between different services running on the same server, a method is sometimes adopted in which the operating system (OS) or hypervisor functions are used to specify the CPU cores to be used by each service without overlapping. Dynamic allocation of computing resources is also commonly achieved through a method called scale-out, which increases the number of service processing units, such as processes, virtual machines (VMs), or Linux containers ("Linux" is a registered trademark), and distributes processing requests to improve the overall processing performance of the service. In other words, in cloud computing and other applications, there is a demand for CPU frequency control using DVFS in units of CPU cores assigned to a service.

[0006] One implementation of the DVFS technology is a technology that changes the operating frequency of a CPU core based on the CPU utilization rate (Non-Patent Document 2).

[0007] This paper describes a technology for changing the operating frequency of a CPU core based on CPU utilization. When using the technology described in Non-Patent Document 2 in a situation where a specific small number of CPU cores are designated to perform service processing, the utilization rate of a specific CPU core may increase, even though the CPU as a whole has excess performance, resulting in a situation where the operating frequency of that CPU core increases. Because the power consumption of a CPU core is proportional to at least the square of the operating frequency, this situation cannot be considered optimal from the perspective of power consumption. In other words, in a situation where multiple CPU cores are available, it is desirable to prevent the operating frequency of a specific CPU core from exceeding its normal value and operate at a low overall operating frequency.

[0008] When there are an abundance of CPU cores available for a service, it is possible to lower the operating frequency per CPU core by allocating a large number of cores using the aforementioned scale-out method. However, in cloud computing, it is unrealistic to design resources that can meet the performance requirements of all services while running all CPU cores at their minimum operating frequency. In the first place, such environments have an excessive number of server machines, and reducing the number of server machines is likely to result in cost savings greater than the reduction in power consumption of running servers. Therefore, in many real-world operating environments, it is essential to set the operating frequency of CPU cores above the minimum depending on service demand. For these reasons, when running multiple services on the same server, a method is needed that allows specifying a CPU core for each service while preventing the operating frequency of a specific CPU core from exceeding the minimum, thereby enabling low-power operation.

[0009] <Combined Core Dedicated Allocation and DVFS> The combined use of dedicated core allocation and DVFS will now be described. FIG. 16 is a diagram showing the state in which CPU cores are exclusively allocated to services. The server 1 shown in FIG. 16 has a CPU 10, and service A is exclusively allocated to CPU core numbers "1" to "3" of the CPU core 11, service B is exclusively allocated to CPU core numbers "4" to "6," and service C is exclusively allocated to CPU core numbers "7" and "8." On server 1, one or more services A, B, and C are executed with the CPU core 11 occupied. Services A to C are executed in units of software processing, such as processes, virtual computers, Linux containers, and Kubernetes pods ("Kubernetes" is a registered trademark).

[0010] FIG. 17 is a diagram showing the operating frequencies of services A to C executed while the CPU core 11 in FIG. 16 is occupied. The operating frequencies of services A to C are optimized according to the load. Demand for services constantly fluctuates, and as the processing load of a service increases, the operating frequency per CPU core (hereinafter referred to as the operating frequency of a CPU core) increases due to the application, OS, or DVFS function installed in the CPU. When a request to execute a new service occurs, a CPU core must be allocated. At this time, if all CPU cores are already occupied by existing services, a CPU core must be allocated in accordance with the configuration change of the existing service.

[0011] The problem of using both dedicated core allocation and DVFS will now be explained. FIG. 18 illustrates the uneven operating frequencies of services A to C executed while the CPU core 11 in FIG. 16 is dedicated. As shown in FIG. 18, the operating frequency of service A, which has CPU core numbers "1" to "3" on the CPU core 11, is the maximum frequency. Service B, which has CPU core numbers "4" to "6," and service C, which has CPU core numbers "7" and "8," both have low operating frequencies, while service C, which has CPU core numbers "7" and "8," has the minimum operating frequency. In FIG. 18, when a specific small number of CPU cores are specified to execute service processing, the utilization rate of specific CPU cores (CPU core numbers "1" to "3" in FIG. 18) may increase, resulting in a higher operating frequency, even though the CPU as a whole has excess performance. Because the power consumption of a CPU core is proportional to at least the square of the operating frequency, in a situation where multiple CPU cores are available, it is desirable to prevent the operating frequency of a specific CPU core from becoming too high and operate at a low overall operating frequency.

[0012] FIG. 19 is a diagram illustrating the performance requirements and resource design of a service. When there are an abundant number of CPU cores available for a service, it is possible to lower the operating frequency of the CPU cores by allocating a large number of cores using scale-out. However, in cloud computing, a resource design like that shown in FIG. 19, which can meet the performance requirements of all services while running all CPU cores at the lowest operating frequency, is not realistic. In the first place, such an environment has an excessive number of server machines, and reducing the number of server machines itself is likely to result in cost savings greater than the reduction in power consumption of running servers. Therefore, in many real-world operating environments, it is essential to set the operating frequency of the CPU cores above the minimum depending on service demand.

[0013] C. Gough et al., “Energy Efficient Servers,” Apress Berkeley, CA, 2015, pp. 49-50, [online], [Retrieved April 5, 2023], Internet〈URL: https: / / link.springer.com / book / 10.1007 / 978-1-4302-6638-9〉 R. J. Wysocki, “CPU Performance Scaling,” The Linux Kernel documentation 6.2.0-rc8, Intel Corporation, 2017, [online], [Retrieved April 5, 2023], Internet〈URL: https: / / www.kernel.org / doc / html / latest / admin-guide / pm / cpufreq.html〉

[0014] As described above, in the prior art, a technique for implementing DVFS has been proposed in which the operating frequency of a CPU core is changed based on the CPU utilization rate. However, when a small number of specific CPU cores are designated to perform service processing, there is a problem in that, even though the CPU as a whole has excess performance, the utilization rate of only the specific CPU cores increases (the operating frequency becomes prominent), resulting in increased power consumption.

[0015] The present invention was made in light of this background, and its objective is to suppress any spikes in the operating frequency of the CPU core and maintain low CPU power consumption while satisfying the performance required for each service.

[0016] In order to solve the above-mentioned problems, a computing resource allocation device is provided that allocates computing resources to one or more services of a server on which processing is executed with the services occupying CPU cores, the computing resource allocation device comprising: a monitoring unit that acquires the operating frequency of the CPU cores of the server; an evaluation unit that determines a configuration change for the service based on the acquired operating frequency of the CPU cores and a predetermined judgment index; and a control unit that, when the evaluation unit determines a configuration change for the service, reallocates the CPU cores to the services so that the operating frequencies of the CPU cores are equalized.

[0017] According to the present invention, it is possible to suppress the rise in the operating frequency of the CPU core and maintain low CPU power consumption while satisfying the performance required for each service.

[0018] 1 is a schematic configuration diagram of a server system including a computational resource allocating device according to an embodiment of the present invention. FIG. 1 is a diagram illustrating a service execution environment that is a premise of the present invention. FIG. 2 is a diagram illustrating an overview of the operation of the computational resource allocating device according to an embodiment of the present invention. FIG. 2 is a diagram illustrating the operating frequencies of services A to C when a specific CPU core is specified or the number of CPU cores is uneven in the computational resource allocating device according to an embodiment of the present invention. FIG. 3 is a diagram illustrating changes in the operating frequencies of service A and service B due to the transfer of a fixed number of cores in FIG. 4. FIG. 4 is a diagram illustrating PID control applied to a server system according to an embodiment of the present invention. FIG. 5 is a table showing records of actual values ​​of the operating frequencies of services executed in a state where CPU cores are occupied in a computational resource allocating device according to an embodiment of the present invention. FIG. 6 is a diagram illustrating a control sequence of a server system according to an embodiment of the present invention. FIG. 7 is a flowchart illustrating the basic control operation of an evaluation unit of a computational resource allocating device according to an embodiment of the present invention. FIG. 8 is a flowchart illustrating the PID control operation of the evaluation unit of a computational resource allocating device according to an embodiment of the present invention. FIG. 9 is a flowchart illustrating the actual use operation of the evaluation unit of a computational resource allocating device according to an embodiment of the present invention. FIG. 10 is a diagram illustrating a case where a new service (service C) of a computational resource allocating device according to an embodiment of the present invention requests two cores. FIG. 11 is a diagram illustrating a control sequence when a service is added to a server system according to an embodiment of the present invention. FIG. 12 is a flowchart illustrating the control operation of the evaluation unit of a computational resource allocating device according to an embodiment of the present invention when a service is added. FIG. 13 is a hardware configuration diagram illustrating an example of a computer that realizes the functions of the computational resource allocating device in a server system according to Fig. 17 is a diagram showing the operating frequencies of services A to C executed when the CPU core in Fig. 16 is occupied. Fig. 18 is a diagram showing an uneven state of the operating frequencies of services A to C executed when the CPU core in Fig. 16 is occupied. Fig. 19 is a diagram explaining the performance requirements and resource design of services.

[0019] Hereinafter, a computational resource allocation device and the like in an embodiment for carrying out the present invention (hereinafter referred to as "the present embodiment") will be described with reference to the drawings. [Overview] Fig. 1 is a schematic configuration diagram of a server system equipped with a computational resource allocation device according to an embodiment of the present invention. Components that are the same as those in Fig. 16 are assigned the same reference numerals. This embodiment is an example in which the server system is applied to a CPU. In addition to CPUs, the present invention can also be applied to processors such as GPUs (Graphic Processing Units), FPGAs (Field Programmable Gate Arrays), and ASICs (Application Specific Integrated Circuits).

[0020] 1, the server system 1000 includes a server 1 on which processing is executed with one or more services occupying a CPU core 11 (see FIG. 2 described below), a computational resource allocation device 100 that allocates computational resources to the services of the server 1, and a service requester instruction terminal 2 that issues service requests to the computational resource allocation device 100. The server 1 is equipped with multiple CPU cores 11 and has a functional unit (e.g., a DVFS function) that changes the operating frequency of the CPU cores 11 depending on the processing load.

[0021] Computational Resource Allocation Device 100 The computational resource allocation device 100 includes a monitoring unit 110 , an evaluation unit 120 , a control unit 130 , and a service deployment request receiving unit 140 .

[0022] <Monitoring Unit 110> The monitoring unit 110 acquires the operating frequencies of all CPU cores of the managed server at predetermined time intervals (for example, at regular time intervals).

[0023] <Evaluation Unit 120> The evaluation unit 120 determines whether to change the configuration of a service based on the CPU core operating frequencies acquired by the monitoring unit 110. The evaluation unit 120 uses the variance of the operating frequencies of the CPU cores 11 or the difference between the maximum and minimum operating frequencies of the CPU cores 11 as a judgment index (the "predetermined judgment index" in the claims), and instructs the control unit 130 to change the configuration of the CPU cores 11 when the value indicated by the judgment index exceeds a predetermined threshold.

[0024] The judgment index is the variance of the CPU core operating frequencies or the difference between the maximum and minimum operating frequencies. The following examples (1) and (2) are given as judgment indexes. (1) The variance of the operating frequencies of all CPU cores. The magnitude of the variance can be said to indicate the degree to which a particular CPU core's operating frequency stands out. When all CPU cores are operating at the lowest operating frequency that meets the requirements, the variance is zero. (2) The difference between the maximum and minimum operating frequencies of all CPU cores. When either of these exceeds an arbitrary threshold, a configuration change is instructed. Either of the above indexes (1) and (2) may be selected and used, or they may be used simultaneously. When the above indexes (1) and (2) are used simultaneously, both are executed simultaneously, and when either judgment is met, the control unit 130 is instructed to change the configuration of the CPU core 11.

[0025] <Control Unit 130> When the evaluation unit 120 determines that the configuration of the services needs to be changed, the control unit 130 reallocates the CPU cores 11 to the services so that the operating frequencies of the CPU cores 11 are equalized.

[0026] The control unit 130 transfers computing resources from a service having computing resources operating at an operating frequency of the CPU core 11 lower than a predetermined value to a service having computing resources operating at an operating frequency of the CPU core 11 higher than the predetermined value, thereby equalizing the operating frequencies of the CPU cores 11. Note that the predetermined value for determining a low operating frequency of the CPU core 11 and the predetermined value for determining a high operating frequency of the CPU core 11 may be different values. By setting the predetermined values ​​to different values, frequent changes in control switching (so-called hunting) can be suppressed.

[0027] The control unit 130 determines the amount of computing resources to be transferred by the service using PID (Proportional, Integral, Derivative) control, which takes the amount of computing resources to be transferred as input, the difference in operating frequency between the computing resources of the transfer source and the transferee as output, and sets a target value of zero as the output value. This makes it possible to minimize variations in the operating frequency of the CPU core 11.

[0028] The control unit 130 stores the actual values ​​of the operating frequencies of the CPU cores 11 for each service before and after an increase or decrease in the number of CPU cores 11, and by referring to the actual values, does not make any allocation changes that are expected to have no effect on equalizing the operating frequencies of the CPU cores 11.

[0029] <Service Deployment Request Receiving Unit 140> The service deployment request receiving unit 140 receives a request to deploy a service on a server, and determines the number of CPU cores to be allocated to the service.

[0030] [Server 1] FIG. 2 is a diagram showing a service execution environment that is the premise of the present invention. Components that are the same as those in FIG. 16 are assigned the same reference numerals. As shown in FIG. 2, the server 1 includes a CPU 10 having multiple CPU cores 11, and one or more services (service A, service B) are executed with the CPU cores 11 occupied. Here, a service is a process that serves the same purpose and is executed on the server in units of software processing, such as a process, a virtual computer, a Linux container, or a Kubernetes pod. Furthermore, one service is executed by one or more software processing units, and the embodiment of the service is not limited.

[0031] To improve the processing power of a service, one method is to increase the number of CPU cores used by the service or to increase the operating frequency of the CPU cores. Demand for a service is constantly fluctuating. Therefore, when the processing load of a service increases, the operating frequency of the CPU cores is increased by the application, OS, or the DVFS function installed in the CPU. Furthermore, when a request to execute a new service occurs, a CPU core must be allocated. At this time, if all CPU cores are already occupied by existing services, a CPU core must be allocated in accordance with the configuration change of the existing service.

[0032] The computational resource allocation device 100 shown in FIG. 1 optimizes the operating frequency of the CPU core to reduce power consumption when multiple services (service A, service B, etc.) share a server 1 as shown in FIG. 2, assuming that the services use the CPU core exclusively and DVFS is used in combination.

[0033] The operation of the server system 1000 and the computational resource allocation device 100 configured as described above will be described below. [Overview] FIG. 3 is a diagram illustrating the overview of the operation of the computational resource allocation device 100. The upper diagram of FIG. 3 shows the operating frequencies of services A to C when specific CPU cores are designated or the number of CPU cores is uneven, resulting in high power consumption. The lower diagram of FIG. 3 shows the operating frequencies of services A to C when the CPU cores are uniform, resulting in low power consumption. In the upper diagram of FIG. 3, service A is executed with CPU core numbers "1" to "3" of CPU core 11 occupied. The operating frequency of the CPU core of service A is the highest frequency among all cores. Furthermore, the operating frequency of the CPU core of service B, which is executed with CPU core numbers "4" to "6" occupied, is the lowest frequency among all cores. As described above, when specific CPU cores are designated or the number of CPU cores is uneven, power consumption is high.

[0034] The computational resource allocation device 100 moves a CPU core (CPU core number "4") from service B to service A, bringing the CPU cores shown in the lower diagram of Figure 3 into an equalized state. As described in the problem to be solved, when multiple services are run on a shared server, a method is required that specifies the CPU core to be used for each service to ensure performance, while preventing the operating frequency of a specific CPU core from becoming too high, allowing the services to run with low power consumption. The computational resource allocation device 100 dynamically changes the number of CPU cores to be allocated to a service based on the distribution of the operating frequencies of the CPU cores so as to equalize the operating frequencies of each core. A specific example of the operation of the computational resource allocation device 100 is described below.

[0035] <Selection of services for which the number of cores is adjusted> The selection of services for which the number of cores is adjusted can be either (1) or (2) below. (1) For services for which the number of CPU cores is to be reduced, select the service that uses the CPU core with the lowest operating frequency out of all the CPU cores on the managed server. (2) For services for which the number of CPU cores is to be increased, select the service that uses the CPU core with the highest operating frequency out of all the CPU cores on the managed server.

[0036] <Number of CPU Cores to be Increased or Decrease> The number of CPU cores to be increased or decreased is a fixed value that can be set arbitrarily.

[0037] Figure 4 shows the operating frequencies of services A to C when a specific CPU core is specified or the number of CPU cores is uneven. Similar to the upper diagram of Figure 3, Figure 4 shows the operating frequency of the CPU core of service A, which is the highest frequency among all cores. Furthermore, the operating frequency of the CPU core of service B, which is executed while occupying CPU core numbers "4" to "6," is the lowest frequency among all cores.

[0038] The computing resource allocation device 100 transfers a fixed number of cores from service B to service A, as indicated by arrow a in FIG.

[0039] FIG. 5 is a diagram showing, in a table, actual values ​​of the operating frequencies of CPU cores before and after an increase or decrease in the number of CPU cores, as recorded (stored) by the control unit 130. FIG. 5 illustrates changes in the operating frequencies of service A and service B due to the transfer of the fixed number of cores in FIG. 4. The upper diagram of FIG. 5 illustrates the operating frequencies of service A, and the lower diagram of FIG. 5 illustrates the operating frequencies of service B. The computational resource allocation device 100 transfers the fixed number of cores from service B to service A. As a result, as shown in the upper diagram of FIG. 5, in service A, the number of cores increases from "3" (before the change) to "4" (after the change), and accordingly, the operating frequency before the change is reduced from "40" to "30." Meanwhile, in service B, as shown in the lower diagram of FIG. 5, the number of cores decreases from "3" (before the change) to "2" (after the change), and accordingly, the operating frequency before the change is reduced from "10" to "20." In service B, the operating frequency will increase to "20" after the change, but the operating frequency of service A before the change, "40", can be reduced to the operating frequency after the change, "30". From the perspective of the entire server system 1000, the power consumption of the CPU can be reduced.

[0040] The processing flow of the computing resource allocation device 100 will be explained below, divided into "periodic monitoring" and "service addition." [Regular processing flow during periodic monitoring] The monitoring unit 110 acquires the operating frequencies of the CPU cores running on all managed servers at regular intervals.

[0041] The evaluation unit 120 calculates the variance or the difference between the maximum and minimum from the acquired operating frequencies of the CPU cores. For example, if the operating frequencies of the three CPU cores are 10, 15, and 20, respectively, the variance can be calculated using the following formulas: Average value = (10 + 15 + 20) / 3 = 15 Variance = ((10 - 15) 2 + (15-15) 2 + (20-15) 2 ) / 3 = 16.666..

[0042] The difference between maximum and minimum can be calculated using the following formula: Difference between maximum and minimum = 20 - 10 = 10 If the above value exceeds an arbitrarily set threshold, the evaluation unit 120 issues an instruction to the control unit 130 to change the configuration.

[0043] When the control unit 130 receives a configuration change instruction, it decreases the number of CPU cores assigned to services with CPU cores having low operating frequencies and increases the number of CPU cores assigned to services with CPU cores having high operating frequencies. The allocation of CPU cores may involve scaling out processing units such as processes, VMs, and Linux containers, or the number of CPU cores assigned to the processing units themselves may be increased using the functions of the OS or hypervisor. The selection of services for which the number of CPU cores is to be increased or decreased and the determination of the number of CPU cores for which the number of CPU cores is to be increased or decreased may be performed using, for example, Method 1: basic control and Method 2: PID control.

[0044] <Method 1: Basic Control> For services that will reduce the number of CPU cores, select the service that uses the CPU core with the lowest operating frequency of all CPU cores on the managed server. Also, for services that will increase the number of CPU cores, select the service that uses the CPU core with the highest operating frequency of all CPU cores on the managed server. The number of CPU cores to be increased or decreased is set to an arbitrarily set fixed value.

[0045] Depending on the operating conditions of the server, simply increasing or decreasing the number of CPU cores may not be effective enough, and the peak operating frequency may not be resolved. Alternatively, excessive changes to the number of CPU cores used by a service may result in a so-called oscillation state, in which the CPU core with the peak operating frequency is replaced with another CPU core each time the cores are reallocated (as will be described later with arrow b in Figure 7). Method 2: An advanced form of PID control is one method for reallocating CPU cores.

[0046] <Method 2: PID Control> - Selection of services for which the number of cores is adjusted The services for which the number of CPU cores is to be increased or decreased are the same as those in <Method 1: Basic Control>. That is, for services for which the number of CPU cores is to be decreased, the service that uses the CPU core with the lowest operating frequency of all the CPU cores on the managed server is selected. For services for which the number of CPU cores is to be increased, the service that uses the CPU core with the highest operating frequency of all the CPU cores on the managed server is selected.

[0047] Increasing or decreasing the number of CPU cores: Meanwhile, the increase or decrease in the number of CPU cores is achieved using PID control, a feedback control method. PID control controls input values ​​using three elements: the deviation between the output value and the target value, its integral, and its derivative. <Method 2: PID control> determines the amount of computing resources based on the difference in operating frequency of the CPU cores. That is, when the evaluation unit 120 determines a change in the configuration of a service according to the above flow, the control unit 130 determines the amount of computing resources to be transferred by the service using PID control, which takes the amount of computing resources to be transferred as input, the difference in operating frequency between the transferor and recipient computing resources as output, and sets the output value to zero as the target value.

[0048] When executing PID control, the control unit 130 repeatedly performs the control in response to a single configuration change instruction from the evaluation unit 120. Here, to prevent the control from being attempted infinitely, an upper limit is set for the number of attempts, and when the upper limit is reached, the PID control ends and waits for the next instruction from the evaluation unit 120. The relational expression between the input and deviation in general PID control is shown in Equation (1).

[0049]

[0050] In the PID control equation (1), K p , K i , K d are the proportional gain, integral gain, and differential gain, respectively, where u is the input, e is the deviation, and t is the time. In equation (1), the input is the number of CPU cores to be increased or decreased, and the target value is set to zero, so that the difference in CPU core operating frequency between the service that increases the CPU core and the service that decreases the CPU core is calculated (FIG. 6).

[0051] 6 is a diagram illustrating PID control applied to the server system 1000. The input value control feeds back the output y, and performs PID control on the deviation e between the output y and the target value r according to equation (1). The output of the PID control is the input u (= the number of CPU cores to be increased or decreased) to the server system 1000, and the server system 1000 outputs the output y (= the operating frequency of the service to be increased in CPU cores - the operating frequency of the service to be decreased in CPU cores).

[0052] For two services that are the target of increasing or decreasing CPU cores, the greater the difference in the operating frequencies of the CPU cores they use, the greater the deviation, and more CPU cores will be transferred from the service with the lower operating frequency to the service with the higher operating frequency.

[0053] Here, this PID control is performed repeatedly in response to a single configuration change instruction from the evaluation unit 120, and deviations are stored for calculating the differential and integral components. Also, as with general PID control, adjustments of each gain are set in advance based on the performance of similar systems, etc.

[0054] By using this PID control, when the variance is large, it is possible to make larger adjustments and reach the optimal state in a shorter time. Furthermore, because user requests such as web requests are constantly arriving at the service, the load changes even while CPU cores are being reallocated. The differential component term can also mitigate the effects of such disturbances. In particular, when the difference between the maximum and minimum frequencies is used as an index, the differential component term has the effect of reducing the occurrence of overshooting, which is the exceedance of the target value.

[0055] In the environment assumed by this invention, services are assigned to a natural number of CPU cores, so adjusting the number of CPU cores does not necessarily result in the index value becoming zero. To prevent infinite attempts at control, an upper limit is set for the number of attempts. When the upper limit is reached, the control unit 130 terminates this process and waits for the next instruction from the evaluation unit 120. The above method is merely an example, and the present invention is not limited to this.

[0056] <Multiple Combinations of Services> By repeating the above process at regular intervals, the number of CPU cores is adjusted for multiple combinations of services, and ultimately the maximum operating frequency of all CPU cores is reduced.

[0057] <Improving the efficiency of steady-state processing> Next, a method for improving the efficiency of steady-state processing by suppressing the execution of invalid configuration changes will be described. When changing the allocation of CPU cores, system overhead occurs, such as scale-out processing. For this reason, configuration changes that are not effective in reducing the operating frequency should not be executed. Below, a method for suppressing the execution of invalid configuration changes will be described.

[0058] - Advance prediction The computational resource allocation device 100 records the actual operating frequency per CPU core for each service before and after increasing or decreasing the number of CPU cores, and checks the effect before reallocating CPU cores. If the check results in prediction that the expected effect will not be achieved, the control is not executed. For example, if the CPU core allocation is changed even though the expected effect will not be achieved, the reallocation of CPU cores will simply reverse the operating frequencies of the CPU cores allocated to the services. In this case, the reallocation of CPU cores will not have any effect on reducing imbalance.

[0059] 7 is a table showing records of actual values ​​of the operating frequencies of services executed with CPU cores occupied, with the left diagram in Fig. 7 showing the operating frequencies of service A and the right diagram in Fig. 7 showing the operating frequencies of service B. For example, in service A shown in a bold frame in the left diagram in Fig. 7, the number of CPU cores used by service A before the change is assumed to be 2, and the operating frequency before the change is assumed to be 20. Also, in service B shown in a bold frame in the right diagram in Fig. 7, the number of CPU cores used by service B before the change is assumed to be 4, and the operating frequency before the change is assumed to be 10.

[0060] The computational resource allocation device 100 determines whether to transfer one CPU core (referred to as one core) from service B to service A. The computational resource allocation device 100 checks the expected effect based on the actual values ​​in FIG. 7 . It is predicted that the operating frequency of service A will become 10 by adding one core, and that the operating frequency of service B will become 20 by removing one core. In this case, since neither the dispersion nor the difference between the maximum and minimum frequencies is expected to improve, the computational resource allocation device 100 does not actually increase or decrease the number of CPU cores. In other words, it is determined that changing the allocation of CPU cores as indicated by arrow b in FIG. 7 simply reverses the operating frequencies of the services and has no effect on reducing imbalance.

[0061] Summary The computational resource allocation device 100 records the actual values ​​of the operating frequency per CPU core before and after increasing or decreasing the number of CPU cores for each service, and checks the effects before reallocating CPU cores. If the check results show that the expected effects will not be achieved, the computational resource allocation device 100 does not execute control.

[0062] By making the above-mentioned advance prediction, the computing resource allocation device 100 can suppress the occurrence of system overhead due to invalid configuration change processing.

[0063] Regarding management based on the actual operating frequency, even when the same number of CPU cores are in operation, the operating frequency will differ depending on the load, so the number of CPU cores and the operating frequency must be managed together.

[0064] <Modifications> This embodiment may take the following modifications regarding the adjustment of the number of CPU cores between multiple services. - Sequential execution A service with a CPU core with the highest operating frequency and a service with a CPU core with the lowest operating frequency are selected, and the number of CPU cores between the two services is changed sequentially. - Optimal CPU core allocation An optimal CPU core allocation that minimizes bias is calculated based on the change record, and core allocation is changed at the same time. - Selection of combinations of all CPU cores For all combinations of changes in the number of cores, a predicted operating frequency after the change is calculated using the actual value of the operating frequency per CPU core for each service, and a combination that minimizes the variance of all CPU cores or the difference between the maximum and minimum frequencies is selected.

[0065] [Control Sequence] The control sequence of the server system 1000 will be described. FIG. 8 is a diagram showing the control sequence of the server system 1000. The dashed line in FIG. 8 indicates a sequence that is repeated at regular intervals, while the dashed line in FIG. 8 indicates a sequence that is repeated when a configuration change determination is made. Specific processing in the dashed line in FIG. 8 when a configuration change determination is made will be described later using the flows in FIGS. 9 to 11. The monitoring unit 110 queries the server 1 about the CPU core frequency (step S101). In response to this, the server 1 returns to the monitoring unit 110 a response to the CPU core frequency query, including the CPU core frequency and a response indicating whether or not the CPU core frequency used by the service (referred to as a core-using service) can be changed (step S102).

[0066] The monitoring unit 110 requests the evaluation unit 120 to start a frequency distribution evaluation (a configuration change evaluation of a service based on the CPU core operating frequency acquired by the monitoring unit 110) (step S103). The evaluation unit 120 performs a configuration change determination based on the frequency distribution evaluation (step S104). The evaluation unit 120 transmits a configuration change instruction and the CPU core frequency to be used for the configuration change to the control unit 130 (step S105). The control unit 130 requests the server 1 to perform a core allocation change operation (step S106). The server 1 requests the evaluation unit 120 to perform a frequency distribution evaluation (step S107). The evaluation unit 120 performs a configuration change determination (step S108).

[0067] [Flowchart] <Basic Control> Figure 9 is a flowchart showing the basic control operation of the evaluation unit 120 of the computational resource allocation device 100. This flow starts when triggered by a configuration change instruction. In step S11, the evaluation unit 120 increments the number of attempts. In step S12, the evaluation unit 120 identifies a service (called service A) that has a CPU core with the highest frequency. In step S13, the evaluation unit 120 identifies a service (called service B) that has a CPU core with the lowest frequency.

[0068] In step S14, the evaluation unit 120 reduces the number of CPU cores allocated to service B by a certain number. The certain number is a number arbitrarily determined by the server operator. In step S15, the evaluation unit 120 increases the number of CPU cores allocated to service A by a certain number. The certain number is a number arbitrarily determined by the server operator.

[0069] In step S16, the evaluation unit 120 evaluates the distribution of CPU core frequencies. Specifically, the evaluation unit 120 evaluates the distribution of CPU core frequencies by determining whether the variance or the difference between the maximum and minimum exceeds a threshold. In step S17, the evaluation unit 120 determines whether a configuration change determination is necessary. If a configuration change determination is not necessary (S17: No), the processing of this flow ends.

[0070] If a configuration change determination is necessary (S17: Yes), the evaluation unit 120 determines in step S18 whether the number of attempts is less than the upper limit. If the number of attempts is equal to or greater than the upper limit (S18: No), the process of this flow ends. If the number of attempts is less than the upper limit (S18: Yes), the process returns to step S11.

[0071] When the evaluation unit 120 determines that the configuration of the services needs to be changed according to the above flow, the control unit 130 reallocates the CPU cores 11 to the services so that the operating frequencies of the CPU cores 11 are equalized.

[0072] <PID Control> Figure 10 is a flowchart showing the PID control operation of the evaluation unit 120 of the computational resource allocation device 100. The same processes as in the flow of Figure 9 are assigned the same step numbers. This flow starts when triggered by a configuration change instruction. In step S11, the evaluation unit 120 increments the number of attempts. In step S12, the evaluation unit 120 identifies a service (called service A) that has a CPU core with the highest frequency. In step S13, the evaluation unit 120 identifies a service (called service B) that has a CPU core with the lowest frequency.

[0073] In step S21, the evaluation unit 120 increments the number of PID trials. In step S22, the evaluation unit 120 decreases the number of cores allocated to service B by the number calculated using the PID control formula. In step S23, the evaluation unit 120 increases the number of cores allocated to service A by the number calculated using the PID control formula (formula (1)).

[0074] In step S24, the evaluation unit 120 determines whether the PID attempt count is below the upper limit. The PID attempt count upper limit determination may be made based on whether the PID deviation is equal to or less than an arbitrary threshold value set by the server operator. If the PID attempt count is below the upper limit (S24: Yes), the process returns to step S21.

[0075] Note that the PID control (S21 to S24 in FIG. 10) and the basic control (S14 and S15 in FIG. 9) are trade-offs.

[0076] If the PID trial count is equal to or greater than the upper limit (S24: No), the evaluation unit 120 evaluates the distribution of CPU core frequencies in step S16. Specifically, the evaluation unit 120 evaluates the distribution of CPU core frequencies by determining whether the variance or the difference between the maximum and minimum exceeds a threshold. In step S17, the evaluation unit 120 determines whether a configuration change determination is necessary. If a configuration change determination is not necessary (S17: No), the processing of this flow ends.

[0077] If a configuration change determination is necessary (S17: Yes), the evaluation unit 120 determines in step S18 whether the number of attempts is less than the upper limit. If the number of attempts is equal to or greater than the upper limit (S18: No), the process of this flow ends. If the number of attempts is less than the upper limit (S18: Yes), the process returns to step S11.

[0078] When the evaluation unit 120 determines a change in the configuration of the service using the above flow, the control unit 130 determines the amount of computational resources to be transferred by the service using PID control, which takes the amount of computational resources to be transferred as input, the difference in operating frequency between the computational resources from the transferor and the computational resource recipient as output, and sets the output value to zero as the target value.

[0079] <Actual Usage> Figure 11 is a flowchart showing the actual usage operation of the evaluation unit 120 of the computational resource allocation device 100. The same processes as in the flow of Figure 9 are assigned the same step numbers. This flow starts when a configuration change instruction is received as a trigger. In step S11, the evaluation unit 120 increments the number of attempts. In step S12, the evaluation unit 120 identifies a service (called service A) that has a CPU core with the highest frequency. In step S13, the evaluation unit 120 identifies a service (called service B) that has a CPU core with the lowest frequency.

[0080] In step S31, the evaluation unit 120 inquires of the control unit 130 about the actual operating frequency values ​​of the CPU cores 11 ( FIG. 5 ) recorded (stored) by the control unit 130, and confirms the actual operating frequency values ​​after increasing or decreasing the number of CPU cores. In step S32, the evaluation unit 120 compares the predicted CPU core frequency distribution after the control with the current CPU core frequency distribution. In step S33, the evaluation unit 120 determines whether or not there is an effect of improving the distribution.

[0081] If there is no effect of improving the distribution (S33: No), the processing of this flow ends. If there is an effect of improving the distribution (S33: Yes), in step S14, the evaluation unit 120 reduces the number of CPU cores allocated to service B by a certain number. In step S15, the evaluation unit 120 increases the number of CPU cores allocated to service A by a certain number.

[0082] In step S16, the evaluation unit 120 evaluates the distribution of CPU core frequencies. Specifically, the evaluation unit 120 evaluates the distribution of CPU core frequencies by determining whether the variance or the difference between the maximum and minimum exceeds a threshold. In step S17, the evaluation unit 120 determines whether a configuration change determination is necessary. If a configuration change determination is not necessary (S17: No), the processing of this flow ends.

[0083] If a configuration change determination is necessary (S17: Yes), the evaluation unit 120 determines in step S18 whether the number of attempts is less than the upper limit. If the number of attempts is equal to or greater than the upper limit (S18: No), the process of this flow ends. If the number of attempts is less than the upper limit (S18: Yes), the process returns to step S11.

[0084] When the evaluation unit 120 determines a change in the configuration of a service based on the above flow, the control unit 130 records (retains) for each service the actual values ​​of the operating frequencies of the CPU cores 11 before and after an increase or decrease in the number of CPU cores 11, and by referring to the actual values, suppresses allocation changes that are expected to have no effect on equalizing the operating frequencies of the CPU cores 11.

[0085] This concludes the description of the processing flow "during regular monitoring" of the computing resource allocating device 100. Next, the processing flow "when adding a service" of the computing resource allocating device 100 will be described.

[0086] [When a Service is Added] <Flow of New Service Deployment> The flow of new service deployment will be described. When a new service operation request is received from the service requester instruction terminal 2, the service deployment request receiving unit 140 (FIG. 2) determines the number of CPU cores to be allocated. The number of CPU cores to be allocated during new operation may be a fixed value determined arbitrarily by the system, or may be specified by the service deployment requester. The control unit 130 (FIG. 2) selects existing services for which the number of CPU cores should be reduced, and reduces the number of CPU cores determined by the service deployment request receiving unit 140. The method of service selection is the same as that used during regular monitoring (FIGS. 3 to 11).

[0087] The control unit 130 allocates a CPU core to the new service and runs it. A method of scaling out processing units such as processes, VMs, and Linux containers may be used, or the number of CPU cores allocated to the processing units themselves may be increased using the functions of the OS or hypervisor.

[0088] FIG. 12 is a diagram illustrating a case where a new service (service C) requires two cores (two CPU cores). The top diagram of FIG. 12 is a diagram illustrating the operating frequencies of services A and B in the initial state. The middle diagram of FIG. 12 is a diagram illustrating the operating frequencies of services A, B, and unused services in the intermediate state. The bottom diagram of FIG. 12 is a diagram illustrating the operating frequencies of services A to C in the final state. In the initial state of the top diagram of FIG. 12, service A is running occupying CPU core numbers "1" to "3" of CPU core 11, and service B is running occupying CPU core numbers "4" to "8."

[0089] Prior to starting the new service, the control unit 130 releases the two cores of service B, which has a lower operating frequency, because the new service requires two cores, and leaves the two cores (CPU core numbers "7" and "8") unused (middle diagram in Figure 12).

[0090] The control unit 130 allocates the new service (Service C) to the two CPU cores (CPU core numbers "7" and "8") released by Service B and runs it (Deploy Service C) (lower diagram in FIG. 12). With the above operations, the newly requested service runs on the server, and thereafter, configuration changes are made by the regular monitoring operations during [Periodic Monitoring].

[0091] <Control Sequence> The control sequence when a service is added to the server system 1000 will be described. Fig. 13 is a diagram showing the control sequence when a service is added to the server system 1000. The service requester instruction terminal 2 makes a service addition request to the control unit 130 (step S111). The control unit 130 makes a CPU core frequency / core usage service request to the server 1 (step S112). The server 1 returns a response to the core usage service request to the control unit 130 (step S113).

[0092] The control unit 130 performs an operation to reduce the number of cores of the service having the lowest frequency core on the server 1 (step S114). The control unit 130 performs an operation to activate an additional service on the server 1 (step S115).

[0093] <Flowchart> Figure 14 is a flowchart showing the control operation of the evaluation unit 120 of the computational resource allocation device 100 when adding a service. This flow starts with a request to add a service (referred to as service A). In step S41, the monitoring unit 110 acquires the CPU core frequency and service operation status of the server 1. The service addition request is assumed to be similar to that of a general cloud service. For example, the minimum specification is a VM image or a container image, and optional specifications are assumed to include the number of CPU cores, memory capacity, and storage capacity.

[0094] In step S42, the evaluation unit 120 identifies a service (called service B) that has a core with the lowest frequency. In step S42, the evaluation unit 120 reduces the cores assigned to service B by a certain number. This certain number is a number arbitrarily determined by the server operator or the number of CPU cores specified by the service requester. In step S42, the evaluation unit 120 starts service A using the cores removed from service B, and then ends the processing of this flow.

[0095] [Hardware Configuration] The computational resource allocation device 100 ( FIG. 2 ) according to the above embodiment is realized by, for example, a computer 900 configured as shown in FIG. 15 . FIG. 15 is a hardware configuration diagram showing an example of the computer 900 that realizes the functions of the computational resource allocation device 100 ( FIG. 2 ). The computer 900 has a CPU 901, a ROM 902, a RAM 903, a HDD 904, a communication interface (I / F) 906, an input / output interface (I / F) 905, and a media interface (I / F) 907.

[0096] The CPU 901 operates based on programs stored in the ROM 902 or the HDD 904, and controls each unit of the computational resource allocation device 100 (FIGS. 2 and 3). The ROM 902 stores a boot program executed by the CPU 901 when the computer 900 is started, programs dependent on the hardware of the computer 900, and the like.

[0097] The CPU 901 controls an input device 910 such as a mouse or keyboard, and an output device 911 such as a display, via an input / output I / F 905. The CPU 901 acquires data from the input device 910 via the input / output I / F 905, and outputs generated data to the output device 911. Note that a GPU (Graphics Processing Unit) or the like may be used as a processor together with the CPU 901.

[0098] The HDD 904 stores programs executed by the CPU 901 and data used by the programs. The communication I / F 906 receives data from other devices via a communication network (e.g., NW (Network) 920) and outputs the data to the CPU 901, and also transmits data generated by the CPU 901 to other devices via the communication network.

[0099] The media I / F 907 reads a program or data stored in the recording medium 912 and outputs it to the CPU 901 via the RAM 903. The CPU 901 loads a program related to a target process from the recording medium 912 onto the RAM 903 via the media I / F 907, and executes the loaded program. The recording medium 912 is an optical recording medium such as a DVD (Digital Versatile Disc) or a PD (Phase Change Rewritable Disc), a magneto-optical recording medium such as an MO (Magneto Optical Disc), a magnetic recording medium, a conductive memory tape medium, a semiconductor memory, or the like.

[0100] For example, when the computer 900 functions as the computational resource allocation device 100 ( FIG. 2 ) configured as one device according to this embodiment, the CPU 901 of the computer 900 executes a program loaded onto the RAM 903 to realize the functions of the computational resource allocation device 100. In addition, the HDD 904 stores data in the RAM 903. The CPU 901 reads and executes a program related to a target process from the recording medium 912. Alternatively, the CPU 901 may read a program related to a target process from another device via a communication network (NW 920).

[0101] [Effect] As described above, the computational resource allocation device 100 allocates computational resources to services of the server 1 on which processing is executed with one or more services occupying the CPU core 11, and the computational resource allocation device 100 includes a monitoring unit 110 that acquires the operating frequency of the CPU core 11 of the server 1, an evaluation unit 120 that determines a change in the configuration of the service based on the acquired operating frequency of the CPU core 11 and a predetermined judgment index, and a control unit 130 that, when the evaluation unit 120 determines a change in the configuration of the service, reallocates the CPU core 11 to the service so that the operating frequencies of the CPU cores 11 are equalized.

[0102] In this way, the computational resource allocation device 100 (control unit 130) reallocates CPU cores to services to reduce bias in the operating frequencies of the CPU cores. As shown in Figure 3, for services that use an increasing number of CPU cores, the operating frequency per CPU core decreases as the processing load is distributed, and conversely, for services that use a decreasing number of CPU cores, the operating frequency per CPU core increases. This makes it possible to reduce (preferably minimize) the variation in the operating frequencies of computational resources.

[0103] For example, when a specific small number of CPU cores are designated to process a service, the utilization rate of only the specific CPU cores increases (the operating frequency rises), even though the CPU as a whole has excess performance, which can solve the problem of increased power consumption. As a result, when multiple services are run on a shared server, it is possible to suppress the rise in the operating frequency of the CPU cores and maintain low CPU power consumption while still meeting the performance required for each service.

[0104] Furthermore, the computing resource allocation device 100 does not require special hardware and can be implemented using only software functions.

[0105] In the computational resource allocation device 100 (Figure 2), the evaluation unit 120 uses the variance of the operating frequencies of the CPU cores 11 or the difference between the maximum and minimum operating frequencies of the CPU cores 11 as a judgment index, and if the value indicated by the judgment index exceeds a predetermined threshold, it instructs the control unit 130 to change the configuration of the CPU cores 11.

[0106] By doing this, the computational resource allocation device 100 (evaluation unit 120) can, for example, obtain the operating frequencies of all the computational resources it possesses, calculate the variance or difference, and perform an operation if the variance or difference exceeds an arbitrarily set threshold amount, thereby instructing the control unit 130 to make configuration changes to minimize the variation in the operating frequencies of the computational resources.

[0107] In the computational resource allocation device 100 (Figure 2), the control unit 130 transfers computational resources from a service having computational resources that operate at an operating frequency of the CPU core 11 lower than a predetermined value to a service having computational resources that operate at an operating frequency of the CPU core 11 higher than the predetermined value, thereby equalizing the operating frequencies of the CPU cores 11.

[0108] By doing this, the computational resource allocation device 100 can equalize the operating frequencies of the computational resources by adjusting the amount of computational resources used by the service, and can reduce (preferably minimize) the variation in the operating frequencies of the computational resources.

[0109] In the computational resource allocation device 100 (Figure 2), the control unit 130 determines the amount of computational resources to be transferred by the service using PID control, which takes the amount of computational resources to be transferred as input, the difference in operating frequency between the computational resources from the transferor and the transferee as output, and sets the output value to zero as the target value.

[0110] In this way, the control unit 130 can use PID control to determine the amount of computing resources to be transferred by the service. By using PID control, when the variance is large, it is possible to make larger adjustments and reach an optimal state in a shorter time. Furthermore, because user requests such as web requests are constantly arriving at the service, the load changes even while the CPU cores are being reallocated. The differential component term can also mitigate the effects of such disturbances. In particular, when the difference between the maximum and minimum frequencies is used as an index, the differential component term has the effect of reducing the occurrence of overshooting, which is the phenomenon of exceeding the target value.

[0111] In the computational resource allocation device 100 (Figure 2), the control unit 130 records (retains) the actual values ​​of the operating frequencies of the CPU cores 11 for each service before and after an increase or decrease in the number of CPU cores 11, and by referring to the actual values ​​(Figure 5), suppresses allocation changes that are expected to have no effect on equalizing the operating frequencies of the CPU cores 11.

[0112] In this way, the computational resource allocation device 100 (FIG. 2) dynamically changes the number of CPU cores allocated to a service so as to equalize the operating frequencies of the CPU cores. At this time, by suppressing allocation changes that are expected to be invalid (i.e., do not achieve equalization effects), it is possible to reduce system overhead caused by unnecessary allocation changes.

[0113] The computing resource allocation device 100 (FIG. 2) includes a service deployment request receiving unit 140 that receives a request to deploy a service on a server.

[0114] In this way, the computational resource allocation device 100 (service deployment request receiving unit 140) can receive a new service operation request from the service requester instruction terminal 2 (FIG. 2). When the service deployment request receiving unit 140 receives a new service operation request, it sends the new operation request to the evaluation unit 120, which then determines the number of CPU cores to be newly allocated. The control unit 130 allocates CPU cores to the new service and operates it.

[0115] A server system 1000 (FIG. 1) includes a server 1 (FIG. 1) on which processing is executed with one or more services occupying a CPU core 11, and a computational resource allocation device 100 (FIG. 2) that allocates computational resources to the services of the server, wherein the server 1 is equipped with a plurality of CPU cores 11 and has a functional unit that changes the operating frequency of the CPU cores 11 according to the processing load, and the computational resource allocation device 100 includes a monitoring unit 110 that acquires the operating frequency of the CPU cores 11 of the server 1, an evaluation unit 120 that determines a change in the configuration of the service based on the acquired operating frequency of the CPU cores 11 and a predetermined judgment index, and a control unit 130 that reallocates the CPU cores 11 to the services so that the operating frequencies of the CPU cores 11 are equalized when the evaluation unit 120 determines a change in the configuration of the service.

[0116] When server 1 (FIG. 1) is equipped with a functional unit (e.g., a DVFS function) that changes the operating frequency of CPU core 11 depending on the processing load, and a small number of specific CPU cores are designated for service processing, there is a problem in that, even though the CPU as a whole has excess performance, the usage rate of only the specific CPU cores becomes high (the operating frequency becomes prominent), resulting in increased power consumption.

[0117] The computational resource allocation device 100 (FIG. 2) dynamically changes the number of CPU cores allocated to a service so as to equalize the operating frequencies of the CPU cores 11 based on the distribution of the operating frequencies of the CPU cores 11. This prevents the operating frequency of a specific CPU core from rising too high, enabling operation with low power consumption.

[0118] Note that, among the processes described in the above embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically using known methods. Furthermore, the processing procedures, control procedures, specific names, and information including various data and parameters shown in the above documents and drawings can be changed as desired unless otherwise specified. Furthermore, the components of each device shown in the drawings are functionally conceptual and do not necessarily have to be physically configured as shown. In other words, the specific form of distribution and integration of each device is not limited to that shown in the drawings, and all or part of the devices can be functionally or physically distributed and integrated in any unit depending on various loads, usage conditions, etc.

[0119] Furthermore, the above-described configurations, functions, processing units, processing means, etc. may be partially or entirely implemented in hardware, for example, by designing them as integrated circuits. The above-described configurations, functions, etc. may also be implemented by software that causes a processor to interpret and execute programs that implement the respective functions. Information such as programs, tables, and files that implement the respective functions may be stored in a memory, a recording device such as a hard disk or a solid-state drive (SSD), or a recording medium such as an integrated circuit (IC) card, a secure digital (SD) card, or an optical disk.

[0120] REFERENCE SIGNS LIST 1 Server 2 Service requester instruction terminal 100 Computational resource allocation device 110 Monitoring unit 120 Evaluation unit 130 Control unit 140 Service allocation request reception unit 1000 Server system

Claims

1. A computing resource allocation device that allocates computing resources to one or more services of a server on which processing is executed with the services occupying a CPU core, comprising: a monitoring unit that acquires the operating frequency of the CPU core of the server; an evaluation unit that determines whether to change the configuration of the service based on the acquired operating frequency of the CPU core and a predetermined judgment index; and a control unit that, when the evaluation unit determines whether to change the configuration of the service, reallocates the CPU core to the service so that the operating frequencies of the CPU cores are equalized.

2. The computing resource allocation device according to claim 1, characterized in that the evaluation unit uses the variance of the operating frequencies of the CPU cores or the difference between the maximum and minimum operating frequencies of the CPU cores as the judgment index, and instructs the control unit to change the configuration of the CPU cores when the value indicated by the judgment index exceeds a predetermined threshold.

3. The computing resource allocation device according to claim 1, characterized in that the control unit transfers computing resources from a service having computing resources operating at an operating frequency of the CPU core lower than a predetermined value to a service having computing resources operating at an operating frequency of the CPU core higher than the predetermined value, thereby equalizing the operating frequencies of the CPU cores.

4. The computing resource allocation device described in claim 3, characterized in that the control unit determines the amount of computing resources to be transferred by the service using PID control, which takes the amount of computing resources to be transferred as input, takes the difference in operating frequency between the computing resources from which the transfer is made and the computing resources to which the transfer is made as output, and has a target value of zero as the output value.

5. The computational resource allocation device according to claim 1, characterized in that the control unit retains, for each service, actual values ​​of the operating frequencies of the CPU cores before and after an increase or decrease in the number of CPU cores, and by referring to the actual values, does not make any allocation changes that are expected not to have the effect of equalizing the operating frequencies of the CPU cores.

6. The computing resource allocation device according to claim 1, further comprising a service deployment request receiving unit that receives a request to deploy the service on the server.

7. A server system comprising: a server on which processing is executed with one or more services occupying a CPU core; and a computational resource allocation device that allocates computational resources to the services of the server, wherein the server is equipped with a plurality of CPU cores and has a functional unit that changes the operating frequency of the CPU cores according to the processing load, and the computational resource allocation device comprises: a monitoring unit that acquires the operating frequency of the CPU cores of the server; an evaluation unit that determines a change in the configuration of the service based on the acquired operating frequency of the CPU cores and a predetermined judgment index; and a control unit that, when the evaluation unit determines a change in the configuration of the service, reallocates the CPU cores to the services so that the operating frequencies of the CPU cores are equalized.

8. A computational resource allocation method of a computational resource allocation device that allocates computational resources to one or more services of a server in which processing is executed with the services occupying CPU cores, wherein the computational resource allocation device executes the following steps: acquiring the operating frequency of the CPU core of the server; determining a change in the configuration of the service based on the acquired operating frequency of the CPU core and a predetermined judgment index; and, if a change in the configuration of the service is determined, reallocating the CPU cores to the services so that the operating frequencies of the CPU cores are equalized.

Citation Information

Patent Citations

  • Systems and methods for real-time repository management for universal service deployment

    US20220337668A1

  • Information processing device, method for controlling information processing device, and program

    WO2012008019A1