Hybrid load-oriented multi-benchmark driven tuning server energy efficiency tuning method and device

By employing a multi-benchmark-driven parameter tuning method for mixed loads, and utilizing multi-label load classification and energy efficiency prediction models, a parameter search algorithm is guided to optimize server energy efficiency. This solves the problem of the universality of server energy efficiency improvement in mixed load scenarios, and achieves high-efficiency energy efficiency tuning and stability.

CN116737360BActive Publication Date: 2026-11-24SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310444433.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2026-11-24
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

Existing server parameter tuning algorithms lack universality, making it difficult to effectively improve energy efficiency in mixed load scenarios, and may cause fluctuations in business performance and privacy and security issues.

Method used

A multi-benchmark-driven parameter tuning method for mixed loads is adopted. A multi-label load classification model and a performance prediction model are established in the offline model training stage. Combined with the energy efficiency prediction model, the online parameter search algorithm is guided to perform optimization, including fine-grained CPU frequency adjustment and coarse-grained system parameter tuning.

Benefits of technology

It achieves high energy efficiency improvement in mixed load scenarios, reduces business load fluctuations caused by frequent parameter changes, reduces performance acquisition overhead, and improves the overall energy efficiency of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116737360B_ABST
    Figure CN116737360B_ABST
Patent Text Reader

Abstract

This invention discloses a server energy efficiency tuning method and apparatus for multi-benchmark-driven parameter tuning for mixed loads. The method includes two stages: offline model training and online energy efficiency tuning. In the offline stage, runtime data from multiple benchmarks are collected to establish a multi-label load classification model to map the mixed load to the multiple benchmarks. Simultaneously, performance prediction models, maximum performance evaluation models, and energy efficiency prediction models are constructed for each benchmark. In the online stage, a dual-granularity optimization strategy is implemented based on the characteristics of different parameters: the model identifies the resource requirements of the mixed load and the real-time energy efficiency status of the server, and targeted system parameter tuning is performed; simultaneously, fine-grained frequency adjustment is implemented based on energy efficiency curves and CPU utilization to solve the tuning lag problem caused by optimization delay. This invention can adaptively identify the resource requirements of mixed loads and select specific parameter combinations for optimization, thereby improving the energy efficiency performance of servers running complex mixed loads.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud data center server parameter tuning, and in particular to a method and apparatus for multi-benchmark driven parameter tuning of servers for mixed loads. Background Technology

[0002] With the development of technologies such as artificial intelligence, the Internet of Things, and blockchain, emerging businesses are not only demanding greater quantities of resources but also placing higher demands on the efficiency of server resource utilization. To meet increasingly complex business needs, data center server operation and maintenance strategies must minimize maintenance costs and energy consumption while ensuring cloud service quality, thereby improving the overall energy efficiency of the data center. As a mainstream operation and maintenance optimization strategy, parameter tuning is applied in various fields such as hardware design, application optimization, and network flow control. However, there are numerous types of server and application parameters, each with different applicable scenarios and value ranges, making it difficult to obtain the optimal parameter combination through manual adjustment. Therefore, many researchers design parameter tuning strategies for different business scenarios to optimize server performance and power consumption.

[0003] For big data applications, Malik M et al. proposed ECoST, a tuning framework combining collaborative scheduling and parameter tuning. This framework uses offline table building to determine the energy efficiency and optimal parameter combinations when different types of workloads coexist on the same node. In the online phase, ECoST executes collaborative scheduling decisions for big data workloads through decision trees and uses models such as table lookup and nonlinear neural networks for parameter tuning. Experiments show that this method can improve energy efficiency by up to 4%, but it only tunes three parameters of HDF. As the number and range of parameters increase, the offline table building time will become increasingly longer. To avoid the high overhead caused by offline model training, Fekry A et al. proposed a parameter tuning method called SimTune. SimTune uses an autoencoder / decoder neural network to complete the low-dimensional feature mapping of the workload and uses Hamiltonian distance to measure the similarity between workloads in the low-dimensional space. Then, multi-task Bayesian optimization (BO) is used to share the tuning model among similar workloads. Incremental tuning is then performed on this model to accelerate the convergence speed of parameter search and reduce the algorithmic overhead of retraining the model in each tuning process.

[0004] Besides big data applications, parameter tuning is also widely used in high-performance computing (HPC) scenarios. Robert S et al. proposed an online tuning process combining metaheuristic algorithms to adjust the parameters of I / O accelerators in HPC systems and solve I / O bottleneck problems in different HPC load scenarios. This online tuning process includes four modules: load identification, historical record comparison, metaheuristic tuning, and application tuning result recording. The authors selected the best-performing genetic algorithm as the tuning algorithm, adjusting parameters such as file region size, data prefetch threshold, data prefetch size, and the number of valid I / O reads in history. Good results were achieved in both I / O bandwidth-sensitive and I / O latency-sensitive benchmark applications. However, the algorithm requires real-time collection of HPC application performance values ​​as feedback during tuning, which cannot guarantee user privacy and security.

