CN113625862A - Power consumption control method and device, electronic equipment and readable storage medium - Google Patents

Power consumption control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113625862A
CN113625862A CN202110942627.9A CN202110942627A CN113625862A CN 113625862 A CN113625862 A CN 113625862A CN 202110942627 A CN202110942627 A CN 202110942627A CN 113625862 A CN113625862 A CN 113625862A
Authority
CN
China
Prior art keywords
power consumption
control
regulation
consumption control
power
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.)
Granted
Application number
CN202110942627.9A
Other languages
Chinese (zh)
Other versions
CN113625862B (en
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202110942627.9A priority Critical patent/CN113625862B/en
Publication of CN113625862A publication Critical patent/CN113625862A/en
Application granted granted Critical
Publication of CN113625862B publication Critical patent/CN113625862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a power consumption control method and device, electronic equipment and a readable storage medium. The method comprises the steps of carrying out independent power consumption regulation and control calibration before each device leaves a factory in advance to determine the regulation and control deviation of each device; acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated; the power consumption of the equipment to be regulated and controlled is regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value, high-precision power consumption control can be achieved, the power failure influence caused by overhigh power can be prevented, the safety of the equipment is enhanced, the server can work under the optimal power consumption control, and the service efficiency of a power supply is improved.

Description

Power consumption control method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a power consumption control method and apparatus, an electronic device, and a readable storage medium.
Background
In view of security, the client server data center is equipped with an outage device to protect the data center from surge, but long service outages due to outage can affect user experience: in order to ensure the safety, the method of excessively supplying the data power supply often causes the waste of the power resource. In order to improve the safety and the Power utilization efficiency, the Power control technology is applied by setting the Power limiting value. Therefore, the power consumption of the server can be kept below a certain limit value, the power failure influence caused by overhigh power can be prevented, and the safety is enhanced; and the server can work under the optimal power consumption control, and the service efficiency of the power supply is improved.
In the actual Power Capping control process, a certain degree of deviation exists between the control Power consumption sent by a BMC (Baseboard Management Controller) to a PNOR (Parallel NOR Flash) and the Power consumption output after PNOR control. The deviations are caused by hardware errors existing in hardware devices such as a server and errors of power consumption regulation software, wherein the hardware errors are mainly caused by 1% of a power detection resistor and 3% of a power detection chip ADM 1278; the software error is embodied in the PNOR adjustment logic, and the adjustment is stopped when the detected power is at the target value-10. That is, the Power Capping has an error that is uncontrollable by hardware and software during actual regulation. How to improve the accuracy of Power clipping is a technical problem that needs to be solved by those skilled in the art in order to better apply Power clipping.
Disclosure of Invention
The application provides a power consumption control method, a power consumption control device, an electronic device and a readable storage medium, which can realize high-precision power consumption control.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a power consumption control method, including:
carrying out individual power consumption regulation and control calibration before each device leaves a factory in advance to determine the regulation and control deviation of each device;
acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated;
and performing power consumption regulation and control on the equipment to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value.
Optionally, the performing, before each device leaves the factory, individual power consumption regulation and control calibration to determine a regulation and control deviation of each device includes:
acquiring preset calibration power of each device;
activating a power consumption control function of each device;
when the pressure test of each device is stable, acquiring the power output power at the current moment;
and determining the regulation deviation of each device according to the power output power and the calibration power.
Optionally, after determining the regulation deviation of each device according to the power output power and the calibration power, the method further includes:
and writing the regulation deviation of each device into the EEPROM.
Optionally, the obtaining of the regulation deviation, the target power consumption value, and the power consumption limit value of the device to be regulated includes:
synchronizing the power consumption limit value and the activation identifier to a memory in advance in the setting and activation process of the power consumption control parameter; the activation identifier is used for identifying whether the power consumption control function is activated or not;
reading the activation identifier from the memory in response to an acquisition instruction of the power consumption control parameter;
and if the activation identifier is that the power consumption control function is activated, reading the power consumption limit value from the memory.
Optionally, in the setting and activating process of the power consumption control parameter, synchronizing the power consumption limit value and the activation flag to a memory, including:
when the power consumption control parameter setting instruction is received, judging whether an external sampling interface of the power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of a substrate management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
Optionally, in the setting and activating process of the power consumption control parameter, synchronizing the power consumption limit value and the activation flag to a memory, including:
activating the power consumption control function;
and if the external sampling interface of the power consumption control function module exists and the attribute of each power consumption control parameter is valid, writing the activation identifier into a configuration file of the baseboard management controller and the memory.
Another aspect of an embodiment of the present invention provides a power consumption control apparatus, including:
the regulation and control deviation calculation module is used for carrying out independent power consumption regulation and control calibration before each device leaves a factory in advance so as to determine the regulation and control deviation of each device;
the information acquisition module is used for acquiring the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated;
and the regulating module is used for regulating and controlling the power consumption of the equipment to be regulated and controlled according to the regulating and controlling deviation, the target power consumption value and the power consumption limit value.
Optionally, the system further includes a parameter storage module, configured to synchronize the power consumption limit value and the activation identifier to a memory in the process of setting and activating the power consumption control parameter in advance; the activation flag is used to identify whether the power consumption control function is activated.
An embodiment of the present invention further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the power consumption control method according to any one of the foregoing items when executing the computer program stored in the memory.
Finally, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for controlling power consumption is implemented.
The technical scheme provided by the application has the advantages that before a user uses the equipment to regulate and control the power consumption, the regulation and control deviation of each equipment is obtained by carrying out power consumption regulation and control calibration calculation on each equipment, the regulation and control deviation of the equipment is obtained by calculating the power calibration error caused by the power detection chip and the power detection resistor, the regulation and control deviation is adaptive to the hardware difference of each machine, the neglect of the hardware difference to the power consumption control deviation in the conventional power consumption control is broken, and the power consumption control of the equipment can be more accurate. In the process of regulating and controlling the power consumption of the equipment, the regulating and controlling deviation is considered, so that the difference between the regulating and controlling result and the actual result is small enough, the error caused by power consumption regulating and controlling algorithm software is calibrated, and the power consumption control is more accurate. On the basis of high-precision power consumption control, the safety of the server and the power supply use efficiency can be further improved by combining equipment with a power consumption limit value, the power consumption of the server can be kept below a certain limit value, the power failure influence caused by overhigh power can be prevented, and the server can work under the optimal power consumption control.
In addition, the embodiment of the invention also provides a corresponding implementation device, electronic equipment and a readable storage medium for the power consumption control method, so that the method has higher practicability, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a power consumption control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for calculating a regulation deviation according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another power consumption control method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a power consumption control parameter reading method in the prior art according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a power consumption control parameter setting and parameter activation process in the prior art according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a power consumption control parameter reading method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a power consumption control method according to another embodiment of the invention;
fig. 8 is a schematic diagram of a power consumption control parameter obtaining result according to an embodiment of the present invention;
fig. 9 is a structural diagram of a specific embodiment of a power consumption control apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a power consumption control method according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: and carrying out independent power consumption regulation and control calibration before each device leaves a factory in advance so as to determine the regulation and control deviation of each device.
It can be understood that, in order to overcome the deviation of the Power control process from the hardware error and the software error, which causes the Power consumption to be controlled and the Power consumption output after the control to a certain extent, before the hardware equipment is shipped, the method for individually calibrating each machine is adopted in the step, the Power control calibration is carried out on each equipment, the control deviation of the Power control of each equipment is calculated, the control deviation can feed back the self error of the hardware of each equipment, such as a Power detection resistor and a Power detection chip, and the self error of a Power control software algorithm, and the hardware error and the software error in the Power control can be calibrated.
S102: and acquiring the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated.
The device to be regulated and controlled in the step is one of the devices in the step S101, the regulation and control error is calculated in the step S101, the target power consumption value is a power consumption value that the user wants to modulate the device to be regulated and controlled, the power consumption limit value is a maximum power value or a minimum power value that the user sets for the device to be regulated and controlled, and the target power consumption value and the power consumption limit value can be flexibly defined according to the current application scenario, which does not affect the implementation of the application.
S103: and performing power consumption regulation and control on the equipment to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value.
The present application is based on two preconditions: one is that the Power output by the PSU (Power supply) is calibrated, and the equipment manufacturer, such as a server manufacturer, guarantees the actual regulation and control. The second is the current actual measurement conclusion, and the difference of the regulation deviation is not large when the regulation power consumption is changed. Based on this, the current actual power consumption value is calculated according to the target power consumption value and the regulation deviation, power consumption regulation and control are performed on the equipment to be regulated and controlled according to the current actual power consumption value and the power consumption limit value, if the actual power consumption value is larger than the power consumption limit value (at this time, the power consumption limit value is the maximum power consumption value) or smaller than the power consumption limit value (at this time, the power consumption limit value is the minimum power consumption value), the current actual power consumption value can be set as the power consumption limit value, and if the actual power consumption value is smaller than the power consumption limit value (at this time, the power consumption limit value is the maximum power consumption value) or larger than the power consumption limit value (at this time, the power consumption limit value is the minimum power consumption value), the current actual power consumption value can be set as the actual power consumption value.
In the technical scheme provided by the embodiment of the invention, before a user uses equipment to regulate and control power consumption, each equipment is firstly subjected to power consumption regulation and control calibration calculation to obtain the regulation and control deviation of the equipment, and the regulation and control deviation of the equipment is calculated based on the power calibration error caused by a power detection chip and a power detection resistor, so that the regulation and control deviation is adapted to the hardware difference of each machine, the neglect of the hardware difference to the power consumption control deviation in the conventional power consumption control is broken, and the power consumption control of the equipment can be more accurate. In the process of regulating and controlling the power consumption of the equipment, the regulating and controlling deviation is considered, so that the difference between the regulating and controlling result and the actual result is small enough, the error caused by power consumption regulating and controlling algorithm software is calibrated, and the power consumption control is more accurate. On the basis of high-precision power consumption control, the safety of the server and the power supply use efficiency can be further improved by combining equipment with a power consumption limit value, the power consumption of the server can be kept below a certain limit value, the power failure influence caused by overhigh power can be prevented, and the server can work under the optimal power consumption control.
In the above embodiment, how to execute step S101 is not limited, and a calculation method of the regulation deviation is provided in this embodiment, as shown in fig. 2 and fig. 3, the calculation method may include the following steps:
acquiring preset calibration power of each device; activating a power consumption control function of each device; when the pressure test of each device is stable, acquiring the power output power at the current moment;
and determining the regulation deviation of each device according to the power output power and the calibration power.
In this embodiment, when a pressure test such as HTX is performed in a production line, the computer program corresponding to the above steps may be packaged as an instruction, and the offset is calculated by sending the instruction and written into the EEPROM. Correspondingly, as shown in fig. 3, on the basis of the original optimized PowerCapping parameter setting flowchart, a calibration value offset is added, and the control deviation of each device is written into the EEPROM, which is the final implementation scheme. As an alternative, for each device, the regulation deviation value of the device is the difference between the power output of the power supply and the calibration power.
In order to make the technical solutions provided in the embodiments more clearly understood by those skilled in the art, the present application further describes a corresponding implementation manner by using an actual schematic example, where offset is a regulation deviation, powerlnlimit is a power consumption limit, HTX is a pressure test, and PSU out is a power output, which may include the following contents:
setting calibration power: p0 ═ 600W, PowerInLimit: 600/0.92 ═ 653
ipmitool raw 0x2c 0x04 0xdc 0x0 0x0 0x0 0x11 0x8d 0x02 0x0 0x0 0x0 0x0 0x0 0x0 0x64 0x0
Set offset to 0x00
ipmitool raw 0x3c 0x58 0x00
Activating PowerCapping
ipmitool raw 0x2c 0x05 0xdc 0x1 0x0 0x0
Operating HTX
Acquiring PSU out power: p1
Calculating offset
offset=600-P1
Setting offset value
offset is 1 byte, i.e.: 8 BIT. BIT7 denotes the sign (0 is positive; 1 is negative), BIT0-BIT6 denotes the size.
Such as:
+29: 0x1D, corresponding instruction:
ipmitool raw 0x3c 0x58 0x1D
-29: 0x9D (0x1D +0x80), corresponding instruction:
ipmitool raw 0x3c 0x58 0x9D
obtaining offset values
ipmitool raw 0x3c 0x59
A power consumption limit is set, assumed to be 680W (0x02a8)
ipmitool raw 0x2c 0x04 0xdc 0x0 0x0 0x0 0x11 0xa8 0x02 0x0 0x0 0x0 0x0 0x0 0x0 0x64 0x0
Obtaining the PSU out power may include two embodiments, which may include:
method one (time consuming lengthening):
ipmitool sdr elist|grep POUT;
the show comes out of the output power consumption of PSU0 and PSU1, adding the output power consumption.
The second method comprises the following steps:
the power consumption of the first power supply of the ipmitool raw 0x 40 x2D 0xB4 is returned to be 16-system, and is converted into 10-system;
00e 00080 — convert 0x00 to 10, then 8, i.e.: 0x0 × 8 ═ 0W;
the power consumption of the second power supply, i.e. the return value of the power consumption of the ipmitool raw 0x 40 x2D 0xB5 is 16 system, and the return value is to be converted into 10 system;
23c0 c 000 — convert 0x23 to 10, then 8, i.e.: 0x23 x 8-35 x 8-280W;
total power consumption: 0W + 280W-280W.
As can be seen from the above, the power consumption control function of the server in this embodiment provides a method for calibrating errors, and the calibration value can be permanently stored and stored in each machine. Therefore, the power consumption of the server can be kept below a certain limit value, the power failure influence caused by overhigh power can be prevented, and the safety is enhanced; and the server can work under the optimal power consumption control, and the service efficiency of the power supply is improved.
In order to better apply the Power clipping technology to the server, in addition to the need to correct software and hardware errors through the above embodiments to improve the accuracy of Power clipping, the technical problem of parameter unreserved needs to be solved. With reference to fig. 4 and 5, fig. 4 is a flow of acquiring powerclipping in the prior art, and when acquiring a powerclipping parameter, if the parameter is currently in an activated state, the corresponding parameter is returned; if it is inactive, error code 0x80 is returned directly. As shown in fig. 5, if PowerCapping needs to be implemented, two steps are required: the method includes the steps of parameter setting and parameter activation, wherein both the parameter setting and the parameter activation detect whether an external sampling interface (APSS) of a hardware device (On-chip controller) exists or not, and the parameter activation operation can be performed only after the parameter setting. The OCC is a submodule in the PNOR responsible for power consumption control. When setting parameters, the parameters are placed in a configuration file of the BMC, such as a dcmi. conf configuration file of a BMC file system; when the parameters are activated, the parameters are sent to the OCC for regulation and control. When the BMC version is directly upgraded without reserving the parameters, the set parameters are lost, and the user needs to reset the parameters, namely: parameters of the version default configuration are used. Resetting the PowerCapping parameter not only wastes the time of the user, but also brings inconvenience to the user. Based on this, in this embodiment, when the user upgrades the BMC version, the parameter set by Power Capping may be compatibly stored, and in combination with fig. 6, fig. 7, and fig. 8, the following contents may be specifically included:
synchronizing a power consumption limit value and an activation identifier to a memory in the process of setting and activating power consumption control parameters in advance; the activation flag is used for identifying whether the power consumption control function is activated or not; and reading the activation identification from the memory in response to the acquisition instruction of the power consumption control parameter.
When the user upgrades without reserving the parameters, the configuration of the PowerCapping parameters of the user can be synchronously recorded in the EEPROM. When the PowerCapping parameters are obtained, the needed parameters can be obtained from the EEPROM. When acquiring the PowerCapping parameter, the current activation state is acquired from the EEPROM first. If the current state is the activated state, taking out the PowerLimit value from the EEPROM, and taking out the rest parameters from the configuration file; if it is inactive, error code 0x80 is returned directly. When the PowerCapping parameter is set, the PowerLimit, namely the power consumption limit value and the activation identifier ActiveFlag are synchronized to the EEPROM besides the original flow.
As an optional implementation manner of this embodiment, a setting process of a power consumption control parameter, that is, a powerclipping parameter in the drawing may include:
and if the activation identifier is that the power consumption control function is activated, reading a power consumption limit value from the memory.
When a power consumption control parameter setting instruction is received, judging whether an external sampling interface of a power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the substrate management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
As another optional implementation manner of this embodiment, the activation process of the power consumption control parameter, that is, the powerclipping parameter in the figure, may include:
activating a power consumption control function;
and if the external sampling interface of the power consumption control function module exists and the attribute of each power consumption control parameter is valid, writing the activation identifier into a configuration file and a memory of the substrate management controller.
Therefore, the embodiment of the invention can ensure that the Power consumption regulation and control parameters can be stored after the software is upgraded by a user, so that the Power consumption regulation and control parameters are set once and take effect permanently, the accuracy of Power clamping is optimized, and unnecessary repeated operation of the user is reduced.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 to fig. 7 are only schematic manners, and do not represent only such an execution order.
The embodiment of the invention also provides a corresponding device for the power consumption control method, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the power consumption control apparatus provided by the embodiment of the present invention is introduced, and the power consumption control apparatus described below and the power consumption control method described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 9, fig. 9 is a structural diagram of a power consumption control apparatus according to an embodiment of the present invention, in a specific implementation, where the apparatus may include:
a control deviation calculation module 901, configured to perform individual power consumption control calibration before each device leaves a factory in advance, so as to determine a control deviation of each device;
an information obtaining module 902, configured to obtain a regulation deviation, a target power consumption value, and a power consumption limit value of a device to be regulated;
and the regulating and controlling module 903 is used for regulating and controlling the power consumption of the equipment to be regulated and controlled according to the regulating and controlling deviation, the target power consumption value and the power consumption limit value.
Optionally, in some embodiments of this embodiment, the apparatus may further include a parameter storage module, where the parameter storage module is configured to synchronize the power consumption limit value and the activation flag to the memory in the process of setting and activating the power consumption control parameter in advance; the activation flag is used to identify whether the power consumption control function is activated.
Correspondingly, as an optional implementation manner of this embodiment, the information obtaining module 902 may be further configured to:
responding to an acquisition instruction of the power consumption control parameter, and reading an activation identifier from a memory;
and if the activation identifier is that the power consumption control function is activated, reading a power consumption limit value from the memory.
As another optional implementation manner of this embodiment, the apparatus further includes a parameter setting module and a parameter activating module;
the parameter setting module can be further used for judging whether an external sampling interface of the power consumption control function module exists or not when a power consumption control parameter setting instruction is received; if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of the substrate management controller, and setting the attribute of each power consumption control parameter to be effective; and writing the power consumption limit value set by the user into the memory.
The parameter activation module may be further operable to: activating a power consumption control function; and if the external sampling interface of the power consumption control function module exists and the attribute of each power consumption control parameter is valid, writing the activation identifier into a configuration file and a memory of the substrate management controller.
Optionally, in other embodiments of this embodiment, the information obtaining module 902 may be further configured to: acquiring preset calibration power of each device; activating a power consumption control function of each device; when the pressure test of each device is stable, acquiring the power output power at the current moment; and determining the regulation deviation of each device according to the power output power and the calibration power.
As an optional implementation manner of this embodiment, the apparatus may further include a regulation deviation writing module, for example, configured to write the regulation deviation of each device into the EEPROM.
The functions of each functional module of the power consumption control device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention can realize high-precision power consumption control.
The above mentioned power consumption control device is described from the perspective of functional modules, and further, the present application also provides an electronic device, which is described from the perspective of hardware. Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device includes a memory 100 for storing a computer program; a processor 101 for implementing the steps of the power consumption control method as mentioned in any of the above embodiments when executing a computer program.
The processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, the processor 101 may also be a controller, a microcontroller, a microprocessor or other data processing chip, and the like. The processor 101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 100 may include one or more computer-readable storage media, which may be non-transitory. Memory 100 may also include high speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. The memory 100 may in some embodiments be an internal storage unit of the electronic device, for example a hard disk of a server. The memory 100 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk provided on a server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 100 may also include both an internal storage unit and an external storage device of the electronic device. The memory 100 can be used for storing various data and application software installed in the electronic device, such as: the code of the program that executes the vulnerability handling method, etc. may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 100 is at least used for storing a computer program 1001, wherein after being loaded and executed by the processor 101, the computer program can implement the relevant steps of the power consumption control method disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 100 may also include an operating system 1002, data 1003, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. The operating system 1002 may include Windows, Unix, Linux, etc. The data 1003 may include, but is not limited to, data corresponding to a power consumption control result, and the like.
In some embodiments, the electronic device may further include a display screen 102, an input/output interface 103, a communication interface 104 or network interface, a power supply 105, and a communication bus 106. The display screen 102 and the input/output interface 103, such as a Keyboard (Keyboard), belong to a user interface, and the optional user interface may further include a standard wired interface, a wireless interface, and the like. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, as appropriate, is used for displaying information processed in the electronic device and for displaying a visualized user interface. The communication interface 104 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 106 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 10 is not intended to be limiting of the electronic device and may include more or fewer components than those shown, such as sensors 107 to perform various functions.
The functions of the functional modules of the electronic device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention can realize high-precision power consumption control.
It is to be understood that, if the power consumption control method in the above-described embodiments is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a multimedia card, a card type Memory (e.g., SD or DX Memory, etc.), a magnetic Memory, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a readable storage medium, which stores a computer program, and the computer program is executed by a processor, and the steps of the power consumption control method according to any one of the above embodiments are provided.
The functions of the functional modules of the readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For hardware including devices and electronic equipment disclosed by the embodiment, the description is relatively simple because the hardware includes the devices and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The power consumption control method, the power consumption control device, the electronic device and the readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A power consumption control method, comprising:
carrying out individual power consumption regulation and control calibration before each device leaves a factory in advance to determine the regulation and control deviation of each device;
acquiring regulation deviation, a target power consumption value and a power consumption limit value of equipment to be regulated;
and performing power consumption regulation and control on the equipment to be regulated and controlled according to the regulation and control deviation, the target power consumption value and the power consumption limit value.
2. The power consumption control method according to claim 1, wherein performing individual power consumption regulation and control calibration before each device leaves a factory to determine a regulation and control deviation of each device comprises:
acquiring preset calibration power of each device;
activating a power consumption control function of each device;
when the pressure test of each device is stable, acquiring the power output power at the current moment;
and determining the regulation deviation of each device according to the power output power and the calibration power.
3. The power consumption control method according to claim 2, wherein after determining the control deviation of each device according to the power output power and the calibration power, the method further comprises:
and writing the regulation deviation of each device into the EEPROM.
4. The power consumption control method according to any one of claims 1 to 3, wherein the obtaining of the control deviation, the target power consumption value and the power consumption limit value of the device to be controlled comprises:
synchronizing the power consumption limit value and the activation identifier to a memory in advance in the setting and activation process of the power consumption control parameter; the activation identifier is used for identifying whether the power consumption control function is activated or not;
reading the activation identifier from the memory in response to an acquisition instruction of the power consumption control parameter;
and if the activation identifier is that the power consumption control function is activated, reading the power consumption limit value from the memory.
5. The power consumption control method according to claim 4, wherein synchronizing the power consumption limit value and the activation flag to a memory during the setting and activation of the power consumption control parameter comprises:
when the power consumption control parameter setting instruction is received, judging whether an external sampling interface of the power consumption control function module exists or not;
if the external sampling interface of the power consumption control function module exists, writing legal power consumption control parameters into a configuration file of a substrate management controller, and setting the attribute of each power consumption control parameter to be effective;
and writing the power consumption limit value set by the user into the memory.
6. The power consumption control method according to claim 5, wherein synchronizing the power consumption limit value and the activation flag to a memory during the setting and activation of the power consumption control parameter comprises:
activating the power consumption control function;
and if the external sampling interface of the power consumption control function module exists and the attribute of each power consumption control parameter is valid, writing the activation identifier into a configuration file of the baseboard management controller and the memory.
7. A power consumption control apparatus, comprising:
the regulation and control deviation calculation module is used for carrying out independent power consumption regulation and control calibration before each device leaves a factory in advance so as to determine the regulation and control deviation of each device;
the information acquisition module is used for acquiring the regulation deviation, the target power consumption value and the power consumption limit value of the equipment to be regulated;
and the regulating module is used for regulating and controlling the power consumption of the equipment to be regulated and controlled according to the regulating and controlling deviation, the target power consumption value and the power consumption limit value.
8. The power consumption control device according to claim 7, further comprising a parameter storage module, configured to synchronize the power consumption limit value and the activation flag to a memory in advance during setting and activation of the power consumption control parameter; the activation flag is used to identify whether the power consumption control function is activated.
9. An electronic device, comprising a processor and a memory, the processor being configured to implement the steps of the power consumption control method according to any one of claims 1 to 6 when executing a computer program stored in the memory.
10. A readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the power consumption control method according to any one of claims 1 to 6.
CN202110942627.9A 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium Active CN113625862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110942627.9A CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110942627.9A CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113625862A true CN113625862A (en) 2021-11-09
CN113625862B CN113625862B (en) 2023-09-01

Family

ID=78386003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110942627.9A Active CN113625862B (en) 2021-08-17 2021-08-17 Power consumption control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113625862B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326609A (en) * 2021-12-02 2022-04-12 成都工业学院 Multi-energy-flow SCADA energy real-time monitoring and collecting system based on Internet of things technology
CN114924637A (en) * 2022-04-02 2022-08-19 联想(北京)有限公司 Control method and electronic equipment
WO2023147727A1 (en) * 2022-02-07 2023-08-10 苏州浪潮智能科技有限公司 Power consumption adjusting method and apparatus, storage device, and non-volatile readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104155024A (en) * 2014-08-14 2014-11-19 厦门市计量检定测试院 Ultra-low-power high-precision standard digital thermometer stabilizing circuit and error correcting method
US20170255239A1 (en) * 2016-03-01 2017-09-07 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Energy efficient workload placement management using predetermined server efficiency data
CN110147155A (en) * 2019-05-21 2019-08-20 苏州浪潮智能科技有限公司 Server power supply cold redundancy control method, device and BMC based on BMC
CN112083226A (en) * 2019-06-13 2020-12-15 Oppo广东移动通信有限公司 Frequency calibration method and device for electronic equipment, medium and electronic equipment
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN113098402A (en) * 2021-03-11 2021-07-09 广芯微电子(广州)股份有限公司 Low-power-consumption band-pass amplifying circuit with self-calibration center frequency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104155024A (en) * 2014-08-14 2014-11-19 厦门市计量检定测试院 Ultra-low-power high-precision standard digital thermometer stabilizing circuit and error correcting method
US20170255239A1 (en) * 2016-03-01 2017-09-07 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Energy efficient workload placement management using predetermined server efficiency data
CN110147155A (en) * 2019-05-21 2019-08-20 苏州浪潮智能科技有限公司 Server power supply cold redundancy control method, device and BMC based on BMC
CN112083226A (en) * 2019-06-13 2020-12-15 Oppo广东移动通信有限公司 Frequency calibration method and device for electronic equipment, medium and electronic equipment
CN112558748A (en) * 2020-11-26 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Server power consumption limiting method, device, equipment and readable storage medium
CN113098402A (en) * 2021-03-11 2021-07-09 广芯微电子(广州)股份有限公司 Low-power-consumption band-pass amplifying circuit with self-calibration center frequency

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114326609A (en) * 2021-12-02 2022-04-12 成都工业学院 Multi-energy-flow SCADA energy real-time monitoring and collecting system based on Internet of things technology
WO2023147727A1 (en) * 2022-02-07 2023-08-10 苏州浪潮智能科技有限公司 Power consumption adjusting method and apparatus, storage device, and non-volatile readable storage medium
CN114924637A (en) * 2022-04-02 2022-08-19 联想(北京)有限公司 Control method and electronic equipment
CN114924637B (en) * 2022-04-02 2024-02-27 联想(北京)有限公司 Control method and electronic equipment

Also Published As

Publication number Publication date
CN113625862B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN113625862B (en) Power consumption control method and device, electronic equipment and readable storage medium
JP6289778B2 (en) Test case generation apparatus and test case generation program
US10255060B2 (en) Method for extending an embedded software component of a field device
CN113342590B (en) NVMe device debugging function implementation method, device, equipment and storage medium
WO2016113911A1 (en) Data assessment device, data assessment method, and program
CN111290802B (en) Information analysis method and device for BMC internal device and readable storage medium
CN113703781B (en) Storage system interface generation method and device, electronic equipment and readable storage medium
WO2019140829A1 (en) Electronic device, method for releasing application update version, and storage medium
CN103440146A (en) BIOS updating method based on cloud storage
CN103455288A (en) Information processing apparatus and control method
CN113204384A (en) Equipment starting method and device and computer readable storage medium
KR101624387B1 (en) Method for software asset management based on software birthmark and apparatus thereof
US20150242655A1 (en) Apparatus and Method for Software Enabled Access to Protected Hardware Resources
CN106156632B (en) Safety device and method of the security service to host, safety equipment are provided in it
CN117077221A (en) Hard disk screen printing distribution method and device, computer equipment and medium
CN115668157A (en) Secure booting of a computing device
CN113254304A (en) Method for determining shutdown type of server, server and storage medium
CN111414590A (en) Consistency management method, device and equipment for Web service software component
US10445081B2 (en) Techniques of automatically generating dependencies for applications in embedded systems
CN112463188A (en) Network card firmware automatic upgrading method and device and computer readable storage medium
CN111124730A (en) Error positioning method and device for server and computer storage medium
JP2014120161A (en) System and method for detecting programming process
US20170068552A1 (en) Information processing device, method, and non-transitory computer readable medium
CN103927195A (en) Method for upgrading one time programmable (OTP) chip
JPWO2019142335A1 (en) Security design apparatus, security design method, and security design program

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
GR01 Patent grant
GR01 Patent grant