Resource control device, computer system, resource control method, and resource control program
The resource control device dynamically adjusts CPU settings to balance power efficiency and performance, addressing the independent control logic limitations in conventional technologies by aggregating performance and power consumption data to ensure SLA compliance and minimize power usage.
Patent Information
- Application Number
- PCT/JP2023/016417
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-10-31
AI Technical Summary
Conventional CPU power-saving technologies face challenges in balancing power efficiency and processing performance, leading to potential SLA violations due to independent control logics for C-state, P-state, and CPU core allocation, which do not guarantee both power efficiency and performance simultaneously.
A resource control device and method that sets a control value set combining CPU core allocation, P-state, and C-state to ensure SLA compliance by aggregating relational data on performance and power consumption, allowing for dynamic adjustments during operation to minimize power usage while maintaining performance within stable intervals.
This approach enables power-saving control that guarantees SLA and maximizes power efficiency by dynamically adjusting CPU settings based on real-time performance and power consumption data, ensuring optimal resource allocation and usage.
Smart Images

Figure JP2023016417_31102024_PF_FP_ABST
Abstract
Description
Resource control device, computer system, resource control method, and resource control program
[0001] The present invention relates to a resource control device, a computer system, a resource control method, and a resource control program.
[0002] C-state control and P-state control are known as power-saving features for CPUs installed in computers such as servers, and are controlled by an OS implementation policy called a governor. C-states conserve power by switching the power supply to the CPU. C-states are expressed as various modes ranging from the normal operating mode "C0" to a mode that reduces the CPU's internal voltage "C6." The smaller the number after "C," the greater the power consumption. Note that the more power is conserved, the longer it takes to return to a state where performance is optimal. Non-Patent Document 1 describes that C-states are controlled by the intel_idle driver ("intel" is a registered trademark) or acpi_idle driver and C-state selection logic based on various governors.
[0003] P-states reduce power consumption by reducing the CPU clock speed. The larger the P-state, the greater the power consumption. P-states are used in battery-powered portable devices. Non-Patent Document 2 describes that P-states are controlled by the intel_pstate driver or P-state selection logic by various governors.
[0004] Rafael J. Wysocki, "intel_idle CPU Idle Time Management Driver - The Linux Kernel documentation," [online], [Retrieved April 14, 2023], 2020 Intel Corporation, Internet <URL: https: / / www.kernel.org / doc / html / latest / admin-guide / pm / intel_idle.html> Rafael J. Wysocki, "intel_pstate CPU Performance Scaling Driver - The Linux Kernel documentation," [online], [Retrieved April 14, 2023], 2017 Intel Corporation, Internet <URL: https: / / www.kernel.org / doc / html / latest / admin-guide / pm / intel_pstate.html>
[0005] What is desired is CPU control that balances both cost (power efficiency), which is a priority for service providers, and SLA (Service Level Agreement) guarantees, which are a priority for service users. There are three types of CPU control parameters that affect power efficiency: C-state (see Non-Patent Document 1); P-state (see Non-Patent Document 2); and the number of CPU cores allocated to an application. The larger the number of CPU cores allocated, the greater the power consumption. The number of CPU cores can be increased by scaling out or up, and can be decreased by scaling in or down. In conventional implementations, scaling out or other operations are performed when CPU usage exceeds a fixed threshold.
[0006] By appropriately selecting these three parameters, power efficiency can be improved. However, in conventional technologies, the control logic for the three parameters operates independently, so a power-efficient selection is not guaranteed. Furthermore, even if power efficiency is improved in CPU control, which consumes a lot of power, the CPU's processing performance may be reduced, making it impossible to comply with the SLA guarantee. In other words, there is a trade-off between power efficiency and processing performance. However, the governors in Non-Patent Documents 1 and 2 do not implement a monitoring function for guaranteeing application SLAs.
[0007] Therefore, a main object of the present invention is to provide power saving control that achieves both SLA guarantee and power efficiency.
[0008] In order to solve the above problems, the resource control device of the present invention has the following features: For an execution device that causes execution units to execute a load, the resource control device has an aggregation unit that sets control values, each of which defines a combination of the number of execution units to be used and control values for power control of the execution units, and aggregates, for each control value set, relational data indicating the relationship between the performance provided by the execution units and the power consumption of the execution units, and a setting unit that, based on the relational data, determines a control value set that falls within a stable interval indicating a range of performance for which an SLA can be guaranteed, and, from the determined control value sets, determines a control value set that minimizes power consumption.
[0009] The present invention can provide power saving control that achieves both SLA guarantee and power efficiency.
[0010] 10A and 10B are diagrams illustrating the configuration of a computer system corresponding to (selection method 1) according to the present embodiment; FIG. 11B is a flowchart illustrating the processing of the computer system according to the present embodiment; FIG. 11C is a graph illustrating a first example of information collected from an execution device before operation according to the present embodiment; FIG. 11D is a graph illustrating a second example of information collected from an execution device before operation according to the present embodiment; FIG. 11E is a table illustrating the processing by which an optimal control selection unit determines a set of control values during operation according to the present embodiment; FIG. 11F is a table illustrating the processing when there are multiple apps to be controlled according to the present embodiment; FIG. 11G is a diagram illustrating the configuration of a computer system corresponding to (selection method 2) according to the present embodiment; FIG. 11H is a flowchart illustrating the operation of a computer system according to the present embodiment; FIG. 11H is a graph illustrating an index used to determine whether a stable interval has been exceeded according to the present embodiment; FIG. 11I is a table illustrating the processing for correcting an observation value set according to the present embodiment; FIG. 11I is an explanatory diagram illustrating the processing for determining the correction content of an observation value set from the candidates extracted in FIG. 10 according to the present embodiment; FIG. 11I is an explanatory diagram illustrating the processing when multiple apps requiring SLA guarantees each occupy separate CPU cores according to the present embodiment; FIG. 11I is an explanatory diagram illustrating the processing when multiple apps requiring SLA guarantees share some CPU cores according to the present embodiment. It is an explanatory diagram of a case where a first application requiring SLA guarantee and a second application not requiring SLA guarantee are mixed according to the present embodiment. It is a hardware configuration diagram of a computer system according to the present embodiment. It is a table showing an implementation example of a computer system according to the present embodiment.
[0011] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0012] First, the terms used in this embodiment will be explained. An "application" is a processing unit that issues request processing, such as a process, a VM (Virtual Machine), or a container. One application starts one or more processes, and each process requests each CPU core (execution unit) to process the request. Each CPU core is an example of a resource used to process a load. Note that this embodiment shows an example in which one process exclusively assigns a load to one CPU core, but one process may also assign loads to multiple CPU cores.
[0013] "Scale control" refers to control of increasing or decreasing the number of CPU cores assigned to an application, and examples include the following: - Scale-out, which increases the number of CPU cores assigned to an application by increasing the number of processes. - Scale-up, which increases the number of CPU cores assigned to an application by increasing the number of CPU cores assigned to processes, without increasing or decreasing the number of processes. - Scale-in, which decreases the number of CPU cores assigned to an application by decreasing the number of processes. - Scale-down, which decreases the number of CPU cores assigned to an application by decreasing the number of CPU cores assigned to processes, without increasing or decreasing the number of processes.
[0014] "Load" is an indicator of the amount of processing required by an application, such as due to requests from users of the services provided by the application. The application distributes the generated load to each CPU core via each process. "Performance value" is an indicator of the load that a CPU core can actually process. Examples of performance values include application processing delay (statistics such as the 95th percentile) and application throughput (number of requests successfully processed). Resource utilization rates can also be used as metrics (indicators) to replace performance values. "SLA guarantee" means that the provider guarantees the level of service (performance value) agreed upon between the service user and provider.
[0015] "Power consumption" is the power consumed by a CPU core, and increases exponentially with an increase in P-state. "Power efficiency" is calculated by dividing the performance value by the power consumption. An "observation value set" is a combination of the performance value and power consumption observed when a CPU core processes a load. A "control value" is a control parameter that determines the level of performance value a CPU core should output, and examples include the maximum P-state and C-state values, and the number of CPU cores assigned to an application. Hereinafter, the combination of the P-state, maximum C-state, and number of CPU cores for each CPU core controlled by the same application will be referred to as a "control value set."
[0016] In this embodiment, the following two selection methods are proposed as methods for selecting a set of control values to provide power-saving control that achieves both SLA guarantees and power efficiency. (Selection Method 1) A method in which data indicating the relationship between a set of control values and a set of observed values is collected before operation (in advance), and the data indicating this relationship is referenced during operation to select an optimal set of control values (FIGS. 1 to 6). (Selection Method 2) A method in which the set of observed values is monitored during operation and the current set of control values is successively improved to become the optimal set of control values (FIGS. 7 to 11). Here, the optimal set of control values is, for example, a set of control values that minimizes power consumption from among candidate sets of control values that fall within a stable interval that can stably produce SLA-guaranteed performance values. The threshold of the stable interval is expressed as a combination of an excess threshold and an insufficient threshold of the performance value, and the stable interval is the interval between the excess threshold and the insufficient threshold (see FIG. 9 for details).
[0017] FIG. 1 is a configuration diagram of a computer system 100A corresponding to (Selection Method 1). The computer system 100A is configured by connecting one or more execution devices 10, a monitoring device (resource control device) 20, and a control device 30 via a network. The execution device 10 includes a load collector 11, an execution instruction unit 12, a CPU 13, and an observation value collector 14. The execution instruction unit 12 causes each CPU core (C1, ... Cn) in the CPU 13 to execute one or more processes launched by an application. The load collector 11 collects the load imposed on the application from each process P1...Pm of the execution instruction unit 12. The observation value collector 14 collects observation value pairs (performance values and power consumption) from each CPU core C1...Cn in the CPU 13.
[0018] The monitoring device 20 has an aggregator 21 and a setting unit 22. The aggregator 21 receives the loads collected by the load collector 11 and the sets of observed values collected by the observed value collector 14, and aggregates the received parameters. In other words, for the execution device 10 that causes the execution units to execute the loads, the aggregator 21 sets control values, which are combinations of the number of execution units to be used and control values for power control of the execution units, and aggregates, for each set of control values, relationship data (details of which will be described later in FIGS. 3 and 4 ) that indicates the relationship between the performance provided by the execution units and the power consumption consumed by the execution units.
[0019] In (selection method 1), before operation of the execution unit, the aggregator 21 aggregates relationship data indicating the relationship between performance and power consumption measured by the execution unit for each combination of a control value set to be set on the execution unit and a load previously applied to the execution unit, and stores the relationship data in the control device 30. Based on the parameters aggregated by the aggregator 21, the configurator 22 calculates parameters (threshold values for a stable zone) for setting a control value set for scale control in the control device 30. That is, based on the relationship data from the aggregator 21, the configurator 22 determines a control value set that falls within a stable zone indicating a range of performance for which the SLA can be guaranteed, and from the determined control value sets, determines a control value set that minimizes power consumption. The configurator 22 then sets the determined control value set in the execution device 10, for example, at the start of operation.
[0020] The control device 30 includes an optimal control selector 31, a CPU core allocation unit 32, a P-state control unit 33, and a C-state control unit 34. According to (selection method 1), the optimal control selector 31 references the settings (stable zone thresholds) of the setting unit 22 to detect a trigger for changing the scale control (when an SLA violation is likely to occur), and selects an optimal set of control values to avoid the SLA violation. That is, the optimal control selector 31 receives measurement results of the load and performance of the execution unit from the currently operating execution device 10, and when the measured performance deviates from the stable zone, references the stored relationship data and sets, to the execution device 10, a set of control values that minimizes power consumption from among the sets of control values that bring the measured performance under the measured load within the stable zone.
[0021] The CPU core allocation unit 32 changes the number of CPU cores allocated to the application in the selected optimal set of control values. For example, if a performance value falls below the deficiency threshold, which would likely result in insufficient performance, the CPU core allocation unit 32 changes the number of allocated CPU cores to increase (scale out or scale up). The P-state control unit 33 changes the P-state of the CPU in the selected optimal set of control values. For example, if a performance value falls below the deficiency threshold, which would likely result in insufficient performance, the P-state control unit 33 changes the P-state to increase. The C-state control unit 34 changes the maximum value of the CPU C-state in the selected optimal set of control values. For example, if a performance value falls below the deficiency threshold, which would likely result in insufficient performance, the C-state control unit 34 changes the maximum C-state value to decrease.
[0022] FIG. 2 is a flowchart showing the processing of the computer system 100A. First, steps S11-S15 are steps in which the monitoring device 20 collects information from the execution device 10 before operation. In these steps, the monitoring device 20 collects a list of observed value pairs (performance and power consumption) for the application when each control value pair (P-state, maximum C-state value, number of CPU cores) of the CPU cores assigned to the application is changed for all upper and lower limits of the load that can be generated by the application. In other words, the monitoring device 20 comprehensively collects data on all conceivable parameters. The aggregation unit 21 determines a currently uncollected "control value pair & load" combination to be collected this time (S11). The aggregation unit 21 sets the control value pair determined in S11 in the control device 30 and sets the load determined in S11 in the execution instruction unit 12 of the execution device 10 (S12). The control device 30 then controls the execution device 10 using the set of control values.
[0023] The observed value collector 14 of the execution device 10 measures the observed value pairs through processing (benchmark processing for data collection) executed in accordance with the settings in S12. The aggregator 21 then collects the observed value pairs measured by the observed value collector 14 (S13). This completes data collection for the "control value pair & load" combination determined in S11. The configuration unit 22 combines the control value pair and load determined in S11 with the observed value pair collected in S13 to create configuration data (relational data) for the execution device 10 (S14). The aggregator 21 then determines whether any "control value pair & load" combinations that have not yet been collected exist (S15). If any uncollected combinations exist (S15, Yes), the aggregator 21 returns to S11; if no uncollected combinations exist (S15, No), the aggregator 21 proceeds to S21.
[0024] Next, steps S21-S23 are steps performed during operation of the execution unit 10. The execution unit 10 periodically measures a set of observed values (e.g., a 95%ile application delay as a performance value) using the observed value collector 14, and periodically measures the load using the load collector 11 (S21). If the set of observed values or the load in S21 deviates from the stable interval, the optimal control selector 31 determines a set of control values (selection method 1) that will return the set to the stable interval (S22). The result of the determination in S22 is reflected in the execution unit 10 via the CPU core allocation unit 32, P-state control unit 33, and C-state control unit 34. Here, if the consolidation unit 21 detects an environmental change due to some operational operation or the like (S23, Yes), it executes the process again from S11. If the answer in S23 is No, the consolidation unit 21 returns to S21.
[0025] FIG. 3 is a graph showing a first example of information collected from the execution device 10 before operation (S11-S15). Graph 110 is a data collection result showing that when a combination of a set of control values (here, only the number of CPU cores is shown as a representative) on the X axis and a load on the Y axis is given to the execution device 10, the performance measured on the Z axis from the execution device 10 is obtained. Area 111 in graph 110 indicates a stable interval. Graph 120 shows a combination of control value sets, such as a combination of the number of CPU cores on the X axis and a P-state and C-state (P / C-state in the figure) on the Y axis. Area 121 in graph 120 indicates a stable interval corresponding to area 111. Graph 130 is a data collection result showing that when a combination of a set of control values (here, only the number of CPU cores is shown as a representative) on the X axis and a load on the Y axis is given to the execution device 10, the power consumption measured on the Z axis from the execution device 10 is obtained. An area 131 in the graph 130 indicates a stable interval corresponding to the area 121. According to the first example of Fig. 3, although it requires time and effort for the preliminary data collection phase, accurate values of the observed value set can be maintained for all the control value sets, thereby enabling accurate control.
[0026] FIG. 4 is a graph showing a second example of information collected from the execution device 10 before operation (S11-S15). In the second example of FIG. 4, it is assumed that the set of observed values (performance and power consumption) changes according to some independent function of the set of control values (P-state, number of CPU cores). Based on this assumption, the aggregator 21 samples the collected data and performs interpolation using an approximation formula. The following graphs show the interpolation results, with the sampling results shown as circles and the approximation formulas shown as wavy curves. Graph 140 shows a function that takes P-state as input and performance as output. Graph 150 shows a function that takes the number of CPU cores as input and performance as output. Graph 160 shows a function that takes P-state as input and power consumption as output. Graph 170 shows a function that takes the number of CPU cores as input and power consumption as output.
[0027] In the following example, the maximum C-state value is omitted, but the procedure is the same except that the number of control parameters increases. In this way, in the second example of Figure 4, the aggregation unit 21 creates an approximation formula for calculating performance and power consumption from the individual parameters that are components of the control value set as relational data. This reduces the cost of the pre-data collection phase compared to the first example, although the accuracy of the values is slightly lower.
[0028] Furthermore, as a third example of information collected from the execution device 10 before operation, the aggregator 21 may apply various control value sets and loads, sample the results of the observation value sets, and use the sampled results as training data to construct a learning model that can obtain an observation value set for any control value set and load. This learning model is expressed by a function f, such as observation value set = f (control value set, load). In this way, in the third example, the aggregator 21 applies control value sets and loads as relational data, sample the results of the observation value sets, and use the sampled results as training data to construct a learning model that can obtain an observation value set for any control value set and load. This reduces the cost of the pre-data collection phase compared to the first example, although the accuracy of the values is slightly lower. Furthermore, the cost of analysis, such as selecting an approximation formula, is lower compared to the second example.
[0029] FIG. 5 is a table illustrating the process (S22 in FIG. 2) by which the optimal control selection unit 31 determines a set of control values during operation. This table also shows relational data collected before operation (S11-S15 in FIG. 2). The vertical axis of the table indicates the request volume (rps: Requests Per Second) as the applied load. The horizontal axis of the table indicates the set of control values set when executing the applied load (only the number of pods indicating the number of CPU cores is shown; other control values are omitted). The cell values in the table represent the set of observed values (the 95th percentile of delay as a performance value and power consumption). The 95th percentile of delay = 100 ms is set as the SLA, and the excess threshold is set to 55 ms (milliseconds), and the shortage threshold is set to 90 ms. Note that the smaller the delay value, the better the performance; therefore, the excess threshold indicating excessive performance is smaller than the shortage threshold indicating excessive performance.
[0030] Assume that operation is initiated with an initial setting of one pod and a load of 50 rps. At this time, the performance of the control value set, 80 ms, falls within the stable range (55 ms to 90 ms). Now, assume that congestion occurs over time, increasing the load to 150 rps. If the number of pods remains at one, the performance of the control value set, 100 ms, falls outside the stable range (55 ms to 90 ms). Therefore, the optimal control selector 31 refers to the table in FIG. 5 to determine the number of pods that will keep the performance within the stable range (55 ms to 90 ms) for the current load of 150 rps. As a result, the optimal control selector 31 obtains a first candidate (number of pods = 2, performance = 80 ms) and a second candidate (number of pods = 3, performance = 60 ms). Furthermore, the optimal control selector 31 references the power consumption of each candidate and adopts the first candidate (framed with a thick solid line) because it consumes less power than the second candidate (framed with a dashed line). As a result, even for a load of 150 rps, the performance value can be returned to the stable range again, thereby guaranteeing the SLA.
[0031] Figure 6 is a table for a case where there are multiple apps (execution instruction units 12) to be controlled. Figure 5 shows data collection results for a single application (App). Figure 6 shows data collection results for a case where the same execution device 10 executes multiple apps simultaneously. The table in Figure 6 stores observation results when different control value sets (Pod numbers indicating the number of CPU cores) are set for each app (App1, App2). Above, with reference to Figures 1 to 6, we have explained selection method 1, in which data indicating the relationship between control value sets and observation value sets as shown in Figures 5 and 6 is collected before operation. Below, with reference to Figures 7 to 11, we will explain selection method 2, in which data is not collected in advance.
[0032] 7 is a configuration diagram of a computer system 100B corresponding to (selection method 2). Compared to the computer system 100A of FIG. 1, the computer system 100B of FIG. 7 omits the load collection unit 11. Furthermore, the optimal control selection unit 31 of the computer system 100B receives measurement results of the performance and power consumption of the execution unit from the execution device 10 for which a predetermined set of control values is set and which is executing a load. If the measured performance deviates from the stable interval, the optimal control selection unit 31 corrects the predetermined set of control values according to (selection method 2) so as to return the performance to within the stable interval.
[0033] 8 is a flowchart showing the operation of the computer system 100B. S31-S33 show the control content during operation. The execution unit 10 periodically measures a set of observations (for example, the 95%ile of application delay as a performance value) using the observation collection unit 14 (S31). The optimal control selection unit 31 determines whether the set of observations in S31 has deviated from the stable interval (S32). If the answer is Yes in S32, proceed to S33; if No, return to S31. The optimal control selection unit 31 corrects the current set of observations that has deviated from the stable interval in accordance with (selection method 2) so that it returns to the stable interval (S33), and returns the process to S31.
[0034] 9 is a graph showing the index used in the determination in S32. The optimal control selector 31 basically determines in S32 whether the 95%ile delay of the application measured as a performance value in S31 deviates from a stable interval between an excess threshold (80 ms) and an insufficient threshold (100 ms) (left side of FIG. 9 ). Alternatively, the execution device 10 may measure a metric such as resource usage as a substitute for a performance value (S31), and the optimal control selector 31 may determine in S32 whether the resource usage deviates from a stable interval between an excess threshold (30% usage) and an insufficient threshold (70% usage) (right side of FIG. 9 ).
[0035] FIG. 10 is a table showing the process of correcting the observed value set in S33. The vertical axis of the table is P-state, with performance values increasing downwards. The horizontal axis of the table is the number of Pods, which indicates the number of CPU cores, with performance values increasing toward the right. Note that C-state is omitted from the illustration for simplicity, but it can also be included in the table. The cell value C22[1] in the table is a combination of the explanatory ID C22, which indicates the observed value set (performance value, power consumption), and [1], which indicates the first correction, indicating the number of corrections.
[0036] 10 illustrates an example of correcting performance to improve it when a performance deficiency below the deficiency threshold is determined in S32. That is, the CPU core allocation unit 32 executes a scale-out or scale-up to increase the number of CPU cores to be allocated through correction. Alternatively, the P-state control unit 33 may increase the P-state to improve performance, or the C-state control unit 34 may improve performance by lowering the maximum C-state value. However, performing a correction to improve performance tends to increase power consumption.
[0037] First, let us assume that the current state in FIG. 10 is (number of pods = 2, P-state = P3) and that insufficient performance has occurred in the corresponding C23[0]. In this case, the optimal control selector 31 selects candidates that improve performance by one level compared to the current state. (Number of pods = 3, P-state = P3) → C33[1] is a candidate in which only the number of pods is improved by one level. (Number of pods = 2, P-state = P2) → C22[1] is a candidate in which only the P-state is improved by one level. (Number of pods = 3, P-state = P2) → C32[1] is a candidate in which both the number of pods and the P-state are improved by one level. Similarly, candidates ~[2] in FIG. 10 are candidates in which performance is improved by two levels, and candidates ~[3] in FIG. 10 are candidates in which one performance level is improved by one level and the other performance level is reduced by one level.
[0038] FIG. 11 is an explanatory diagram showing the process of determining the correction content of the observation value set from the candidates extracted in FIG. 10. FIG. 11 illustrates a selection method from candidates that improve performance by one level. First, as described in FIG. 10, the performance C23 obtained from the current state (number of pods = 2, P-state = P3) is below the deficiency threshold [100 ms], so in S32, performance is determined to be insufficient. Therefore, the optimal control selector 31 sets the control value sets for each of the three candidates (C33, C22, C32) described in FIG. 10 to the execution device 10 and operates it, thereby acquiring the observation value sets (performance values, power consumption) from the observation value collector 14. In other words, in (selection method 2), the observation value sets are acquired during operation.
[0039] The optimal control selector 31 excludes C32 from the candidates because its performance was improved too much, resulting in excessive performance exceeding the excess threshold [80 ms]. Next, the optimal control selector 31 narrows down the candidates from C31 and C22 because their performance falls within the stable range. Therefore, the optimal control selector 31 refers to the power consumption of C31 and C22 and adopts C22, which has lower power consumption. In this case, the optimal control selector 31 found candidates whose performance falls within the stable range from the candidates that improve performance by one level. If none of the candidates whose performance falls within the stable range by one level, the optimal control selector 31 expands the search range to include candidates whose performance is improved by two levels (candidates [2] in Figure 10) and candidates [3] in Figure 10) and identifies a set of control values whose performance falls within the stable range and whose power consumption is minimal.
[0040] As explained above, the control device 30 performs different controls depending on whether the performance is insufficient or excessive. When the performance of the measurement result deviates from the stable interval and the performance of the measurement result is insufficient compared to the stable interval, the control device 30 sets at least one of the following controls in the execution device 10: control to increase the number of execution units to be used and power control to increase the performance provided by the execution units. When the performance of the measurement result deviates from the stable interval and the performance of the measurement result is insufficient compared to the stable interval, the control device 30 sets at least one of the following controls in the execution device 10: control to reduce the number of execution units to be used and power control to reduce the performance provided by the execution units.
[0041] Below, with reference to FIGS. 12-14, an example will be described in which a single execution device 10 executes multiple apps (execution instruction unit 12). FIG. 12 is an explanatory diagram of a case in which multiple apps requiring SLA guarantees each occupy a different CPU core. A first app (execution instruction unit 12) occupies CPU cores "C1" and "C2," and a second app (execution instruction unit 12) occupies CPU cores "C3" and "C4." In this case, computer systems 100A and 100B can execute the processes shown in FIGS. 2 and 8 independently for each app.
[0042] FIG. 13 is an explanatory diagram of a case where multiple apps requiring SLA guarantees share some CPU cores. CPU core "C2" is shared by two apps. In this case, performance for a set of control values may be reduced due to CPU core contention between the apps. However, the expected control can be achieved as follows: (Selection Method 1) The computer system 100A simply performs pre-data collection (S11-S15 in FIG. 2), including the status of CPU core contention. (Selection Method 2) The computer system 100B simply compares the performance obtained during measurement in S31 in FIG. 8 with the stable section (S32 in FIG. 8), since the performance is the result of CPU core contention.
[0043] FIG. 14 is an explanatory diagram of a case where a first App (execution instruction unit 12A) that requires SLA guarantee and a second App (execution instruction unit 12B) that does not require SLA guarantee are mixed. In this case, the setting unit 22 pre-groups the CPU cores into a CPU core group 13A for the execution instruction unit 12A and a CPU core group 13B for the execution instruction unit 12B. This enables the following operations: The execution instruction unit 12A can be controlled using (selection method 1) or (selection method 2) of this embodiment. The execution instruction unit 12B can be operated in a general CPU core occupancy state without using (selection method 1) or (selection method 2) of this embodiment.
[0044] FIG. 15 is a hardware configuration diagram of computer systems 100A and 100B. Each device (execution device 10, monitoring device 20, and control device 30) of computer systems 100A and 100B is configured as a computer 900 having a CPU 901, RAM 902, ROM 903, HDD 904, communication I / F 905, input / output I / F 906, and media I / F 907. The communication I / F 905 is connected to an external communication device 915. The input / output I / F 906 is connected to an input / output device 916. The media I / F 907 reads and writes data from a recording medium 917. Furthermore, the CPU 901 controls each component by executing a program (also called an application, or "app") loaded into RAM 902. This program can also be distributed via a communication line or recorded on a recording medium 917 such as a CD-ROM.
[0045] FIG. 16 is a table showing implementation examples of computer systems 100A and 100B. This table shows the software components that implement each processing unit shown in FIGS. 1 and 9 for an implementation using a container (Kubernetes) ("Kubernetes" is a registered trademark) platform, an implementation using a VM (OpenStack) ("OpenStack" is a registered trademark) platform, and a bare metal implementation without a specific platform. For example, to configure the execution device 10, Kubernetes uses a "k8s Worker-node," OpenStack uses "OpenStack Compute," and bare metal uses a "(general) processing server." To configure the load collection unit 11 and observation value collection unit 14 within the execution device 10, Kubernetes uses an "App / IPMI exporter," OpenStack uses "Ceilometer," and bare metal uses an "App / IPMI exporter." Implementation examples of other components are as shown in the table of FIG. 13.
[0046] [Effect] The monitoring device 20 of the present invention is characterized by having an aggregation unit 21 that aggregates relational data indicating the relationship between the performance provided by the execution unit and the power consumption consumed by the execution unit for each control value set, where the control value set is a combination of the number of execution units to be used and the control values for power control of the execution units for the execution device 10 that causes the execution units to execute a load, and a setting unit 22 that determines, based on the relational data, a control value set that falls within a stable interval that indicates the range of performance for which the SLA can be guaranteed, and determines, from the determined control value sets, a control value set that minimizes power consumption.
[0047] This allows the monitoring device 20 to always control performance within an SLA-guaranteed range, enabling performance control that always maximizes power efficiency while guaranteeing the SLA. Therefore, it is possible to provide power-saving control that achieves both SLA guarantee and power efficiency. Furthermore, because the monitoring device 20 can select a combination of multiple parameters that constitute a control value set with high power efficiency, it can output a control value set with higher accuracy than when combining logic that selects each parameter individually.
[0048] The present invention is a computer system 100B having a monitoring device 20 and a control device 30 that controls an execution device 10, wherein the control device 30 receives measurement results of the performance and power consumption of the execution unit from the execution device 10, for which a predetermined set of control values is set and which is executing a load, during operation, and if the performance of the measurement results deviates from a stable range, corrects the predetermined set of control values so as to return the performance to within the stable range.
[0049] This allows the computer system 100B to successively improve the current set of control values during operation so that it becomes an optimal set of control values.
[0050] The present invention is a computer system 100A having a monitoring device 20 and a control device 30 that controls an execution device 10, wherein an aggregation unit 21 aggregates relational data indicating the relationship between the performance and power consumption measured by the execution unit for each combination of a control value set to be set for the execution unit and a load applied to the execution unit in advance before the execution unit is put into operation, and stores the relational data in the control device 30, and the control device 30 receives measurement results of the load and performance of the execution unit from the execution unit 10 that is in operation, and when the performance of the measurement results deviates from a stable interval, refers to the stored relational data and sets to the execution unit 10 a control value set that minimizes power consumption from among the control value sets that result in the performance measured at the measured load falling within the stable interval.
[0051] As a result, when the performance of the measurement results deviates from the stable interval, the computer system 100A can instantly select the optimum control because it can grasp the set of control values to be changed from the relational data.
[0052] The present invention is characterized in that the aggregation unit 21 creates an approximation formula for determining performance and power consumption from individual parameters that are components of a set of control values as relational data.
[0053] This allows the computer system 100A to keep costs low in the advance data collection phase.
[0054] The present invention is characterized in that the aggregation unit 21 provides a control value set and a load as relational data, samples the results of the observation value set, and constructs a learning model that can obtain an observation value set for any control value set and load through machine learning using the sampling results as training data.
[0055] This eliminates the need for analysis such as the selection of an approximate formula in the computer system 100A, thereby reducing the calculation cost.
[0056] The present invention is characterized in that the control device 30 sets at least one of the following controls in the execution device 10: control to increase the number of execution units to be used and power control to increase the performance provided by the execution units when the performance of the measurement results deviates from the stable interval and the performance of the measurement results is insufficient compared to the stable interval; and sets at least one of the following controls in the execution device 10: control to reduce the number of execution units to be used and power control to reduce the performance provided by the execution units when the performance of the measurement results deviates from the stable interval and the performance of the measurement results is insufficient compared to the stable interval.
[0057] This allows the control device 30 to guarantee the SLA by recovering from insufficient performance, while also improving power efficiency by adjusting from excessive performance.
[0058] REFERENCE SIGNS LIST 10 Execution device 11 Load collection unit 12 Execution instruction unit 13 CPU 14 Observation value collection unit 20 Monitoring device (resource control device) 21 Aggregation unit 22 Setting unit 30 Control device 31 Optimal control selection unit 32 CPU core allocation unit 33 P-state control unit 34 C-state control unit 100A, 100B Computer system C1...Cn CPU core (execution unit)
Claims
1. A resource control device comprising: an aggregation unit that aggregates, for an execution device that causes execution units to execute a load, a control value set that defines a combination of the number of execution units to be used and control values for power control of the execution units, and for each control value set, relationship data that indicates the relationship between the performance provided by the execution units and the power consumption consumed by the execution units; and a setting unit that determines, based on the relationship data, a control value set that falls within a stable interval that indicates a range of performance for which an SLA can be guaranteed, and from the determined control value sets, determines the control value set that minimizes power consumption.
2. A computer system having the resource control device of claim 1 and a control device that controls the execution device, wherein the control device, during operation, receives measurement results of the performance and power consumption of the execution unit from the execution device for which a predetermined set of control values is set and which is executing a load, and, if the performance of the measurement results deviates from the stable range, corrects the predetermined set of control values so as to return the performance to within the stable range.
3. A computer system having the resource control device of claim 1 and a control device that controls the execution device, wherein the aggregation unit, before operation of the execution unit, aggregates the relationship data indicating the relationship between performance and power consumption measured by the execution unit for each combination of a control value set to be set for the execution unit and a load applied in advance to the execution unit, and stores the relationship data in the control device, and the control device receives measurement results of the load and performance of the execution unit from the execution unit during operation, and when the performance of the measurement results deviates from the stable interval, refers to the stored relationship data and sets to the execution unit a control value set that minimizes power consumption from among the control value sets for which the performance measured at the measured load falls within the stable interval.
4. The computer system according to claim 3, wherein the aggregation unit creates an approximation formula for determining performance and power consumption from individual parameters that are components of a control value set as the relationship data.
5. The computer system according to claim 3, wherein the aggregation unit samples the results of an observation value set by applying a control value set and a load as the relational data, and constructs a learning model that can obtain an observation value set for any control value set and load through machine learning using the sampling results as training data.
6. The computer system according to claim 2 or claim 3, characterized in that the control device, when the performance of the measurement result deviates from the stable interval and the performance of the measurement result is insufficient compared to the stable interval, sets at least one of control to increase the number of the execution units to be used and power control to increase the performance provided by the execution units to the execution device, and when the performance of the measurement result deviates from the stable interval and the performance of the measurement result is insufficient compared to the stable interval, sets at least one of control to reduce the number of the execution units to be used and power control to reduce the performance provided by the execution units to the execution device.
7. A resource control method comprising: a resource control device having an aggregation unit and a setting unit; the aggregation unit sets, for an execution device that causes the execution units to execute a load, a combination of the number of execution units to be used and control values for power control of the execution units as a control value set; and for each control value set, aggregates relational data indicating the relationship between the performance provided by the execution units and the power consumption consumed by the execution units; the setting unit determines, based on the relational data, a control value set that falls within a stable interval that indicates a range of performance for which an SLA can be guaranteed; and, from the determined control value sets, determines the control value set that minimizes power consumption.
8. A resource control program for causing a computer to function as the resource control device according to claim 1.
Citation Information
Patent Citations
Mechanism for Manager and Host-Based Integrated Power Saving Policy in Virtualization Systems
US20120047383A1
Weighted voltage-capacitor clusters with cloud-charging for ultra-fast voltage scaling with no charge redistribution loss
US20170207697A1
Adaptive processor resource utilization
US20200218676A1