[0005] Databases, as backend storage applications for cloud services, also have a large number of adjustable parameters. Xu Jiangfeng et al. proposed a configuration parameter tuning method based on ensemble learning for the distributed NoSQL database HBase. The core idea is to continuously collect user-defined HBase configuration combinations, their corresponding throughput and latency, and then use a random forest ensemble learning algorithm to build a performance prediction model. A genetic algorithm is then used to search for optimal parameters. The authors conducted tuning experiments on the Yahoo Cloud service benchmark, and the results show that this method improves throughput by an average of 41% and reduces latency by 11.3% compared to the default configuration. This algorithm solves the problem of business performance fluctuations caused by frequent parameter changes during online tuning by establishing a model, and possesses stronger stability.

[0006] Operating system-level parameters significantly impact server energy efficiency. These parameters encompass numerous configuration settings that affect hardware performance, power consumption, and application interaction. Properly configuring these parameters allows servers to operate at their optimal capacity under user loads, improving overall energy efficiency. To address the high optimization overhead caused by an excessively large search space, Sánchez et al. investigated the performance impact of NUMA strategies and prefetcher settings on various benchmark workloads. The authors used machine learning algorithms such as ANN and SVM to determine the optimal NUMA strategy and prefetcher settings for different types of workloads from 13 of the most effective parameter combinations, reducing optimization overhead. Compared to using local NUMA optimization and enabling all prefetchers, this method achieves an average performance improvement of 1.68 times.

[0007] While the aforementioned optimization algorithms all offer some performance improvements, most are only applicable to specific scenarios and lack general applicability. Furthermore, the numerous and wide-ranging adjustable parameters at the application and operating system levels, along with potential unknown dependencies between parameters and between parameters and the target, significantly complicate optimization. Some algorithms assume the target value is directly obtainable, failing to consider the negative impact of metric collection on user privacy. Frequent parameter changes during optimization can also cause performance fluctuations. These are also issues that need to be considered during server system optimization. Therefore, data center server management still lacks a universally applicable and comprehensive optimization strategy. Summary of the Invention

[0008] The main objective of this invention is to overcome the shortcomings and deficiencies of the prior art and provide a server energy efficiency optimization method and apparatus for multi-benchmark driven parameter tuning for mixed loads. This invention completes real-time energy efficiency assessment of server mixed loads through predictive modeling without intruding on user applications, and guides parameter search algorithms to find optimal parameter combinations, thereby completing server energy efficiency optimization in mixed load scenarios and effectively improving the overall energy efficiency level of the server.

[0009] To achieve the above objectives, the present invention adopts the following technical solution:

[0010] In a first aspect, the present invention provides a method for energy efficiency tuning of a multi-benchmark driven parameter tuning server for mixed loads, including an offline model training stage and an online energy efficiency tuning stage, wherein the offline model training stage provides model support for the online energy efficiency tuning stage.

[0011] The offline model training phase specifically includes the following steps:

[0012] Collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, and use the resulting running data of different types of loads as a training set;

[0013] Establish a multi-label load classification model to achieve mapping between mixed loads and multiple benchmarks;

[0014] For each benchmark, a performance prediction model, a maximum performance evaluation model, and an energy efficiency prediction model are established. The performance prediction model, the maximum performance evaluation model, and the energy efficiency prediction model are trained using the training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result.

[0015] The online energy efficiency optimization phase specifically includes the following steps:

[0016] The background continuously runs a fast DVFS method based on energy efficiency curves to complete fine-grained CPU frequency tuning;

[0017] The load classification model and performance prediction model are used to classify the current load on the server and obtain similarity scores.

[0018] The server's overall energy efficiency score is calculated using an energy efficiency prediction model and a similarity score.

[0019] The comprehensive energy efficiency score guides the parameter search algorithm to complete coarse-grained system parameter tuning.

[0020] As a preferred technical solution, when the data acquisition server is running a single baseline load, it uses Latin hypercube sampling to generate parameter combinations, and sets the load level to 10% to 100% with a granularity of 10% to collect the relevant indicators of performance counters and energy efficiency.

[0021] As a preferred technical solution, during the training process of the load classification model, a feature selection algorithm is used to obtain the most significant features on CPU, memory, and disk loads, and then the K-nearest neighbor algorithm is used to record the data records for each benchmark load; the input of the load classification model is a performance counter, and the output is a similarity score.

[0022] The input to the performance prediction model is a performance counter, and the output is a numerical value; the input to the maximum performance evaluation model is adjustable system parameters related to CPU, memory, and disk, and the output is the maximum performance prediction value; the input to the energy efficiency prediction model is adjustable system parameters related to CPU, memory, and disk, as well as estimated performance values, and the output is the energy efficiency prediction value; the estimated performance value is the smaller of the performance prediction value and the maximum performance prediction value.

[0023] As a preferred technical solution, the background continuously runs a fast DVFS method based on energy efficiency curves to complete fine-grained CPU frequency tuning, specifically as follows:

[0024] The optimal energy efficiency range (U) for each CPU frequency was determined based on energy efficiency curves at different baseline loads. lower U upper );

[0025] Based on the current utilization rate U of the logic core cur Adjust the frequency of each CPU logic core sequentially: if it is lower than the optimal energy efficiency lower bound U lower Then reduce the frequency, if U cur ∈(U lower U upper If the frequency remains unchanged, and it is higher than the upper bound of the optimal energy efficiency utilization rate U, then... upper Then increase the frequency, if U curReaching the maximum value will significantly increase the frequency.

[0026] As a preferred technical solution, the step of classifying the current load of the server using a load classification model and a performance prediction model to obtain a similarity score specifically includes:

[0027] Read the offline-trained K-nearest neighbor model;

[0028] The distance between the current load data point and different benchmarks is calculated using the K-nearest neighbor model;

[0029] Select the baseline load from the three categories of CPU, memory, and disk that is closest to the current load data point;

[0030] The weight vector w = {w} is obtained by linearly transforming the distances between the three selected benchmark loads and the current load data points. cpu w mem w io}, where w cpu w mem w io The weights are respectively for computationally intensive, memory-intensive, and I / O-intensive tasks;

[0031] The performance prediction value is obtained using the performance prediction model of the corresponding baseline load as the load preference vector p = {px} pu p mem, p io}, where p cpu p mem p io These represent the load preferences for compute-intensive, memory-intensive, and I / O-intensive workloads, respectively.

[0032] Perform a positional multiplication operation on the weight vector and the load preference vector to obtain the similarity score vector c = {w cpu *p cpu w mem *p mem w io *p io}

[0033] As a preferred technical solution, the calculation of the server's comprehensive energy efficiency score using an energy efficiency prediction model and a similarity score is specifically as follows:

[0034] The overall energy efficiency score of the server is obtained by performing a dot product operation between the similarity score vector c output by the load classification model and the energy efficiency prediction vector E of the corresponding baseline load, as shown in the following formula:

[0035] f efficiency =c·E=Σc type *E typetype∈{cpu, mem, io}

[0036] As a preferred technical solution, the online phase utilizes a comprehensive energy efficiency score to guide the parameter search algorithm to complete coarse-grained system parameter optimization, specifically as follows:

[0037] The objective function of the parameter search algorithm is constructed using the comprehensive energy efficiency score, and the parameters are then optimized using the parameter search algorithm. The objective score function of the parameter search algorithm is shown in the following formula:

[0038]

[0039] Based on the obtained similarity score vector c, the parameter tuning time for different types of intensive workloads is allocated, and finally, T is separately defined. x The time limit is 1 second to iteratively optimize all parameters.

[0040] Secondly, the present invention provides an energy efficiency optimization system for a multi-benchmark driven parameter tuning server for mixed loads, which is applied to the energy efficiency optimization method for the multi-benchmark driven parameter tuning server for mixed loads, including an offline model training module and an online energy efficiency optimization module, wherein the offline model training module provides model support for the online energy efficiency optimization module.

[0041] The offline model training module includes a data acquisition unit, a first model building unit, and a second model building unit;

[0042] The operation data acquisition unit is used to collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, and use the obtained operation data of different types of loads as a training set.

[0043] The first model building unit is used to establish a multi-label load classification model to realize the mapping between mixed loads and multiple benchmarks;

[0044] The second model building unit is used to establish performance prediction models, maximum performance evaluation models and energy efficiency prediction models for each benchmark. The performance prediction model, maximum performance evaluation model and energy efficiency prediction model are trained using the training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result.

[0045] The online energy efficiency optimization module includes a fine-grained optimization unit, a similarity scoring unit, a comprehensive energy efficiency scoring unit, and a parameter optimization unit.

[0046] The fine-grained tuning unit is used to continuously run the fast DVFS method based on the energy efficiency curve in the background to complete fine-grained CPU frequency tuning.

[0047] The similarity scoring unit is used to classify the current load of the server using a load classification model and a performance prediction model to obtain a similarity score.

[0048] The comprehensive energy efficiency scoring unit is used to calculate the comprehensive energy efficiency score of the server through the energy efficiency prediction model and similarity score.

[0049] The parameter tuning unit is used to complete coarse-grained system parameter tuning by using the comprehensive energy efficiency score to guide the parameter search algorithm.

[0050] Thirdly, the present invention provides an electronic device, the electronic device comprising:

[0051] At least one processor; and,

[0052] A memory communicatively connected to the at least one processor; wherein,

[0053] The memory stores computer program instructions that can be executed by the at least one processor, which enables the at least one processor to execute the energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads.

[0054] Fourthly, the present invention provides a computer-readable storage medium storing a program, which, when executed by a processor, implements the energy efficiency tuning method for a multi-reference driven parameter tuning server oriented towards mixed loads.

[0055] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0056] (1) This invention proposes an energy efficiency optimization method for mixed loads. This method uses an energy efficiency model to quickly obtain the real-time energy efficiency level of the server under different parameter combinations and guides the parameter search algorithm to optimize the parameters. This avoids the business load fluctuation caused by frequent parameter changes during the optimization process and reduces the time overhead caused by performance collection during the optimization process.

[0057] (2) This invention proposes a load multi-label classification algorithm based on KNN, and implements an energy efficiency evaluation strategy for mixed loads based on the algorithm. It can complete load classification and energy efficiency evaluation of mixed loads in a very short time, which greatly accelerates the iteration speed of parameter search algorithm.

[0058] (3) This invention proposes a parameter tuning strategy based on classification weight, which can determine the tuning time of different intensive load parameters according to the similarity weight of mixed loads, making the parameter tuning algorithm more targeted, optimizing the tuning effect of the parameter tuning algorithm, and improving the overall energy efficiency of the server.

[0059] (4) This invention proposes a fast DVFS method based on energy efficiency curves, which can effectively reduce the negative impact of CPU frequency adjustment latency on server performance and power consumption, improve the response rate of frequency adjustment, and greatly reduce the energy consumption of the server during business operation. Attached Figure Description

[0060] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0061] Figure 1 This is a flowchart of the energy efficiency optimization method for a multi-benchmark driven parameter tuning server for mixed loads, according to an embodiment of the present invention.

[0062] Figure 2 This is a schematic diagram of a load classification model based on multi-output KNN in an embodiment of the present invention.

[0063] Figure 3 This is a flowchart of the parameter tuning algorithm for mixed loads according to an embodiment of the present invention.

[0064] Figure 4 This is a block diagram of a multi-reference driven parameter tuning server energy efficiency optimization system for mixed loads, according to an embodiment of the present invention.

[0065] Figure 5 This is a structural diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0066] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0067] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0068] Please see Figure 1 This embodiment describes a multi-benchmark-driven parameter tuning server energy efficiency optimization method for mixed loads, including an offline model training phase and an online energy efficiency optimization phase. The offline model training phase provides model support for the online energy efficiency optimization phase; specifically as follows:

[0069] S1. In the offline phase, different types of benchmark loads are executed and the values ​​of various performance counters in the system are collected as training and test sets;

[0070] First, data such as server energy efficiency, performance counters, and resource utilization are collected for compute-intensive, memory-intensive, and I / O-intensive benchmarks. Network-intensive loads are not included in the server energy efficiency optimization of this embodiment because they are also affected by network topology. The server configuration for this embodiment is shown in Table 1. Second, this embodiment uses the energy efficiency benchmark software BENCHSEE and SERT to stress the server to obtain training data. The benchmark types used are shown in Table 2. Due to the large parameter value space, this embodiment uses Latin hypercube sampling (LHS) to generate parameter combinations, using less data to cover most of the feature space, thereby reducing the cost of data acquisition.

[0071] Table 1 Server configuration in this embodiment

[0072] Server Model Huawei 2288H V5 operating system CentOS Linux release 7.9.2009 kernel version 3.10.0-1160.el7.x86_64 Processor Model 2*Intel(R)Xeon(R)Gold 6248CPU@2.50GHz Memory size 8*Samsung DDR4 2933MT / s 32G Python version 3.7.13

[0073] Table 2. Reference information used in this embodiment.

[0074]

[0075]

[0076] Furthermore, in the S1. offline phase, the steps of executing different types of benchmark loads and collecting the values ​​of various performance counters in the system as training and test sets include, but are not limited to, using Latin hypercube sampling (LHS) to generate parameter combinations, and setting the load level to 10% to 100% with a granularity of 10% to collect performance counters and energy efficiency related indicators.

[0077] S2. In the offline phase, when training the load classification model, performance prediction model, maximum performance evaluation model, and energy efficiency prediction model using the training set, the following characteristics are present:

[0078] During the training of the S201. load classification model, a feature selection algorithm is used to obtain the most significant features on CPU, memory, and disk loads. Then, the K-nearest neighbor algorithm is used to record the data for each baseline load. The input of the load classification model is a performance counter, and the output is a similarity score.

[0079] Furthermore, a multi-label load classification model is trained based on benchmark data to map mixed loads to multiple most similar benchmark loads. A schematic diagram of the multi-output KNN-based load classification model is shown below. Figure 2 As shown, using significance indicators to build a KNN model can improve model accuracy and reduce model overhead and noise interference. Therefore, this embodiment uses the LightGBM algorithm to calculate the gain entropy of different features when predicting energy efficiency, and selects the features with the largest gain entropy as the significance indicators for the load type. Compared with the traditional KNN model, this load classification model simultaneously outputs the most similar load sub-items in multiple dense types, and calculates the weight vector of each dense type of load based on their distance to evaluate the similarity of mixed loads. The accuracy of the load classification model established in this embodiment is shown in Table 3. Compared with the traditional KNN, the load classification model proposed in this invention has an 8% higher accuracy, with a precision and recall of 97.9% and 96.8%, respectively, indicating that the judgment of the load classification model still has high reliability in imbalanced samples.

[0080] Table 3 Comparison of Load Classification Models

[0081] algorithm accuracy Accuracy Recall rate F1 score Multi-KNN 0.975 0.979 0.968 0.970 KNN 0.895 0.863 0.909 0.879

[0082] S202. In the training process of the other three prediction models, multiple regression fitting algorithms are used to train the models for data with different loads, and the three models with the highest prediction accuracy are combined as the final prediction model, and the average of the three predictions is taken as the result.

[0083] S203. The input to the performance prediction model is a performance counter, and the output is a numerical value; the input to the maximum performance evaluation model is the adjustable system parameters related to CPU, memory, and disk, and the output is the maximum performance prediction value; the input to the energy efficiency prediction model is the adjustable system parameters related to CPU, memory, and disk, as well as the estimated performance value, and the output is the energy efficiency prediction value. The estimated performance value is the smaller of the performance prediction value and the maximum performance prediction value.

