CN115934350A - Power consumption adjusting method and device - Google Patents

Power consumption adjusting method and device Download PDF

Info

Publication number
CN115934350A
CN115934350A CN202211711033.8A CN202211711033A CN115934350A CN 115934350 A CN115934350 A CN 115934350A CN 202211711033 A CN202211711033 A CN 202211711033A CN 115934350 A CN115934350 A CN 115934350A
Authority
CN
China
Prior art keywords
processor
power consumption
real
target
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211711033.8A
Other languages
Chinese (zh)
Inventor
李婷婷
李道童
芦飞
王录祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211711033.8A priority Critical patent/CN115934350A/en
Publication of CN115934350A publication Critical patent/CN115934350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a power consumption adjusting method and a power consumption adjusting device, wherein the method comprises the following steps: determining an energy efficiency ratio curve of the processor based on the model information, the heat dissipation design power consumption level and the frequency range information of the processor; the method comprises the steps of obtaining a real-time load and real-time power consumption of a processor, and determining a preset fluctuation range of the real-time power consumption exceeding a target power consumption based on the target power consumption corresponding to the real-time load in an energy efficiency ratio curve; and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption. According to the power consumption adjusting method and device, the power consumption of the processor is adjusted to be within the preset fluctuation range of the target power consumption by determining the target power consumption corresponding to the real-time load of the processor in the predetermined energy efficiency ratio curve, so that the power consumption of the processor is reduced, and the dynamic adjustment of the power consumption of the processor is realized. The power consumption of the processor is reduced to a reasonable range, the power consumption of the processor is not directly reduced to the minimum, and the accurate regulation and control of the power consumption of the processor are realized.

Description

