System power consumption optimization method and device, electronic equipment and storage medium
The SPECpower tool obtains the optimal scores under different environments and loads, determines the correspondence between fan speed and system power consumption, and realizes optimization and control of server system power consumption, solves the problem of high power consumption in different environments and loads, and improves energy efficiency performance.
Patent Information
- Application Number
- CN202411855954.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, the system power consumption of server equipment is relatively high under different temperature environments and CPU load levels, making it difficult to achieve effective power consumption optimization.
By using the SPECpower tool for testing and monitoring, the optimal scores under different temperature environments and CPU load levels are obtained, and the correspondence between fan speed and system power consumption is determined based on these scores, and the target fan speed is added to the fan speed regulation strategy table to achieve optimized control of system power consumption.
Implement optimal control of system power consumption under different temperature environments, reduce system power consumption, and ensure greater air volume under the same minimum heat dissipation needs, improving the energy efficiency and performance of server products.
Smart Images

Figure CN119806304A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a system power consumption optimization method, device, electronic device and storage medium. Background Art
[0002] The increasing maturity of Internet technology has prompted all mankind to usher in the AI era, in which computing power has gradually played a core role and provided an important force for reshaping the social production structure and production relations. The number of server equipment demands from Internet vendors has continued to increase, posing a severe test on the energy consumption requirements of AI servers in data centers, and the system power consumption ratio requirements for stand-alone systems have become increasingly higher, so the system power consumption ratio has become a new indicator of energy utilization. CPU and memory are the most critical components in general servers. In the customer room business scenario, the system power consumption ratio of the CPU also changes under different load pressures, and is generally high without optimization. Summary of the invention
[0003] The purpose of the present application is to provide a system power consumption optimization method, device, electronic device and storage medium to optimize the system power consumption under different temperature environments.
[0004] In a first aspect, the present application provides a method for optimizing system power consumption, comprising: using the SPECpower tool to run a test machine and a monitoring machine against each other, and obtaining the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; for different temperature environments and different CPU loading levels, performing the following steps: fixing the optimal score corresponding to the current CPU loading level under the current temperature environment in the tool supporting script of the test machine; using the SPECpower tool to run the test machine and the monitoring machine against each other again, and determining the correspondence between the fan speed and the system power consumption in the test machine; adding the target fan speed corresponding to the minimum system power consumption to the fan speed control strategy table; and controlling the system power consumption based on the target fan speed under different temperature environments in the fan speed control strategy table.
[0005] Furthermore, the above-mentioned step of using the SPECpower tool to run the test machine and the monitoring machine against each other to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments includes: setting up the scripts for the test machine and the monitoring machine in the SPECpower tool respectively; running the test machine script first, and then running the monitoring machine script, so that the SPECpower tool runs each CPU loading level under different temperature environments to obtain the optimal score corresponding to each CPU loading level.
[0006] Furthermore, the above-mentioned step of applying the SPECpower tool to run the test machine and the monitoring machine again to determine the correspondence between the fan speed and the system power consumption in the test machine includes: in the process of applying the SPECpower tool to run the test machine and the monitoring machine again, when it is detected that the CPU power in the test machine reaches the target CPU loading, according to the preset fan adjustment step, the system power consumption corresponding to different fan speeds is detected in turn, and the correspondence between the fan speed and the system power consumption in the test machine is obtained.
[0007] Furthermore, the above-mentioned steps of detecting the system power consumption corresponding to different fan speeds respectively according to the preset fan adjustment step to obtain the corresponding relationship between the fan speed and the system power consumption in the test machine include: taking the initial fan speed as the current fan speed, and executing the following power consumption determination steps: commanding the current fan speed to maintain a specified time length; recording multiple system total power consumption values in the specified time length in real time through the power meter; averaging the multiple system total power consumption values to obtain the system power consumption corresponding to the current fan speed; summing the current fan speed and the preset fan adjustment step to obtain the next fan speed as the new current fan speed, and continuing to execute the power consumption determination steps until the current fan speed reaches the specified value.
[0008] Furthermore, based on the target fan speeds under different temperature environments in the fan speed control strategy table, the steps for controlling system power consumption include: obtaining the current system temperature value; searching the fan speed corresponding to the current system temperature value from the fan speed control strategy table; and controlling the system fan operation according to the current target fan speed.
[0009] Furthermore, the step of controlling the operation of the system fan according to the current target fan speed includes: importing the current target fan speed into the BMC chip to perform system speed control.
[0010] Furthermore, the above script settings at least include: CPU model settings, IP settings of the test machine and the monitoring machine, settings of specified parameters, and multiple CPU loading level settings.
[0011] On the second aspect, the present application also provides a system power consumption optimization device, which includes: a score acquisition module, which is used to apply the SPECpower tool to run a test machine and a monitoring machine, and obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; a strategy table determination module, which is used to perform the following steps for different temperature environments and different CPU loading levels: fix the optimal score corresponding to the current temperature environment and the current CPU loading level in the tool supporting script of the test machine; apply the SPECpower tool to run the test machine and the monitoring machine again, and determine the correspondence between the fan speed and the system power consumption in the test machine; add the target fan speed corresponding to the minimum system power consumption to the fan speed regulation strategy table; an optimization control module, which is used to regulate the system power consumption based on the target fan speed under different temperature environments in the fan speed regulation strategy table.
[0012] In a third aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method described in the first aspect above.
[0013] In a fourth aspect, the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect above.
[0014] In the system power consumption optimization method, device, electronic device and storage medium provided in the present application, the SPECpower tool is first used to run the test machine and the monitoring machine to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; then, for different temperature environments and different CPU loading levels, the following steps are performed: the optimal score corresponding to the current temperature environment and the current CPU loading level is fixed in the tool supporting script of the test machine; the SPECpower tool is used to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and the system power consumption in the test machine; the target fan speed corresponding to the minimum system power consumption is added to the fan speed control strategy table; finally, based on the target fan speed under different temperature environments in the fan speed control strategy table, the system power consumption is controlled. In the present application, by introducing the SPECpower tool in engineering practice, a fan speed control strategy table including the optimal fan speed under multiple temperature environments is determined, so that server products can achieve a larger air volume under the same minimum heat dissipation requirement under different temperature environments, and achieve optimal control of system power consumption under different temperature environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 A flowchart of a system power consumption optimization method provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of script parameter settings provided in an embodiment of the present application;
[0018] Figure 3 A schematic diagram of another script parameter setting provided in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of another script parameter setting provided in an embodiment of the present application;
[0020] Figure 5 A schematic diagram of another script parameter setting provided in an embodiment of the present application;
[0021] Figure 6 A schematic diagram of another script parameter setting provided in an embodiment of the present application;
[0022] Figure 7 A schematic diagram of another script parameter setting provided in an embodiment of the present application;
[0023] Figure 8 A diagram showing the relationship between fan speed and power consumption provided in an embodiment of the present application;
[0024] Fig. 9 A schematic diagram of a fan speed regulation strategy table provided in an embodiment of the present application;
[0025] Fig.10 A structural block diagram of a system power consumption optimization device provided in an embodiment of the present application;
[0026] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0028] In view of the fact that CPU power consumption is generally high in customer room business scenarios in the prior art, the embodiments of the present application provide a system power consumption optimization method, device, electronic device and storage medium to optimize and control system power consumption in different temperature environments.
[0029] To facilitate understanding of this embodiment, a system power consumption optimization method disclosed in an embodiment of the present application is first introduced in detail.
[0030] Figure 1 A flowchart of a system power consumption optimization method provided in an embodiment of the present application, the method specifically comprises the following steps:
[0031] Step S102, using the SPECpower tool to run the test machine and the monitoring machine to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments;
[0032] The above CPU loading is an important indicator to measure CPU usage or load; multiple CPU loading levels include: 100, 90, 80...10. The optimal score is a term used to measure the performance of server hardware. Through a series of tests on the server's processor and other components through specific benchmark software, a score is given. The higher the score and the stronger the ability, the better the computer's hardware performance and the faster the computing speed.
[0033] Multiple temperature environments include 20 degrees, 21 degrees, ... 30 degrees, etc.
[0034] Step S104, for different temperature environments and different CPU loading levels, the following steps are performed: the optimal score corresponding to the current temperature environment and the current CPU loading level is fixed in the tool supporting script of the test machine; the SPECpower tool is used to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and the system power consumption in the test machine; the target fan speed corresponding to the minimum system power consumption is added to the fan speed control strategy table;
[0035] The correspondence between the fan speed and the system power consumption can be determined by performing multiple tests according to the set fan speed step to determine the system power consumption corresponding to multiple fan speeds; the system power consumption can be the average of multiple power consumption values at the current fan speed.
[0036] Step S106 , controlling the system power consumption based on the target fan speeds under different temperature environments in the fan speed control strategy table.
[0037] The fan speed control strategy table includes target fan speeds corresponding to multiple different temperatures. The system power consumption corresponding to the fan speed is the lowest at the current temperature. Therefore, the fan speed is adjusted according to the fan speed control strategy table to achieve system power consumption control, which can reduce system power consumption while obtaining the best air volume.
[0038] The system power consumption optimization method provided in the embodiment of the present application introduces the SPECpower tool in engineering practice to determine a fan speed regulation strategy table including the optimal fan speed under multiple temperature environments, thereby enabling server products to obtain a larger air volume under the same minimum heat dissipation requirements under different temperature environments, thereby achieving optimal control of system power consumption under different temperature environments.
[0039] The embodiment of the present application also provides another system power consumption optimization method, which is implemented on the basis of the above embodiment; this embodiment specifically includes the following steps:
[0040] (1) Set up scripts for the test machine and the monitoring machine in the SPECpower tool.
[0041] The above script settings at least include: CPU model settings, test machine and monitoring machine IP settings, specified parameter settings, and multiple CPU loading level settings. First, unzip the SPECpower tool, and then perform the settings of the test end (same as the test machine) and the monitoring end (same as the monitoring machine) respectively.
[0042] (1.1) The test terminal setting process is as follows:
[0043] (1.1.1) Test side—Open SPECpower_Hm_SUT;
[0044] (1.1.2) Open the corresponding ssj folder.
[0045] (1.1.3) Edit alirunssj_64core.sh according to the current CPU model. This test uses AMD CPU.
[0046] (1.1.4) Finally, set the IP addresses of the test and monitoring terminals and ensure that they can be pinged successfully.
[0047] (1.1.5) Calculation of the three values of -Xmx, -Xms, and -Xmn.
[0048] (1.1.5.1) Change the JVMS value in the alirunssj_64core.sh script according to the number of CPU cores and enter the IP address of the monitoring machine, such as Figure 2 shown.
[0049] (1.1.5.2) -Xmx = -Xms = √(2x number of DIMMs x memory / 3), –Xmn = -Xmx-i | -Xms-i; where i = 2, 3, ... 8, select from small to large until the scripts at both ends can run smoothly, "|" means or; Figure 3 shown.
[0050] (1.1.5.3) Modify the gray frame value according to the number of CPU cores, such as Figure 4 shown.
[0051] (1.2) The monitoring terminal setting process is as follows:
[0052] (1.2.1) Monitoring end - open SPECpower_ssj2008_TB_JAVAOPTION_CCS;
[0053] (1.2.2) Open the corresponding ssj folder;
[0054] (1.2.3) Edit the information in the SPECpower_ssj_EXPERT_props script;
[0055] (1.2.4) According to the system test scenario, you need to set the duration of each stress level, such as Figure 5 The content shown in the box line.
[0056] (1.2.5) Fill in the pressure level according to the system test needs (generally from large to small, with spaces between numbers), such as Figure 6 Shown in the middle frame line.
[0057] (1.2.6) When running each stress level in turn, remove the gray box information. If you use a fixed score to tune the system power consumption, fill in the gray line frame with each stress level score and remove the # sign (when tuning the power consumption of a fixed score, modify the SPECpower_ssj_EXPERT_props of the test end synchronously with the monitoring end, such as Figure 7 shown).
[0058] (2) Run the test machine script first, and then run the monitoring machine script, so that the SPECpower tool runs each CPU loading level under different temperature environments and obtains the optimal score corresponding to each CPU loading level.
[0059] After modifying the script information of alirunssj_64core.sh on the test side and SPECpower_ssj_EXPERT_props on the monitoring side, run alirunssj_64core.sh on the test side first, and then runCCS.sh, rundirector.sh, runpower.sh, and runtemp.sh on the monitoring side in sequence.
[0060] The above setting steps are for the preparation work before Specpower tool pressurizes the CPU. After running each stress level, the corresponding ssj.0001-main.txt&ssj.0001-main.html documents will be generated (which show the scores corresponding to each stress level).
[0061] The path is as follows: Monitoring end Specpower / SPECpower_ssj2008_TB_JAVAOPTION_CCS / Results.
[0062] (3) Fix the optimal score corresponding to the current temperature environment and the current CPU loading level in the tool supporting script of the test machine;
[0063] On the test side, do the following:
[0064] (3.1)Specpower / SPECpower_Hm_SUT / ssj, modify alirunssj_64core.sh and specify it as SPECpower_ssj_EXPERT.props;
[0065] (3.2) Modify Input.load_level.count in the SPECpower_ssj_EXPERT.props file to 1 (the fixed-point debugging system power consumption requires a fixed pressure level of 1).
[0066] (3.3) Modify input.loading_level.target_max_throughput in the SPECpower_ssj_EXPERT.props file to = output score (OPS) / number of CPU cores.
[0067] (3.4) Modify Input.load_level.percentage_sequence=100 in the SPECpower_ssj_EXPERT.props file.
[0068] (4) Use the SPECpower tool to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and system power consumption in the test machine; add the target fan speed corresponding to the minimum system power consumption to the fan speed control strategy table;
[0069] In the specific implementation, when the SPECpower tool is used to run the test machine and the monitoring machine again, when it is detected that the CPU power in the test machine has reached the target CPU loading, the system power consumption corresponding to different fan speeds is detected in turn according to the preset fan adjustment step size, and the corresponding relationship between the fan speed and the system power consumption in the test machine is obtained.
[0070] The initial fan speed is used as the current fan speed, and the following power consumption determination steps are performed: the current fan speed is controlled by instructions to maintain a specified time; multiple system total power consumption values in the specified time are recorded in real time by the power meter; the multiple system total power consumption values are averaged to obtain the system power consumption corresponding to the current fan speed; the current fan speed is summed with the preset fan adjustment step to obtain the next fan speed as the new current fan speed, and the power consumption determination steps are continued until the current fan speed reaches the specified value.
[0071] In the specific implementation, after confirming the corresponding CPU loading level, set the best score for the corresponding level, and run the scripts debugged by the system test machine and the monitoring machine respectively. By increasing the system speed from low to high (increasing interval 1 duty), record the total power consumption of the system (mainly refer to the reading of the power meter that supplies power to the test machine), and calculate the average value of the total power consumption within the specified time as the actual required power consumption under this working condition. By analogy, find the minimum value of the total power consumption of the system as the system fan speed continues to increase (such as Figure 8 The lowest point in the checked curve is the optimal value). As the fan speed increases, the system power consumption will reach the lowest point. As the CPU leakage decreases, the system will have an optimal speed corresponding to the optimal point (such as Figure 8 The figure shows the curve of total system power consumption changing with fan speed. The overall trend is a check mark-shaped curve. At 25 duty, the total system power consumption is the minimum, which means the speed is the optimal speed at this time. The optimal speed is optimized to openloop (the response logic of server heat dissipation speed regulation as the ambient temperature changes). Similarly, such optimization actions are performed according to the main configuration of the shipment to achieve the purpose of saving total system power consumption.
[0072] For example, the current data center temperature is generally set at 25°C, which plays a key role in the stable operation of the data center and significantly improves energy efficiency. The CPU loading frequency is 70%. According to this value, the SPECpower tool is used to obtain the optimal score for the current scenario. On this basis, the test engineer finds the speed points where the fan speed is high but the total power consumption of the system is reduced in 10-40 duty increments from small to large. Fig. 9 The fan speed value corresponding to the low system power consumption value found in the 25℃ ambient temperature is set to 25duty for the corresponding fan speed of the nearby 21-25℃ ambient temperature. Similarly, 20-39℃ (30-100CPU loading) can be flexibly adjusted according to different customer requirements to optimize to Fig. 9 Openloop enables server products to better and more efficiently utilize electrical energy in different ambient temperature scenarios and achieve greater air volume under the same minimum cooling requirements, thereby significantly improving the performance, reliability and lifespan of IT equipment.
[0073] In the embodiment of the present application, the test end and the monitoring end are first set up, and the two ends are set up separately and start to run against each other, and the score is run out; the score is put back into the test end (input.loading_level.target_max_throughput = the score (OPS) / CPU core number) to fix the score; the test end (the test end is fixed) and the monitoring end (the monitoring end device does not need any changes) are continued to run against each other; the fan speed is controlled by executing instructions to maintain 21duty for 10-20 minutes, and the data is recorded and the average value is calculated until 40duty (it can be further adjusted upward according to actual experience). A change curve is drawn according to the fan speed and power consumption average value, and the speed value corresponding to the power value at the trough is found, and then corrected in the fan speed control strategy openloop.
[0074] For data centers, the server working environment is generally required to be 25°C, and the CPU loading is determined to be 70%. According to the above conditions, engineers will place the server products in the corresponding ambient temperature box. The test end and the monitoring end are connected by optical fiber lines, and their respective SPECpower debugging scripts are run separately. When the CPU power in the test end server reaches the corresponding 70% loading, the instruction controls the fan speed to maintain 20duty for 10-20 minutes. The power meter records the total power consumption of the entire system in real time and finally calculates the average value as the system power consumption value corresponding to the speed at this time. In the same way, execute the instruction to control the fan speed to maintain 21uty for 10-20 minutes, record the data and calculate the average value until 40duty (it can be further adjusted upward based on actual experience). Draw a change curve based on the fan speed and power consumption average value, find the speed value corresponding to the power value at the trough, and then correct it in the fan speed control strategy openloop.
[0075] (5) Based on the target fan speeds under different temperature environments in the fan speed control strategy table, the system power consumption is controlled. The current system temperature value is obtained; the current target fan speed corresponding to the current system temperature value is found in the fan speed control strategy table; the system fan operation is controlled according to the current target fan speed. Specifically, the current target fan speed is imported into the BMC chip for system speed control.
[0076] The system power consumption optimization method provided in the embodiment of the present application introduces the SPECpower tool in engineering practice, and uses the SPECpower tool to run the corresponding CPU loading score under the corresponding environmental conditions. According to the Internet terminal client server application scenario and CPU loading requirements, the previously run corresponding optimal score is fixed, and on this basis, the speed points at which the fan speed is high but the total power consumption of the system is reduced when the increase is 1 duty from small to large during 10-40 duty are found and summarized, and optimized into the openloop to achieve that the server products can achieve the same minimum heat dissipation requirements in different ambient temperature scenarios and can obtain a larger air volume.
[0077] Based on the above method embodiment, the present application embodiment also provides a system power consumption optimization device, see Fig.10As shown, the device includes: a score acquisition module 102, which is used to apply the SPECpower tool to run the test machine and the monitoring machine against each other, and obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; a strategy table determination module 104, which is used to perform the following steps for different CPU loading levels in different temperature environments: fixing the optimal score corresponding to the current CPU loading level in the current temperature environment in the tool supporting script of the test machine; applying the SPECpower tool to run the test machine and the monitoring machine against each other again, and determining the corresponding relationship between the fan speed and the system power consumption in the test machine; adding the target fan speed corresponding to the minimum system power consumption to the fan speed regulation strategy table; an optimization control module 106, which is used to regulate the system power consumption based on the target fan speed under different temperature environments in the fan speed regulation strategy table.
[0078] Furthermore, the above-mentioned step of using the SPECpower tool to run the test machine and the monitoring machine against each other to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments includes: setting up the scripts for the test machine and the monitoring machine in the SPECpower tool respectively; running the test machine script first, and then running the monitoring machine script, so that the SPECpower tool runs each CPU loading level under different temperature environments to obtain the optimal score corresponding to each CPU loading level.
[0079] Furthermore, the above-mentioned step of applying the SPECpower tool to run the test machine and the monitoring machine again to determine the correspondence between the fan speed and the system power consumption in the test machine includes: in the process of applying the SPECpower tool to run the test machine and the monitoring machine again, when it is detected that the CPU power in the test machine reaches the target CPU loading, according to the preset fan adjustment step, the system power consumption corresponding to different fan speeds is detected in turn, and the correspondence between the fan speed and the system power consumption in the test machine is obtained.
[0080] Furthermore, the above-mentioned steps of detecting the system power consumption corresponding to different fan speeds respectively according to the preset fan adjustment step to obtain the corresponding relationship between the fan speed and the system power consumption in the test machine include: taking the initial fan speed as the current fan speed, and executing the following power consumption determination steps: commanding the current fan speed to maintain a specified time length; recording multiple system total power consumption values in the specified time length in real time through the power meter; averaging the multiple system total power consumption values to obtain the system power consumption corresponding to the current fan speed; summing the current fan speed and the preset fan adjustment step to obtain the next fan speed as the new current fan speed, and continuing to execute the power consumption determination steps until the current fan speed reaches the specified value.
[0081] Furthermore, the above-mentioned steps of controlling system power consumption based on the target fan speeds under different temperature environments in the fan speed control strategy table include: obtaining the current system temperature value; searching the fan speed corresponding to the current system temperature value from the fan speed control strategy table; and controlling the system fan operation according to the current target fan speed.
[0082] Furthermore, the step of controlling the operation of the system fan according to the current target fan speed includes: importing the current target fan speed into the BMC chip to perform system speed control.
[0083] Furthermore, the above script settings at least include: CPU model settings, IP settings of the test machine and the monitoring machine, settings of specified parameters, and multiple CPU loading level settings.
[0084] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0085] The present application also provides an electronic device, such as Fig.11 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 111 and a memory 110, the memory 110 stores computer executable instructions that can be executed by the processor 111, and the processor 111 executes the computer executable instructions to implement the above method.
[0086] exist Fig.11 In the illustrated embodiment, the electronic device further includes a bus 112 and a communication interface 113 , wherein the processor 111 , the communication interface 113 and the memory 110 are connected via the bus 112 .
[0087] Among them, the memory 110 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 113 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 112 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 112 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0088] The processor 111 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 111. The above processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 111 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0089] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0090] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0091] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0092] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0093] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0094] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for optimizing system power consumption, characterized in that: The method comprises: Use the SPECpower tool to run the test machine and the monitoring machine against each other to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; For different temperature environments and different CPU loading levels, perform the following steps: Fix the optimal score corresponding to the current temperature environment and the current CPU loading level in the tool supporting script of the test machine; use the SPECpower tool to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and system power consumption in the test machine; add the target fan speed corresponding to the minimum system power consumption to the fan speed control strategy table; System power consumption is regulated based on the target fan speeds under different temperature environments in the fan speed regulation strategy table.
2. The method according to claim 1, characterized in that: The steps of using the SPECpower tool to run the test machine and the monitoring machine to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments include: Set up scripts for the test machine and monitoring machine in the SPECpower tool. Run the test machine script first, then run the monitoring machine script, so that the SPECpower tool runs each CPU loading level under different temperature environments and obtains the optimal score corresponding to each CPU loading level.
3. The method according to claim 1, characterized in that The steps of using the SPECpower tool to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and system power consumption in the test machine include: When the SPECpower tool was used to run the test machine and the monitoring machine again, when it was detected that the CPUpower in the test machine reached the target CPU loading, the system power consumption corresponding to different fan speeds was detected in turn according to the preset fan adjustment step, and the corresponding relationship between the fan speed and the system power consumption in the test machine was obtained.
4. The method according to claim 3, characterized in that The step of sequentially detecting system power consumption corresponding to different fan speeds according to a preset fan adjustment step length, and obtaining a corresponding relationship between the fan speed and the system power consumption in the test machine includes: The initial fan speed is used as the current fan speed, and the following power consumption determination steps are performed: The command controls the current fan speed to maintain the specified time; Recording the total power consumption values of multiple systems in the specified time period in real time by a power meter; The total power consumption values of multiple systems are averaged to obtain the system power consumption corresponding to the current fan speed; The current fan speed is summed with the preset fan adjustment step to obtain the next fan speed as the new current fan speed, and the power consumption determination step is continued until the current fan speed reaches a specified value.
5. The method according to claim 3, characterized in that: The step of controlling the system power consumption based on the target fan speeds under different temperature environments in the fan speed control strategy table includes: Get the current system temperature value; Find the current target fan speed corresponding to the current system temperature value from the fan speed adjustment strategy table; The system fan is controlled to operate according to the current target fan speed.
6. The method according to claim 5, characterized in that The step of controlling the system fan to operate according to the current target fan speed comprises: The current target fan speed is imported into the BMC chip for system speed control.
7. The method according to claim 1, characterized in that The script settings at least include: CPU model settings, IP settings of the test machine and monitoring machine, settings of specified parameters, and multiple CPU loading level settings.
8. A system power consumption optimization device, characterized in that: The device comprises: The score acquisition module is used to use the SPECpower tool to run the test machine and the monitoring machine to obtain the optimal scores corresponding to multiple CPU loading levels under multiple temperature environments; The strategy table determination module is used to perform the following steps for different CPU loading levels in different temperature environments: fix the optimal score corresponding to the current temperature environment and the current CPU loading level in the tool supporting script of the test machine; use the SPECpower tool to run the test machine and the monitoring machine again to determine the corresponding relationship between the fan speed and system power consumption in the test machine; add the target fan speed corresponding to the minimum system power consumption to the fan speed control strategy table; The optimization control module is used to control the system power consumption based on the target fan speed under different temperature environments in the fan speed control strategy table.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.