[0084] Furthermore, performance prediction models, maximum performance evaluation models, and energy efficiency prediction models are trained based on benchmark data to provide a means of evaluating the real-time operating status of the server for parameter tuning. To improve the accuracy of the models, the various trained models are based on single benchmarks of BENCHSEE and SERT. When used online, the appropriate model is loaded in conjunction with the output of the load classification model for prediction and evaluation. Due to different load characteristics, the fitting algorithms perform differently on different models. This embodiment tests nine algorithms (xgboost, lightgbm, catboost, random forest, svr, linear, ridge, lasso, and elasticnet) to build performance prediction models, maximum performance evaluation models, and energy efficiency prediction models for comparative testing. At the same time, to avoid overfitting and ensure the robustness of the models, this embodiment decides to use a greedy mean strategy to construct the final model: the three models trained by the algorithms with the smallest mean absolute error (MAE) are selected and combined. In the online stage, the three selected models are used to predict the target, and the average of the results is taken as the final result. According to experimental tests, the final performance prediction model, maximum performance evaluation model, and energy efficiency prediction model for each benchmark load all achieved an accuracy of over 97%, accurately assessing the real-time operating status of the server. The precision and recall rates were 97.9% and 96.8%, respectively, indicating that the load classification model's judgments remain highly reliable even with imbalanced samples.

[0085] The steps of S3. In the online phase, the background continuously runs the fast DVFS method based on the energy efficiency curve to complete the fine-grained CPU frequency tuning, specifically as follows:

[0086] S301. Determine the optimal energy efficiency range (U) for each CPU frequency based on energy efficiency curves for different baseline loads. lower U upper );

[0087] S302. Based on the utilization rate U of the logic core cur Adjust the frequency of each CPU logical core sequentially: if it is lower than U lower Then reduce the frequency, if U cur ∈(U lower U upper If the frequency remains unchanged, then if it is higher than U... upper Then increase the frequency, if U cur Reaching the maximum value will significantly increase the frequency.

[0088] Furthermore, CPU energy efficiency curves are plotted based on the collected benchmark data to determine the CPU utilization range that achieves optimal energy efficiency at each frequency level, thereby realizing a fine-grained CPU frequency adjustment strategy to adapt to highly dynamic load environments. Further, the CPU energy efficiency curve refers to the energy efficiency change curve of the server under different combinations of CPU frequency and utilization. This curve can be calculated using the CPU utilization, the number of transactions completed under the benchmark load, and the server power consumption at different frequency settings. During the online phase, the CPU frequency is rapidly adjusted according to the optimal energy efficiency CPU utilization range at different frequency levels to maintain the utilization within the optimal energy efficiency range (as shown in Equation (1)), thus optimizing the energy efficiency of the server when running mixed loads.

[0089]

[0090] Where f is the next target frequency level, f cur and u cur f represents the server's current frequency and utilization. step U is the smallest granularity for frequency adjustment. full To achieve full server utilization, U lower and U upper These represent the lower and upper bounds of the utilization rate that achieves optimal energy efficiency at the current frequency level.

[0091] The steps in S4. Online phase, which involve using a load classification model and a performance prediction model to classify the current load on the server and obtain a similarity score, are as follows:

[0092] S401. Read the offline trained K nearest neighbor model;

[0093] S402. Calculate the distance between the current load data point and different benchmarks using the K-nearest neighbor model;

[0094] S403. Select the baseline load that is closest to the current load data point from the three categories of CPU, memory, and disk;

[0095] S404. Perform a linear transformation on the distances between the three selected baseline loads and the current load data points to obtain the weight vector w = {w cpu w mem w io};

[0096] S405. Use the performance prediction model of the corresponding baseline load to obtain the performance prediction value as the load preference vector p = {p cpu p mem p io};

[0097] S406. Perform a positional multiplication operation on the weight vector and the load preference vector to obtain the similarity score vector c = {w cpu *p cpu w mem *p mem w io *p io}

[0098] In the S5. Online phase step of calculating the server's comprehensive energy efficiency score through the energy efficiency prediction model and similarity score, the server's comprehensive energy efficiency score is obtained by performing a dot product operation between the similarity score vector c output by the load classification model and the energy efficiency prediction vector E of the corresponding baseline load, as shown in equation (2):

[0099] f efficiency =c·E=∑c type *E type , type∈{cpu, mem, io}(2) where, type is the load type,

[0100] c type and E type This represents the similarity score and energy efficiency prediction value for the corresponding load type in the vector.

[0101] In step S6. Online phase, which uses the comprehensive energy efficiency score to guide the parameter search algorithm to complete coarse-grained system parameter tuning, the comprehensive energy efficiency score is used to construct the objective function of the parameter search algorithm, and the parameter is tuned through the parameter search algorithm. The objective function of the parameter search algorithm is shown in equation (3):

[0102] Where f max-perf f is the maximum performance evaluation value. init-perf The values ​​are the performance values ​​before optimization, where α and ε ∈ [0, 1] are constant factors, representing the penalty coefficient and the maximum degradation level, respectively.

[0103] Based on the similarity score vector c obtained in S4, the parameter tuning time for different types of intensive loads is allocated, and finally, T is separately defined. x The time limit is 1 second to iteratively optimize all parameters.

[0104] It is understandable that the last two steps (S5. and S6.) of the energy efficiency tuning method for multi-benchmark driven parameter tuning servers for mixed loads are iterated multiple times. The comprehensive energy efficiency score obtained in each iteration guides the parameter search algorithm to find the optimal parameter combination.

[0105] Furthermore, a system parameter tuning algorithm is implemented. Due to the large number of adjustable parameters and the significant optimization difficulty, it is necessary to dynamically select combinations of adjustable system parameters (including settings for CPU process scheduling, virtual memory allocation, disk I / O, etc.) based on the server's mixed load status. Simultaneously, the model is used to directly evaluate the tuning effect of various parameter combinations and guide the next tuning iteration, thereby achieving targeted and precise parameter optimization. Please refer to [link / reference]. Figure 3 The specific steps are as follows:

[0106] S601. Determine the initial state of the server based on the prediction results, including the weight vector of each intensive load, the server's performance, maximum performance, and energy efficiency, etc.

[0107] S602. Taking into account the heterogeneous characteristics of mixed loads, the tuning time required for different types of intensive loads is calculated based on the weight vector. High-weight intensive loads will receive more tuning time. At the same time, appropriate parameter combinations are selected for the characteristics of each intensive load.

[0108] S603. A set of adjustable parameter values ​​is selected based on load type and historical tuning records. In this embodiment, the selection process is implemented based on the CMA-ES sampling algorithm.

[0109] S604. Use the model to predict the server's performance, maximum performance, and energy efficiency under the current load with this combination of parameters;

[0110] S605. Calculate the score of this parameter combination value by combining performance and energy efficiency, and save the result in the tuning record;

[0111] S606. Repeat steps S603-S605 until the parameter evaluation of all intensive loads has been iterated to the specified time;

[0112] S607. Resource contention exists between some intensive loads, and optimizing a single load can easily lead to local optima. To ensure optimal overall server energy efficiency under mixed loads, it is necessary to combine the optimization results of all intensive loads to obtain the optimal parameter combination.

[0113] S608. Set the optimal parameter combination values ​​on the server to complete coarse-grained parameter tuning.

[0114] The optimization results of the multi-benchmark driven parameter tuning server energy efficiency optimization method for mixed loads, implemented based on the above steps, under the BENCHSEE and SERT single benchmarks are shown in Table 4. Compared with the default strategy, the energy efficiency improvement of this optimization method is generally between 6% and 38%, with an average improvement of 33.3%. In particular, under Sequential loads, its energy efficiency improvement can reach 110%.

[0115] To test the optimization performance of this framework under mixed loads, this embodiment selected seven test sub-items from the stress-ng system load testing tool (as shown in Table 2) and randomly combined them to obtain four mixed loads as the test set. The optimization results are shown in Table 5. Overall, this optimization method also shows better energy efficiency performance in these four mixed loads. For example, in the prime_malloc_peek load, the energy efficiency of the prime and seek loads improved by 19% and 7%, respectively. In the prime_cache_iomix load, the energy efficiency improvement of the prime and iomix loads reached 18% and 54%, respectively. However, due to resource contention issues when multiple loads are running, some loads may experience some performance degradation, leading to a decrease in the energy efficiency of these loads. For example, the malloc and cache loads showed a performance degradation of 5% and 7% in different load scenarios, respectively, but the energy efficiency improvement of these loads far exceeded the energy efficiency degradation of some loads.

[0116] Table 4 shows the optimization effect of the multi-benchmark-driven parameter tuning server energy efficiency optimization method for mixed loads under single load.

[0117] Load type Default configuration energy efficiency Optimized energy efficiency Compress 1.00 1.37 Aes 1.00 1.34 Lu 1.00 1.19 Oltp 1.00 1.28 Sha256 1.00 1.38 Sor 1.00 1.30 Sort 1.00 1.34 Stream 1.00 1.15 Cache 1.00 1.06 Random 1.00 1.15 Sequential 1.00 2.10

[0118] Table 5. Optimization effect of multi-benchmark-driven parameter tuning server energy efficiency optimization method under mixed load.

[0119]

[0120]

[0121] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously.

[0122] Based on the same idea as the energy efficiency tuning method for multi-reference driven parameter tuning servers with mixed loads in the above embodiments, the present invention also provides an energy efficiency tuning system for multi-reference driven parameter tuning servers with mixed loads. This system can be used to execute the above-described energy efficiency tuning method for multi-reference driven parameter tuning servers with mixed loads. For ease of explanation, the structural schematic diagram of the embodiment of the energy efficiency tuning system for multi-reference driven parameter tuning servers with mixed loads only shows the parts related to the embodiments of the present invention. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0123] Please see Figure 4In another embodiment of this application, a multi-benchmark driven parameter tuning server energy efficiency optimization system 100 for mixed loads is provided. The system includes an offline model training module 110 and an online energy efficiency optimization module 120. The offline model training module provides model support for the online energy efficiency optimization module.

[0124] The offline model training module 110 includes a running data acquisition unit 111, a first model building unit 112, and a second model building unit 113;

[0125] The running data acquisition unit 111 is used to collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, and use the obtained running data of different types of loads as a training set.

[0126] The first model building unit 112 is used to establish a multi-label load classification model to realize the mapping between mixed loads and multiple benchmarks;

[0127] The second model building unit 113 is used to establish a performance prediction model, a maximum performance evaluation model, and an energy efficiency prediction model for each benchmark. The performance prediction model, the maximum performance evaluation model, and the energy efficiency prediction model are trained using a training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result.

[0128] The online energy efficiency optimization module 120 includes a fine-grained optimization unit 121, a similarity scoring unit 122, a comprehensive energy efficiency scoring unit 123, and a parameter optimization unit 124.

[0129] The fine-grained tuning unit 121 is used to continuously run the fast DVFS method based on the energy efficiency curve in the background to complete fine-grained CPU frequency tuning.

[0130] The similarity scoring unit 122 is used to classify the load currently running on the server using a load classification model and a performance prediction model to obtain a similarity score.

[0131] The comprehensive energy efficiency scoring unit 123 is used to calculate the comprehensive energy efficiency score of the server through the energy efficiency prediction model and similarity score.

[0132] The parameter tuning unit 124 is used to complete coarse-grained system parameter tuning by using the comprehensive energy efficiency score to guide the parameter search algorithm.