Power consumption adjusting method and device
Technical Field
The invention relates to the technical field of computers, in particular to a power consumption adjusting method and device.
Background
The application of the server is very wide, users often have different service requirements according to different use scenes of the server for the same type of the server, along with the advocation of low carbon emission reduction, the energy consumption of the server becomes a field of key attention, and the reduction of the power consumption of the server becomes more important.
The existing servers customize different power consumption models according to the needs of users, and the performance parameters of the processors in the servers are fixedly set in the starting process, usually, the performance parameters are adjusted by an operating system according to the load, or the performance parameters are adjusted by processor hardware according to the load of the system. In the existing adjustment mode, the same regulation strategy is adopted in all service scenes, and in a high-load area, the performance of a processor is often set to be the maximum performance, namely, the power consumption of the processor reaches the highest at medium and high loads, which far exceeds the requirement of the current load, and thus, the energy consumption is greatly wasted.
Disclosure of Invention
The invention provides a power consumption adjusting method and device, which are used for solving the technical problem that in the prior art, the same regulating strategy is adopted for all service scenes in the process of adjusting the energy consumption of a processor, so that greater energy consumption waste is caused.
The invention provides a power consumption adjusting method, which comprises the following steps:
determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of target power consumption based on target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
According to the power consumption adjusting method provided by the invention, the operation state of the processor is adjusted based on the preset fluctuation range of the target power consumption, and the method comprises the following steps:
determining a target core frequency range of the processor corresponding to a preset fluctuation range of the target power consumption and a target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption based on the preset fluctuation range of the target power consumption;
adjusting an operating state of the processor based on the target core frequency range and the target non-core frequency range.
According to a power consumption adjusting method provided by the present invention, the adjusting the operating state of the processor based on the target core frequency range and the target non-core frequency range includes:
setting a core frequency of the processor to a frequency in the target core frequency range and setting a non-core frequency of the processor to a frequency in the target non-core frequency range.
According to the power consumption adjusting method provided by the invention, the operation state of the processor is adjusted based on the preset fluctuation range of the target power consumption, and the method comprises the following steps:
determining a target performance parameter of the processor corresponding to the real-time load based on the real-time load;
and adjusting the performance parameters of the processor and the real-time power consumption of the processor based on the target performance parameters and the preset fluctuation range of the target power consumption so as to enable the adjusted power consumption of the processor to be within the preset fluctuation range of the target power consumption.
According to the power consumption adjusting method provided by the invention, the preset fluctuation range of the target power consumption is determined based on the power consumption corresponding to the load with the same real-time load size in the historical operating data of the processor.
According to the power consumption adjusting method provided by the present invention, after acquiring the real-time load of the processor and the real-time power consumption of the processor, the method further includes:
and reducing the real-time power consumption of the processor under the condition that the real-time power consumption of the processor is greater than a preset maximum power consumption threshold value.
The present invention also provides a power consumption adjusting apparatus, comprising:
the energy efficiency ratio determining module is used for determining an energy efficiency ratio curve of the processor based on model information of the processor, the heat dissipation design power consumption level of the processor and frequency range information of the processor;
the judging module is used for acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of the target power consumption based on the target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and the adjusting module is used for adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize any one of the above power consumption adjusting methods.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any one of the power consumption adjustment methods described above.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a power consumption adjustment method as described in any one of the above.
According to the power consumption adjusting method and device, the energy efficiency ratio curve of the processor in an ideal operation state is determined through the parameter information of the processor. The method comprises the steps of determining target power consumption corresponding to a real-time load in an energy efficiency ratio curve based on the real-time load and the real-time power consumption when the processor runs, and adjusting the power consumption of the processor to be within a preset fluctuation range of the target power consumption based on a preset fluctuation range of the target power consumption, so that the power consumption of the processor is reduced, and the dynamic adjustment of the power consumption of the processor is realized. The power consumption of the processor is reduced to a reasonable range, the power consumption of the processor is not directly reduced to the minimum, and the accurate regulation and control of the power consumption of the processor are realized.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a power consumption adjustment method according to the present invention;
FIG. 2 is a schematic diagram of an apparatus for adjusting power consumption according to the present invention;
FIG. 3 is a schematic diagram of a data transmission process provided by the present invention;
FIG. 4 is a flow chart illustrating a power consumption adjustment method according to the present invention;
FIG. 5 is a schematic structural diagram of a power consumption adjustment apparatus provided in the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The invention provides a power consumption adjusting method, and fig. 1 is a flow diagram of the power consumption adjusting method provided by the invention. Referring to fig. 1, a power consumption adjustment method provided by the present invention may include:
step 110, determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
step 120, acquiring a real-time load of the processor and a real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of the target power consumption based on a target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
step 130, adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
The execution subject of the power consumption adjustment method provided by the invention can be an electronic device, a component in the electronic device, an integrated circuit, or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), and the like, and the present invention is not limited in particular.
The following describes the technical solution of the present invention in detail by taking a computer as an example to execute the power consumption adjustment method provided by the present invention.
In step 110, model information of the processor, a heat dissipation design power consumption level of the processor, and frequency range information of the processor are obtained, and an energy efficiency ratio curve during the operation of the processor is determined.
The model information of the processor, the heat dissipation design power consumption level of the processor and the frequency range information of the processor are basic information of the processor. Based on the model information of the processor, various parameters of the processor can be determined, including the main frequency, the frequency multiplication, the external frequency, the bus frequency, the secondary cache, the working voltage, the interface, the architecture type, the manufacturing process and the like of the processor. Based on the model information of the processor, performance indicators reflecting various performances of the processor can be determined.
The processor's TDP (Thermal Design Power, thermal Design Power level) is the processor's current Thermal effect and other heat generated by the processor during operation. The TDP power consumption is usually used as an important reference index for heat dissipation/consumption reduction design such as computer or server motherboard design, heat dissipation system design, large-scale server heat dissipation design, and the larger the TDP is, the larger the heat generated by the processor during operation is, and for the heat dissipation system, the TDP needs to be used as the lowest index/basic index for heat dissipation capability design. That is, at least the amount of heat represented by the TDP value is dissipated. For example, a notebook computer processor heat dissipation system may be designed as a 20W TDP, which means that it can dissipate 20W of heat (either by active heat dissipation means such as using a fan, or passive heat dissipation means such as a heat pipe) to ensure that the processor temperature itself does not exceed the maximum junction temperature of the wafer. The TDP of a processor can reflect the maximum load that the processor can withstand while running.
The frequency range of the processor is the frequency range of the core and the non-core when the processor works, and the operation speed of the calculation is determined based on the frequency range of the processor, the clock frequency and the working frequency when the processor works.
Based on the model information of the processor, the heat dissipation design power consumption level of the processor and the frequency range information of the processor, the ideal working states of the processor under different loads can be determined when the processor runs, so that the ideal working states of the processor from low load to high load can be determined, and the energy efficiency ratio curve of the processor under the optimal running state can be further determined.
It can be understood that the energy efficiency ratio curve of the processor reflects the optimal operation curve of various parameters, power consumption, performance and the like of the processor along with the change of the load. And determining the corresponding optimal running state of the processor under various load conditions based on the load change of the processor.
In step 120, the real-time load of the processor and the real-time power consumption of the processor during the real-time operation of the processor are obtained. Based on the energy efficiency ratio curve of the processor determined in step 110, a target power consumption corresponding to the real-time load of the processor in the energy efficiency ratio curve is determined, and the real-time power consumption is determined to exceed a preset fluctuation range of the target power consumption.
The real-time power consumption and the real-time load of the processor can be acquired periodically when the processor is running. The operating state of the current processor is determined in real time. After the real-time load and the real-time power consumption of the processor are obtained, the target power consumption corresponding to the real-time load of the current processor is determined from the energy efficiency ratio curve. And comparing the real-time power consumption with a preset fluctuation range of the target power consumption.
It can be understood that the target power consumption of the real-time load in the energy efficiency ratio curve is the optimal power consumption corresponding to the real-time load of the current processor. Namely, the power consumption of the optimal working state under the condition that the current processor is under the real-time load is the target power consumption.
After the target power consumption corresponding to the optimal working state of the processor is determined, a preset fluctuation range of the target power consumption can be determined. That is, the real-time power consumption of the processor under the real-time load condition may indicate that the operating state of the processor is better if the real-time power consumption is within the preset fluctuation range of the target power consumption.
The preset fluctuation range of the target power consumption can be manually set according to historical operating data of the processor. If the real-time power consumption of the processor does not exceed the preset fluctuation range of the target power consumption, the processor can be determined to be in a better running state and the energy consumption is relatively moderate.
It can be understood that, if the real-time power consumption of the processor exceeds the preset fluctuation range of the target power consumption, it indicates that the energy consumption of the processor is high under the current real-time load condition, and the operating state of the processor needs to be adjusted, so as to optimize the operating mode of the processor and reduce the energy consumption of the processor.
In step 130, after determining that the real-time power consumption of the processor exceeds the preset fluctuation range of the target power consumption in step 120, the operating state of the processor is adjusted based on the preset fluctuation range of the target power consumption of the processor determined in the energy efficiency ratio curve, so as to reduce the power consumption of the processor.
It can be understood that the target power consumption of the real-time load in the energy efficiency ratio curve is the optimal power consumption corresponding to the real-time load of the current processor. Namely, the power consumption of the optimal working state of the current processor under the condition of real-time load is the target power consumption.
And adjusting the working state of the processor based on the target power consumption corresponding to the optimal working state of the processing area under the condition of real-time load, so that the power consumption of the processor is adjusted to be within a preset fluctuation range of the target power consumption, and the optimized adjustment of the operation of the processor is realized.
It can be understood that the adjustment of the operating state of the processor to adjust the power consumption of the processor to be within the preset fluctuation range of the target power consumption does not directly reduce the power consumption of the processor. But reduces the power consumption of the processor to a reasonable range, thereby realizing the accurate regulation and control of the power consumption of the processor.
According to the power consumption adjusting method provided by the embodiment of the invention, the energy efficiency ratio curve of the processor in an ideal operation state is determined through the parameter information of the processor. The method comprises the steps of determining target power consumption corresponding to a real-time load in an energy efficiency ratio curve based on the real-time load and the real-time power consumption when the processor runs, and adjusting the power consumption of the processor to be within a preset fluctuation range of the target power consumption based on a preset fluctuation range of the target power consumption, so that the power consumption of the processor is reduced, and the dynamic adjustment of the power consumption of the processor is realized. The power consumption of the processor is reduced to a reasonable range, the power consumption of the processor is not directly reduced to the minimum, and the accurate regulation and control of the power consumption of the processor are realized.
In one embodiment, adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption includes: determining a target core frequency range of the processor corresponding to a preset fluctuation range of the target power consumption and a target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption based on the preset fluctuation range of the target power consumption; adjusting an operating state of the processor based on the target core frequency range and the target non-core frequency range.
And in the process of adjusting the running state of the processor, adjusting the running state of the processor based on the preset fluctuation range of the target power consumption. The core frequency and the non-core frequency of the processor can be adjusted through the target core frequency range and the target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption, and the running state of the processor can be adjusted.
The processor in the related method is generally a multi-core processor, which includes a core and a plurality of non-cores. Based on the determination and adjustment of the core frequency and the uncore frequency of the processor, the adjustment of the frequency of the processor can be realized, thereby finally realizing the adjustment of the running state of the processor.
According to the power consumption adjusting method provided by the embodiment of the invention, the target core frequency range and the target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption are determined through the preset fluctuation range of the target power consumption, and the core frequency and the non-core frequency of the processor are adjusted, so that the adjustment of the running state of the processor is realized.
In one embodiment, adjusting the operating state of the processor based on the target core frequency range and the target uncore frequency range includes: setting a core frequency of the processor to a frequency in the target core frequency range and setting a non-core frequency of the processor to a frequency in the target non-core frequency range.
And determining a target core frequency range and a target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption based on the preset fluctuation range of the target power consumption. The core frequency of the processor is set to a frequency in the target core frequency range and the uncore frequency of the processor is set to a frequency in the target uncore frequency range.
Based on the determination and adjustment of the core frequency and the uncore frequency of the processor, the adjustment of the frequency of the processor can be realized, thereby finally realizing the adjustment of the running state of the processor.
According to the power consumption adjusting method provided by the embodiment of the invention, the core frequency and the non-core frequency of the processor are adjusted by determining the target core frequency range and the target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption, setting the core frequency of the processor as the frequency in the target core frequency range and setting the non-core frequency of the processor as the frequency in the target non-core frequency range, so that the adjustment of the core frequency and the non-core frequency of the processor is realized, and the adjustment of the running state of the processor is realized.
In one embodiment, adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption includes: determining a target performance parameter of the processor corresponding to the real-time load based on the real-time load; and adjusting the performance parameters of the processor and the real-time power consumption of the processor based on the target performance parameters and the preset fluctuation range of the target power consumption so as to enable the adjusted power consumption of the processor to be within the preset fluctuation range of the target power consumption.
After the real-time load of the processor is determined, the target performance parameters of the processor corresponding to the real-time load are determined. The target performance parameter of the processor is the ideal performance parameter of the processor under real-time load. After the target performance parameter of the processor is determined, the performance parameter of the processor and the real-time power consumption of the processor are adjusted based on the target performance parameter of the processor and the preset fluctuation range of the target power consumption, so that the adjusted power consumption of the processor is within the preset fluctuation range of the target power consumption.
It can be understood that, based on the adjustment of the performance parameters of the processor and the real-time power consumption of the processor, the adjustment of the running state of the processor is realized, so as to finally ensure that the power consumption of the processor is within the preset fluctuation range of the target power consumption.
According to the power consumption adjusting method provided by the embodiment of the invention, after the real-time load of the processor is determined, the target performance parameter of the processor corresponding to the real-time load is determined. After the target performance parameter of the processor is determined, the performance parameter of the processor and the real-time power consumption of the processor are adjusted based on the target performance parameter of the processor and the preset fluctuation range of the target power consumption, so that the adjusted power consumption of the processor is in the preset fluctuation range of the target power consumption.
In one embodiment, the preset fluctuation range of the target power consumption is determined based on power consumption corresponding to a load with the same size as the real-time load in historical operation data of the processor.
After the target power consumption of the processor is determined, a preset fluctuation range of the target power consumption of the processor needs to be determined. The preset fluctuation range of the target power consumption can be determined according to historical operating data of the processor. Based on the power consumption corresponding to the load with the same real-time load size in the historical operating data, a fluctuation range of the load can be determined, and therefore the preset fluctuation range of the target power consumption is determined.
If the real-time power consumption of the processor does not exceed the preset fluctuation range of the target power consumption, the processor can be determined to be in a better running state and the energy consumption is relatively moderate.
It can be understood that, if the real-time power consumption of the processor exceeds the preset fluctuation range of the target power consumption, it indicates that the energy consumption of the processor is high under the current real-time load condition, and the operating state of the processor needs to be adjusted, so as to optimize the operating mode of the processor and reduce the energy consumption of the processor.
The power consumption adjusting method provided by the embodiment of the invention is determined. Based on the power consumption corresponding to the load with the same real-time load size in the historical operating data, a fluctuation range of the load can be determined, and therefore the preset fluctuation range of the target power consumption is determined.
In one embodiment, after obtaining the real-time load of the processor and the real-time power consumption of the processor, the method further includes: and reducing the real-time power consumption of the processor under the condition that the real-time power consumption of the processor is greater than a preset maximum power consumption threshold value.
After the real-time load of the processor is obtained, if the real-time load of the processor is determined to be larger than a preset maximum power consumption threshold value, the real-time power consumption of the processor is directly reduced and adjusted.
The preset maximum power consumption threshold of the processor is the upper power consumption limit of the processor during operation, and in the process of the processor operation, under the condition that the maximum power consumption upper limit is reached, the power consumption of the processor needs to be immediately reduced, so that the condition that equipment is damaged due to long-term full-load operation is avoided. The maximum power consumption threshold of the processor can be set according to the parameter information of the processor.
According to the power consumption adjusting method provided by the embodiment of the invention, under the condition that the real-time power consumption of the processor is determined to exceed the maximum power consumption threshold of the upper power consumption limit, the power consumption of the processor is immediately reduced and adjusted, so that the safe operation of the processor is ensured.
The following describes a technical solution provided by the present invention by taking a schematic diagram of a device structure applying the power consumption adjustment method provided by the present invention as an example in fig. 2.
The device includes: a load real-time monitoring unit 210, a load calculating unit 220, a performance presetting unit 230 and a regulating unit 240.
A load real-time monitoring unit 210, which periodically obtains the utilization rate of the processor through a monitoring interface of the processor based on a BMC (Baseboard Management Controller), obtains the temperature and power consumption information of the processor by reading a sensor, and integrates and sends the information to a load computing unit 220 implemented by a system firmware BIOS, where a specific flow is shown in fig. 3, which is a schematic diagram of a data transmission processing flow provided by the present invention;
the load calculation unit 220 is implemented by a System firmware BIOS (Basic Input Output System), and after the information acquired by the BMC is acquired, compares a corresponding relationship between the power consumption performance of the processor and the load, determines whether the current power consumption is within a range of an energy efficiency ratio curve, exits if the current power consumption is within a value range of the energy efficiency ratio curve, and if the current power consumption is not within the range of the energy efficiency ratio curve, needs to adjust the frequency of the processor to achieve the purpose of adjusting the power consumption;
the performance presetting unit 230 is implemented by a system boot firmware BIOS. The system starting firmware calculates the corresponding optimal processor power consumption and the frequency of the core and non-core parts under the current load according to the corresponding curve of the processor power consumption and the load;
the control unit 240 sets the frequency values and power consumption ranges of the core and non-core supported by the processor in real time.
The following describes a technical solution provided by the present invention, taking a schematic flow chart of a power consumption adjustment method provided by the present invention as an example, fig. 4:
step 410, the load real-time monitoring unit acquires the power consumption and the utilization rate of the processor;
triggering a timer, periodically obtaining the current power consumption and the real-time utilization rate of the processor from a monitoring unit (ME) of the processor through an ipmi command, and transmitting the information to the main body system firmware of the performance computing unit.
Step 420, the performance calculation unit is realized by a system firmware BIOS, after the information acquired by the BMC is acquired, the current power consumption value is compared with the maximum power consumption value of the processor, and if the current power consumption value is larger than the maximum power consumption value of the processor, the power consumption of the processor needs to be reduced; if the corresponding relation between the current power consumption value and the load is not within the range of the predetermined energy efficiency ratio curve, the power consumption value of the processor needs to be adjusted; and if the current power consumption value is within the range of the energy efficiency ratio curve, exiting the current monitoring and waiting for the next monitoring information.
Step 430, calculating the optimal frequency and power consumption corresponding to the current load by the performance presetting unit through a precise algorithm;
the performance presetting unit is realized by system firmware, and acquires information such as the type of the processor, the nominal TDP grade, the frequency range of the processor and the like in the starting process of the server to determine an energy efficiency ratio curve. In the Runtime stage of the server, based on feedback information of the performance calculation unit, comparing the utilization rate of the processor with the corresponding frequency range of the power consumption in an energy efficiency ratio curve, if the frequency under the current load is in accordance with a preset frequency range and the energy efficiency ratio is in accordance with optimal setting, adjusting is not needed, if the frequency under the current load is not in accordance with the preset frequency range, an optimal frequency range is calculated according to the preset value, and the power consumption range and the frequency value to be set are transmitted to the regulation and control unit.
Step 440, the control unit sets the power consumption range of the processor in real time by configuring the register according to the calculated power consumption and frequency value.
Fig. 5 is a schematic structural diagram of a power consumption adjustment apparatus provided in the present invention, and as shown in fig. 5, the apparatus includes:
an energy efficiency ratio determining module 510, configured to determine an energy efficiency ratio curve of the processor based on model information of the processor, a heat dissipation design power consumption level of the processor, and frequency range information of the processor.
The model information of the processor, the heat dissipation design power consumption level of the processor and the frequency range information of the processor are basic information of the processor. Based on the model information of the processor, various parameters of the processor can be determined, including the main frequency, the frequency multiplication, the external frequency, the bus frequency, the secondary cache, the working voltage, the interface, the architecture type, the manufacturing process and the like of the processor. Based on the model information of the processor, performance indicators reflecting various performances of the processor can be determined.
The TDP of the processor is the processor current thermal effect and other heat generated by the processor when operating. The TDP power consumption is usually used as an important reference index for heat dissipation/consumption reduction design such as computer or server motherboard design, heat dissipation system design, and large-scale server heat dissipation design, and the larger the TDP is, the larger the heat generated by the processor during operation is, and for the heat dissipation system, the TDP is required to be used as the lowest index/basic index for heat dissipation capability design. That is, at least the amount of heat represented by the TDP value is dissipated. For example, a notebook processor heat dissipation system may be designed as a 20W TDP, which means that it can dissipate 20W of heat (either by active heat dissipation means such as using a fan, or passive heat dissipation means such as a heat pipe) to ensure that the processor temperature does not exceed the maximum junction temperature of the die. The TDP of a processor can reflect the maximum load that the processor can withstand while running.
The frequency range of the processor is the frequency range of the core and the uncore when the processor works, the clock frequency is the frequency range based on the frequency range of the processor, and the operating frequency is the operating frequency when the processor works, and the operating speed is determined.
Based on the model information of the processor, the heat dissipation design power consumption level of the processor and the frequency range information of the processor, the ideal working states of the processor under different loads can be determined when the processor runs, so that the ideal working states of the processor when the load of the processor is from low to high can be determined, and the energy efficiency ratio curve of the processor under the optimal running state can be further determined.
It can be understood that the energy efficiency ratio curve of the processor reflects the optimal operation curve of various parameters, power consumption, performance and the like of the processor along with the change of the load. And determining the corresponding optimal running state of the processor under various load conditions based on the load change of the processor.
The determining module 520 is configured to obtain a real-time load of the processor and a real-time power consumption of the processor, and determine that the real-time power consumption exceeds a preset fluctuation range of the target power consumption based on a target power consumption corresponding to the real-time load in the energy efficiency ratio curve.
The real-time power consumption and the real-time load of the processor can be acquired periodically when the processor is running. The operating state of the current processor is determined in real time. After the real-time load and the real-time power consumption of the processor are obtained, the target power consumption corresponding to the real-time load of the current processor is determined from the energy efficiency ratio curve. And comparing the real-time power consumption with a preset fluctuation range of the target power consumption.
It can be understood that the target power consumption of the real-time load in the energy efficiency ratio curve is the optimal power consumption corresponding to the real-time load of the current processor. Namely, the power consumption of the optimal working state of the current processor under the condition of real-time load is the target power consumption.
After the target power consumption corresponding to the optimal working state of the processor is determined, a preset fluctuation range of the target power consumption can be determined. That is, the real-time power consumption of the processor under the real-time load condition may indicate that the operating state of the processor is better if the real-time power consumption is within the preset fluctuation range of the target power consumption.
The preset fluctuation range of the target power consumption can be set manually according to the historical operating data of the processor. If the real-time power consumption of the processor does not exceed the preset fluctuation range of the target power consumption, the processor can be determined to be in a better running state and the energy consumption is relatively moderate.
It can be understood that, if the real-time power consumption of the processor exceeds the preset fluctuation range of the target power consumption, it indicates that the energy consumption of the processor is high under the current real-time load condition, and the operating state of the processor needs to be adjusted, so as to optimize the operating mode of the processor and reduce the energy consumption of the processor.
An adjusting module 530, configured to adjust an operating state of the processor based on a preset fluctuation range of the target power consumption.
It can be understood that the target power consumption of the real-time load in the energy efficiency ratio curve is the optimal power consumption corresponding to the real-time load of the current processor. Namely, the power consumption of the optimal working state of the current processor under the condition of real-time load is the target power consumption.
And adjusting the working state of the processor based on the target power consumption corresponding to the optimal working state of the processing area under the condition of real-time load, so that the power consumption of the processor is adjusted to be within a preset fluctuation range of the target power consumption, and the operation of the processor is optimally adjusted.
It can be understood that the adjustment of the operating state of the processor to adjust the power consumption of the processor to be within the preset fluctuation range of the target power consumption does not directly reduce the power consumption of the processor. But reduces the power consumption of the processor to a reasonable range, thereby realizing the accurate regulation and control of the power consumption of the processor.
According to the power consumption adjusting device provided by the embodiment of the invention, the energy efficiency ratio curve of the processor in an ideal operation state is determined through the parameter information of the processor. The method comprises the steps of determining target power consumption corresponding to a real-time load in an energy efficiency ratio curve based on the real-time load and the real-time power consumption when the processor runs, and adjusting the power consumption of the processor to be within a preset fluctuation range of the target power consumption based on a preset fluctuation range of the target power consumption, so that the power consumption of the processor is reduced, and the dynamic adjustment of the power consumption of the processor is realized. The power consumption of the processor is reduced to a reasonable range, the power consumption of the processor is not directly reduced to the minimum, and the accurate regulation and control of the power consumption of the processor are realized.
In one embodiment, the adjusting module 530 is specifically configured to:
adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption, including:
determining a target core frequency range of the processor corresponding to a preset fluctuation range of the target power consumption and a target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption based on the preset fluctuation range of the target power consumption;
adjusting an operating state of the processor based on the target core frequency range and the target non-core frequency range.
In an embodiment, the adjusting module 530 is further specifically configured to:
adjusting an operating state of the processor based on the target core frequency range and the target uncore frequency range, including:
setting a core frequency of the processor to a frequency in the target core frequency range and setting a non-core frequency of the processor to a frequency in the target non-core frequency range.
In one embodiment, the adjusting module 530 is further specifically configured to:
adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption, including:
determining a target performance parameter of the processor corresponding to the real-time load based on the real-time load;
and adjusting the performance parameters of the processor and the real-time power consumption of the processor based on the target performance parameters and the preset fluctuation range of the target power consumption so as to enable the adjusted power consumption of the processor to be within the preset fluctuation range of the target power consumption.
In one embodiment, the determining module 520 is specifically configured to:
the preset fluctuation range of the target power consumption is determined based on the power consumption corresponding to the load with the same real-time load size in the historical operation data of the processor.
In one embodiment, the determining module 520 is specifically configured to:
after acquiring the real-time load of the processor and the real-time power consumption of the processor, the method further includes:
and reducing the real-time power consumption of the processor under the condition that the real-time power consumption of the processor is greater than a preset maximum power consumption threshold value.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor) 610, a communication Interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a power consumption adjustment method comprising:
determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of target power consumption based on target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform the power consumption adjustment method provided by the above methods, the method comprising:
determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of target power consumption based on target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the power consumption adjustment methods provided by the above, the method comprising:
determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of target power consumption based on target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for adjusting power consumption, the method comprising:
determining an energy efficiency ratio curve of a processor based on model information of the processor, a heat dissipation design power consumption level of the processor and frequency range information of the processor;
acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of target power consumption based on target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
2. The method according to claim 1, wherein the adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption comprises:
determining a target core frequency range of the processor corresponding to a preset fluctuation range of the target power consumption and a target non-core frequency range of the processor corresponding to the preset fluctuation range of the target power consumption based on the preset fluctuation range of the target power consumption;
adjusting an operating state of the processor based on the target core frequency range and the target non-core frequency range.
3. The power consumption adjustment method of claim 2, wherein the adjusting the operating state of the processor based on the target core frequency range and the target uncore frequency range comprises:
setting a core frequency of the processor to a frequency in the target core frequency range and setting a non-core frequency of the processor to a frequency in the target non-core frequency range.
4. The method according to claim 1, wherein the adjusting the operating state of the processor based on the preset fluctuation range of the target power consumption comprises:
determining a target performance parameter of the processor corresponding to the real-time load based on the real-time load;
and adjusting the performance parameters of the processor and the real-time power consumption of the processor based on the target performance parameters and the preset fluctuation range of the target power consumption so as to enable the adjusted power consumption of the processor to be within the preset fluctuation range of the target power consumption.
5. The power consumption adjustment method according to claim 1, wherein the preset fluctuation range of the target power consumption is determined based on power consumption corresponding to a load having the same size as the real-time load in historical operating data of the processor.
6. The method according to claim 1, wherein after obtaining the real-time load of the processor and the real-time power consumption of the processor, the method further comprises:
and reducing the real-time power consumption of the processor under the condition that the real-time power consumption of the processor is greater than a preset maximum power consumption threshold value.
7. A power consumption adjustment apparatus, comprising:
the energy efficiency ratio determining module is used for determining an energy efficiency ratio curve of the processor based on model information of the processor, the heat dissipation design power consumption level of the processor and frequency range information of the processor;
the judging module is used for acquiring a real-time load of the processor and real-time power consumption of the processor, and determining that the real-time power consumption exceeds a preset fluctuation range of the target power consumption based on the target power consumption corresponding to the real-time load in the energy efficiency ratio curve;
and the adjusting module is used for adjusting the running state of the processor based on the preset fluctuation range of the target power consumption.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the power consumption adjustment method of any one of claims 1 to 6 when executing the computer program.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the power consumption adjustment method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the power consumption adjustment method of any one of claims 1 to 6.
CN202211711033.8A 2022-12-29 2022-12-29 Power consumption adjusting method and device Pending CN115934350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211711033.8A CN115934350A (en) 2022-12-29 2022-12-29 Power consumption adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211711033.8A CN115934350A (en) 2022-12-29 2022-12-29 Power consumption adjusting method and device