[0133] It should be noted that the energy efficiency optimization system for multi-reference driven parameter tuning servers for mixed loads of the present invention corresponds one-to-one with the energy efficiency optimization method for multi-reference driven parameter tuning servers for mixed loads of the present invention. The technical features and beneficial effects described in the embodiments of the energy efficiency optimization method for multi-reference driven parameter tuning servers for mixed loads described above are applicable to the embodiments of energy efficiency optimization for multi-reference driven parameter tuning servers for mixed loads. For details, please refer to the description in the embodiments of the method of the present invention, which will not be repeated here.

[0134] Furthermore, in the above embodiments of the energy efficiency optimization system for a multi-reference driven parameter tuning server for mixed loads, the logical division of each program module is merely illustrative. In actual applications, the above functions can be assigned to different program modules as needed, for example, for the sake of corresponding hardware configuration requirements or the convenience of software implementation. That is, the internal structure of the energy efficiency optimization system for a multi-reference driven parameter tuning server for mixed loads can be divided into different program modules to complete all or part of the functions described above.

[0135] Please see Figure 5 In one embodiment, an electronic device is provided for implementing a multi-reference driven parameter tuning server energy efficiency tuning method for mixed loads. The electronic device 200 may include a first processor 201, a first memory 202 and a bus, and may also include a computer program stored in the first memory 202 and executable on the first processor 201, such as a multi-reference driven parameter tuning server energy efficiency tuning program 203.

[0136] The first memory 202 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the first memory 202 can be an internal storage unit of the electronic device 200, such as the portable hard drive of the electronic device 200. In other embodiments, the first memory 202 can also be an external storage device of the electronic device 200, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 200. Furthermore, the first memory 202 can include both internal storage units and external storage devices of the electronic device 200. The first memory 202 can be used not only to store application software and various types of data installed on the electronic device 200, such as the code of the multi-reference driver parameter tuning server energy efficiency tuning program 203, but also to temporarily store data that has been output or will be output.

[0137] In some embodiments, the first processor 201 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The first processor 201 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the first memory 202 and calls data stored in the first memory 202 to perform various functions of the electronic device 200 and process data.

[0138] Figure 5 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 5 The structure shown does not constitute a limitation on the electronic device 200, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0139] The multi-reference driver parameter tuning server energy efficiency optimization program 203 stored in the first memory 202 of the electronic device 200 is a combination of multiple instructions. When run in the first processor 201, it can achieve the following:

[0140] It includes an offline model training phase and an online energy efficiency tuning phase, wherein the offline model training phase provides model support for the online energy efficiency tuning phase;

[0141] The offline model training phase specifically includes the following steps:

[0142] Collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, and use the resulting running data of different types of loads as a training set;

[0143] Establish a multi-label load classification model to achieve mapping between mixed loads and multiple benchmarks;

[0144] For each benchmark, a performance prediction model, a maximum performance evaluation model, and an energy efficiency prediction model are established. The performance prediction model, the maximum performance evaluation model, and the energy efficiency prediction model are trained using the training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result.

[0145] The online energy efficiency optimization phase specifically includes the following steps:

[0146] The background continuously runs a fast DVFS method based on energy efficiency curves to complete fine-grained CPU frequency tuning;

[0147] The load classification model and performance prediction model are used to classify the current load on the server and obtain similarity scores.

[0148] The server's overall energy efficiency score is calculated using an energy efficiency prediction model and a similarity score.

[0149] The comprehensive energy efficiency score guides the parameter search algorithm to complete coarse-grained system parameter tuning.

[0150] Furthermore, if the modules / units integrated in the electronic device 200 are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0151] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0152] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A method for optimizing the energy efficiency of a multi-reference driven parameter tuning server for mixed loads, characterized in that, It includes an offline model training phase and an online energy efficiency tuning phase, wherein the offline model training phase provides model support for the online energy efficiency tuning phase; The offline model training phase specifically includes the following steps: Collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, obtain the running data of different types of loads and use them as training sets; Establish a multi-label load classification model to achieve mapping between mixed loads and multiple benchmarks; For each benchmark, a performance prediction model, a maximum performance evaluation model, and an energy efficiency prediction model are established. The performance prediction model, the maximum performance evaluation model, and the energy efficiency prediction model are trained using the training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result. The online energy efficiency optimization phase specifically includes the following steps: The background continuously runs a fast DVFS method based on energy efficiency curves to complete fine-grained CPU frequency tuning; The load classification model and performance prediction model are used to classify the current load on the server and obtain similarity scores. The server's overall energy efficiency score is calculated using an energy efficiency prediction model and a similarity score. The comprehensive energy efficiency score guides the parameter search algorithm to complete coarse-grained system parameter tuning; During the training process of the load classification model, a feature selection algorithm is used to obtain the most significant features on CPU, memory, and disk loads, and then the K-nearest neighbor algorithm is used to record the data for each benchmark load. The input of the load classification model is a performance counter, and the output is a similarity score. The input to the performance prediction model is a performance counter, and the output is a numerical value; the input to the maximum performance evaluation model is adjustable system parameters related to CPU, memory, and disk, and the output is the maximum performance prediction value; the input to the energy efficiency prediction model is adjustable system parameters related to CPU, memory, and disk, as well as an estimated performance value, and the output is the energy efficiency prediction value; the estimated performance value is the smaller of the performance prediction value and the maximum performance prediction value. The background continuously runs a fast DVFS method based on energy efficiency curves to perform fine-grained CPU frequency tuning, specifically as follows: The optimal energy efficiency range for each CPU frequency was determined based on energy efficiency curves at different baseline loads. ; Based on the current utilization rate of the logic core Adjust the frequency of each CPU logic core sequentially: if it falls below the lower bound of optimal energy efficiency. Then reduce the frequency, if If the frequency remains unchanged, and it is higher than the upper bound of the optimal energy efficiency utilization rate... Then increase the frequency, if Reaching the maximum value will significantly increase the frequency.

2. The energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads according to claim 1, characterized in that, When the data acquisition server is running a single baseline load, it uses Latin hypercube sampling to generate parameter combinations, and sets the load level to 10%~100% with a granularity of 10% to collect the relevant indicators of performance counters and energy efficiency.

3. The energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads according to claim 1, characterized in that, The specific steps for classifying the current load of the server using a load classification model and a performance prediction model to obtain a similarity score are as follows: Read the offline-trained K-nearest neighbor model; The distance between the current load data point and different benchmarks is calculated using the K-nearest neighbor model; Select the baseline load from the three categories of CPU, memory, and disk that is closest to the current load data point; The weight vector is obtained by linearly transforming the distances between the three selected benchmark loads and the current load data points. ,in The weights are respectively for computationally intensive, memory-intensive, and I / O-intensive tasks; The performance prediction value is obtained using the performance prediction model with the corresponding baseline load as the load preference vector. ,in These represent the load preferences for compute-intensive, memory-intensive, and I / O-intensive workloads, respectively. Perform a positional multiplication operation on the weight vector and the load preference vector to obtain the similarity score vector. .

4. The energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads according to claim 1, characterized in that, The comprehensive energy efficiency score of the server is calculated using an energy efficiency prediction model and a similarity score, specifically as follows: Similarity score vector output by the load classification model The server's overall energy efficiency score is obtained by performing a dot product operation with the energy efficiency prediction vector 𝑬 corresponding to the baseline load, as shown in the following formula: in, For load type, and This represents the similarity score and energy efficiency prediction value for the corresponding load type in the vector.

5. The energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads according to claim 4, characterized in that, The online energy efficiency tuning phase utilizes a comprehensive energy efficiency score to guide a parameter search algorithm to complete coarse-grained system parameter tuning, specifically as follows: The objective function of the parameter search algorithm is constructed using the comprehensive energy efficiency score, and the parameters are then optimized using the parameter search algorithm. The objective score function of the parameter search algorithm is... As shown in the following formula: in This is the maximum performance evaluation value. These are the performance values ​​before optimization. These are constant factors, namely the penalty coefficient and the maximum degradation level, respectively; The obtained similarity score vector Based on this, the parameter tuning time for different types of intensive loads was allocated, and finally, a separate division was made. The time limit is 1 second to iteratively optimize all parameters.

6. A multi-reference driven parameter tuning server energy efficiency optimization system for mixed loads, characterized in that, The energy efficiency tuning method for a multi-benchmark driven parameter tuning server for mixed loads, as described in any one of claims 1-5, includes an offline model training module and an online energy efficiency tuning module, wherein the offline model training module provides model support for the online energy efficiency tuning module. The offline model training module includes a data acquisition unit, a first model building unit, and a second model building unit; The operation data acquisition unit is used to collect the energy efficiency performance and performance counter values ​​of the server when running each single benchmark load, to obtain the operation data of different types of loads and use it as a training set. The first model building unit is used to establish a multi-label load classification model to realize the mapping between mixed loads and multiple benchmarks; The second model building unit is used to establish performance prediction models, maximum performance evaluation models and energy efficiency prediction models for each benchmark. The performance prediction model, maximum performance evaluation model and energy efficiency prediction model are trained using the training set. For data of different types of loads, multiple regression fitting algorithms are used to train the models. The three models with the highest prediction accuracy are combined as the final prediction model, and the prediction mean of the three models is taken as the result. The online energy efficiency optimization module includes a fine-grained optimization unit, a similarity scoring unit, a comprehensive energy efficiency scoring unit, and a parameter optimization unit. The fine-grained tuning unit is used to continuously run the fast DVFS method based on the energy efficiency curve in the background to complete fine-grained CPU frequency tuning. The similarity scoring unit is used to classify the current load of the server using a load classification model and a performance prediction model to obtain a similarity score. The comprehensive energy efficiency scoring unit is used to calculate the comprehensive energy efficiency score of the server through the energy efficiency prediction model and similarity score. The parameter tuning unit is used to complete coarse-grained system parameter tuning by using a parameter search algorithm guided by a comprehensive energy efficiency score.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions that can be executed by the at least one processor, which enables the at least one processor to perform the energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads as described in any one of claims 1-5.

8. A computer-readable storage medium storing a program, characterized in that, When the program is executed by the processor, it implements the energy efficiency tuning method for a multi-reference driven parameter tuning server for mixed loads as described in any one of claims 1-5.