Publications (1)

Publication Number Publication Date
CN115934350A true CN115934350A (en) 2023-04-07

Family

ID=86697867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211711033.8A Pending CN115934350A (en) 2022-12-29 2022-12-29 Power consumption adjusting method and device

Country Status (1)

Country Link
CN (1) CN115934350A (en)

Similar Documents

Publication Publication Date Title
US7272732B2 (en) Controlling power consumption of at least one computer system
JP5707321B2 (en) Sleep processor
US20030065961A1 (en) Progressive CPU sleep state duty cycle to limit peak power of multiple computers on shared power distribution unit
WO2014099024A1 (en) Dynamic balancing of power across a plurality of processor domains according to power policy control bias
EP2804076A2 (en) Adaptively Limiting a Maximum Operating Frequency in a Multicore Processor
US8694804B2 (en) Computer system and power management method thereof
US20120216058A1 (en) System, Method and Apparatus for Energy Efficiency and Energy Conservation by Configuring Power Management Parameters During Run Time
CN103488532A (en) Method and equipment for adjusting processor frequency
CN101598969A (en) Platform power management based on latency guidance
CN108803860A (en) A kind of regulating power consumption method and electronic equipment
TWI243983B (en) System and method of power management
WO2022099477A1 (en) Power consumption control method and device
CN113075982A (en) Server intelligent network card heat dissipation method, device, system and medium
CN102566726A (en) Automatic power consumption control network equipment and power consumption control method thereof
US9268393B2 (en) Enforcing a power consumption duty cycle in a processor
WO2022052479A1 (en) Power consumption regulation and control method, apparatus and device, and readable storage medium
CN107992183B (en) CPU power consumption limit value optimization method and electronic equipment
CN115934350A (en) Power consumption adjusting method and device
CN116991221A (en) Power consumption adjusting method and device
CN111562835A (en) Control method and electronic equipment
WO2014099016A1 (en) Performing frequency coordination in a multiprocessor system based on response timing optimization
US11592890B2 (en) System and method for Information Handling System (IHS) optimization using core stall management technology
CN112394803B (en) Domestic server power consumption real-time dynamic adjusting method
US11144647B2 (en) System and method for secure image load boot flow using hashed metadata
KR100763527B1 (en) Method and device managing power in embedded linux system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination